mainwindow.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. QAction* createAction(const QString& text, const QString& iconurl, const QString& objName);
  28. QAction* createAction(const QString& text, const QString& iconurl);
  29. private:
  30. SARibbonCustomizeWidget* m_customizeWidget;
  31. QTextEdit* m_edit;
  32. SARibbonActionsManager* m_actMgr;
  33. int m_actionTagText;
  34. int m_actionTagWithIcon;
  35. //
  36. QAction* mActionWordWrap { nullptr };
  37. QDockWidget *mTreeList;
  38. QDockWidget *mConsole;
  39. QDockWidget *mCent;
  40. };
  41. #endif // MAINWINDOW_H