emsApplication/applications/emsConfigurer/maindialog.h

52 lines
991 B
C++

#ifndef MAINDIALOG_H
#define MAINDIALOG_H
#include <QMainWindow>
#include <QListWidget>
#include <QListWidgetItem>
#include <QIcon>
#include <QStackedWidget>
#include <QToolBar>
namespace Ui {
class MainDialog;
}
class MainDialog : public QMainWindow
{
Q_OBJECT
public:
explicit MainDialog(QWidget *parent = nullptr);
~MainDialog();
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 InitializeUI();
void CreateToolbar();
void CreateIcon(const QIcon& icon,QString text);
void CreateTablePage();
protected:
void closeEvent(QCloseEvent *event) override;
void saveWindowState();
void loadWindowState();
};
#endif // MAINDIALOG_H