123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include "SARibbonMainWindow.h"
- #include "modelpage.h"
- #include <QTreeWidget>
- #include <QTreeWidgetItem>
- #include <QStackedWidget>
- class SARibbonCategory;
- class SARibbonContextCategory;
- class SARibbonCustomizeWidget;
- class SARibbonActionsManager;
- class SARibbonQuickAccessBar;
- class SARibbonButtonGroupWidget;
- class QTextEdit;
- class MainWindow : public SARibbonMainWindow
- {
- Q_OBJECT
- public:
- MainWindow(QWidget* par = nullptr);
- private:
- void initTree();
- void initStack();
- void createCategoryFile(SARibbonCategory* page);
- void createCategoryDisplay(SARibbonCategory* page);
- void createCategoryData(SARibbonCategory* page);
- void createCategoryGrid(SARibbonCategory* page);
- void createCategoryHelp(SARibbonCategory* page);
- void createQuickAccessBar(SARibbonQuickAccessBar* quickAccessBar);
- void createRightButtonGroup(SARibbonButtonGroupWidget* rightBar);
- QAction* createAction(const QString& text, const QString& iconurl, const QString& objName);
- QAction* createAction(const QString& text, const QString& iconurl);
-
- private slots:
- void pageSwitch(QTreeWidgetItem* item,int column);
- void addModelComplete();
- void onActionAboutTriggered();
- private:
- SARibbonCustomizeWidget* m_customizeWidget;
- QTextEdit* m_edit;
- SARibbonActionsManager* m_actMgr;
- int m_actionTagText;
- int m_actionTagWithIcon;
- QAction* mActionWordWrap { nullptr };
- QDockWidget *mTreeList;
- QDockWidget *mConsole;
- QDockWidget *mCent;
- QTreeWidget* mTree;
- QStackedWidget* mStack;
- ModelPage* mModelPage;
- ModelAdd* mModelAdd;
- };
- #endif // MAINWINDOW_H
|