mainwindow.h 577 B

1234567891011121314151617181920212223242526272829303132
  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. void reloadCanvas();
  15. private:
  16. QStackedWidget *m_pStackedWidget;
  17. public slots:
  18. void onUpdateScreen(const QJsonObject &obj);
  19. void onPageSwitdh(int state);
  20. void onConfigureUpdate(const QString &filename);
  21. void onReloadCanvas();
  22. };
  23. #endif // MAINWINDOW_H