综合平台编辑器
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.

37 regels
534 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. private:
  25. Ui::MainWindow *ui_;
  26. HMIModule* hmi_;
  27. };
  28. #endif // MAINWINDOW_H