综合平台编辑器
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

40 Zeilen
590 B

  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "hmimodule.h"
  5. QT_BEGIN_NAMESPACE
  6. namespace Ui
  7. {
  8. class MainWindow;
  9. }
  10. QT_END_NAMESPACE
  11. class MainWindow : public QMainWindow
  12. {
  13. Q_OBJECT
  14. public:
  15. MainWindow(QWidget *parent = nullptr);
  16. ~MainWindow();
  17. private:
  18. void initMainWindow();
  19. private slots:
  20. void appendLog(const QString& message);
  21. void onNewFile();
  22. void onOpenFile();
  23. void onSaveFile();
  24. void startSimulation();
  25. void stopSimulation();
  26. private:
  27. Ui::MainWindow *ui_;
  28. HMIModule* hmi_;
  29. };
  30. #endif // MAINWINDOW_H