#ifndef MAINDIALOG_H #define MAINDIALOG_H #include #include #include #include #include #include #include "leftsiderbarwidget.h" QT_BEGIN_NAMESPACE namespace Ui { class MainDialog; } QT_END_NAMESPACE class MainDialog : public QMainWindow { Q_OBJECT public: MainDialog(QWidget *parent = nullptr); ~MainDialog(); public slots: void sltMessageReceived(const QString &msg); void closeBtn(); void selected(int func_type); private: void initUI(); void initTileBar(); void initStyleSheet(); void initConnect(); void mountBackupPartition(); void umountBackupPartition(); private: // 总体布局部分 QHBoxLayout *m_totalHLayout = nullptr; LeftsiderbarWidget *m_leftSiderBarWidget = nullptr; QWidget *m_rightWidget = nullptr; QVBoxLayout *m_rightVLayout = nullptr; QWidget *m_titleWidget = nullptr; QStackedWidget *m_stackedWidget = nullptr; // 标题栏部分 QHBoxLayout *m_titleLayout = nullptr; QToolButton *m_menuOptionBtn = nullptr; QPushButton *m_minBtn = nullptr; QPushButton *m_closeBtn = nullptr; QAction *m_backupHelp = nullptr; QAction *m_backupAbout = nullptr; QAction *m_backupExit = nullptr; // 右侧内容展示部分 Ui::MainDialog *ui; }; #endif // MAINDIALOG_H