Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
-
- #include <QMainWindow>
- #include <plc.h>
- #include <hmi.h>
-
- QT_BEGIN_NAMESPACE
- namespace Ui { class MainWindow; }
- class QGraphicsScene;
- QT_END_NAMESPACE
-
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
-
- public:
- explicit MainWindow(QWidget *parent = nullptr);
- ~MainWindow();
-
- private slots:
- void plcChange();
- void hmiChange();
- void newProject();
- void openProject();
- void saveProject();
-
- private:
- Ui::MainWindow *ui;
- PLC *plc_;
- HMI *hmi_;
- Project plcProject_;
- Project hmiProject_;
- QString plcFilePath_;
- QString hmiFilePath_;
- bool currentIsPLC_ = true;
- };
-
- #endif // MAINWINDOW_H
|