| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef __MAINWINDOW_H__
- #define __MAINWINDOW_H__
- #include <QMainWindow>
- #include <QStackedWidget>
- #include <QTimer>
- #include <QLabel>
- #define MAX_CANVAS_COUNT 12
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit MainWindow(QWidget *parent = nullptr);
- ~MainWindow();
- protected:
- void init_ui();
- void reload();
- void clear();
- void setCurrentCanvas(bool isNewComfigure = false);
- private:
- QStackedWidget *m_pStackedWidget;
- QTimer m_timer;
- QLabel *m_pErrStrLabel;
- public slots:
- void onUpdateScreen(const QJsonObject &obj);
- void onPageSwitdh(int state);
- void onConfigureUpdate(const QString &filename);
- void onReloadCanvas();
-
- };
- #endif // MAINWINDOW_H
|