mainwindow.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include "SARibbonMainWindow.h"
  4. #include <QTreeWidget>
  5. #include <QTreeWidgetItem>
  6. class SARibbonCategory;
  7. class SARibbonContextCategory;
  8. class SARibbonCustomizeWidget;
  9. class SARibbonActionsManager;
  10. class SARibbonQuickAccessBar;
  11. class SARibbonButtonGroupWidget;
  12. class QTextEdit;
  13. class MainWindow : public SARibbonMainWindow
  14. {
  15. Q_OBJECT
  16. public:
  17. MainWindow(QWidget* par = nullptr);
  18. private:
  19. void addTreeList(QDockWidget* widget);
  20. void createCategoryFile(SARibbonCategory* page);
  21. void createCategoryDisplay(SARibbonCategory* page);
  22. void createCategoryData(SARibbonCategory* page);
  23. void createCategoryGrid(SARibbonCategory* page);
  24. void createCategoryHelp(SARibbonCategory* page);
  25. void createQuickAccessBar(SARibbonQuickAccessBar* quickAccessBar);
  26. void createRightButtonGroup(SARibbonButtonGroupWidget* rightBar);
  27. private:
  28. SARibbonCustomizeWidget* m_customizeWidget;
  29. QTextEdit* m_edit;
  30. SARibbonActionsManager* m_actMgr;
  31. int m_actionTagText;
  32. int m_actionTagWithIcon;
  33. //
  34. QAction* mActionWordWrap { nullptr };
  35. QDockWidget *mTreeList;
  36. QDockWidget *mConsole;
  37. QDockWidget *mCent;
  38. };
  39. #endif // MAINWINDOW_H