You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
-
- #include <QMainWindow>
- #include "plc.h"
- #include "hmi.h"
- #include "modbusmanager.h"
- #include "registermanager.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();
- void connection();
- void disconnection();
-
- private:
- Ui::MainWindow *ui;
- RegisterManager* registerManager;
- PLC *plc_;
- HMI *hmi_;
- ModbusManager* modbusManager;
- Project plcProject_;
- Project hmiProject_;
- QString plcFilePath_;
- QString hmiFilePath_;
- bool currentIsPLC_ = true;
- };
-
- #endif // MAINWINDOW_H
|