text: ﻿#ifndef MAINWINDOW_H
  #define MAINWINDOW_H
  #include "SARibbonMainWindow.h"
  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 createCategoryMain(SARibbonCategory* page);
      void createCategoryOther(SARibbonCategory* page);
      void createCategoryDelete(SARibbonCategory* page);
      void createCategorySize(SARibbonCategory* page);
      void createContextCategory1();
      void createContextCategory2();
      void createContextCategoryPage1(SARibbonCategory* page);
      void createContextCategoryPage2(SARibbonCategory* page);
      void createQuickAccessBar(SARibbonQuickAccessBar* quickAccessBar);
      void createRightButtonGroup(SARibbonButtonGroupWidget* rightBar);
      void addSomeOtherAction();
      QAction* createAction(const QString& text, const QString& iconurl, const QString& objName);
      QAction* createAction(const QString& text, const QString& iconurl);
  private slots:
      void onMenuButtonPopupCheckableTest(bool b);
      void onInstantPopupCheckableTest(bool b);
      void onDelayedPopupCheckableTest(bool b);
      void onMenuButtonPopupCheckabletriggered(bool b);
      void onInstantPopupCheckabletriggered(bool b);
      void onDelayedPopupCheckabletriggered(bool b);
      void onShowContextCategory(bool on);
      void onStyleClicked(int id);
      void onActionCustomizeTriggered(bool b);
      void onActionCustomizeAndSaveTriggered(bool b);
      void onActionHelpTriggered();
      void onActionRemoveAppBtnTriggered(bool b);
      void onActionUseQssTriggered();
      void onActionLoadCustomizeXmlFileTriggered();
      void onActionWindowFlagNormalButtonTriggered(bool b);
  
      void onFontComWidgetCurrentFontChanged(const QFont& font);
  
  private:
      SARibbonContextCategory* m_contextCategory;
      SARibbonContextCategory* m_contextCategory2;
      SARibbonCustomizeWidget* m_customizeWidget;
      QTextEdit* m_edit;
      SARibbonActionsManager* m_actMgr;
      int m_actionTagText;
      int m_actionTagWithIcon;
  };
  
  #endif  // MAINWINDOW_H
  