#ifndef MAINDIALOG_H #define MAINDIALOG_H #include #include #include #include #include #include namespace Ui { class MainDialog; } class MainDialog : public QMainWindow { Q_OBJECT public: explicit MainDialog(QWidget *parent = nullptr); ~MainDialog(); void InitializeUI(); void loadWindowState(); public slots: void changePage(QListWidgetItem *current, QListWidgetItem *previous); private slots: void onToolButton1Clicked(); void onToolButton2Clicked(); void onAboutButtonClicked(); private: Ui::MainDialog *ui; QListWidget *m_pDeviceListWidget; QStackedWidget *m_pDevicestackedWidget; QToolBar *m_pMainToolBar; private: void CreateToolbar(); void CreateIcon(const QIcon& icon,QString text); void CreateTablePage(); protected: void closeEvent(QCloseEvent *event) override; void saveWindowState(); }; #endif // MAINDIALOG_H