mainwindow.h 525 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __MAINWINDOW_H__
  2. #define __MAINWINDOW_H__
  3. #include <QMainWindow>
  4. #include <QStackedWidget>
  5. #define MAX_CANVAS_COUNT 12
  6. class MainWindow : public QMainWindow
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit MainWindow(QWidget *parent = nullptr);
  11. ~MainWindow();
  12. protected:
  13. void init_ui();
  14. private:
  15. QStackedWidget *m_pStackedWidget;
  16. public slots:
  17. void onUpdateScreen(const QJsonObject &obj);
  18. void onPageSwitdh(int state);
  19. void onConfigureUpdate(const QString &filename);
  20. };
  21. #endif // MAINWINDOW_H