Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

42 lignes
739 B

  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "plc.h"
  5. #include "hmi.h"
  6. #include "modbusmanager.h"
  7. #include "registermanager.h"
  8. QT_BEGIN_NAMESPACE
  9. namespace Ui { class MainWindow; }
  10. class QGraphicsScene;
  11. QT_END_NAMESPACE
  12. class MainWindow : public QMainWindow
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit MainWindow(QWidget *parent = nullptr);
  17. ~MainWindow();
  18. private slots:
  19. void plcChange();
  20. void hmiChange();
  21. void newProject();
  22. void openProject();
  23. void saveProject();
  24. private:
  25. Ui::MainWindow *ui;
  26. PLC *plc_;
  27. HMI *hmi_;
  28. Project plcProject_;
  29. Project hmiProject_;
  30. QString plcFilePath_;
  31. QString hmiFilePath_;
  32. bool currentIsPLC_ = true;
  33. };
  34. #endif // MAINWINDOW_H