12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include "SARibbonMainWindow.h"
- #include <QTreeWidget>
- #include <QTreeWidgetItem>
- 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 addTreeList(QDockWidget* widget);
- 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:
- SARibbonCustomizeWidget* m_customizeWidget;
- QTextEdit* m_edit;
- SARibbonActionsManager* m_actMgr;
- int m_actionTagText;
- int m_actionTagWithIcon;
- //
- QAction* mActionWordWrap { nullptr };
- QDockWidget *mTreeList;
- QDockWidget *mConsole;
- QDockWidget *mCent;
- };
- #endif // MAINWINDOW_H
|