1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include "SARibbonMainWindow.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);
- 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;
- };
- #endif // MAINWINDOW_H
|