43 QWidget* parent =
nullptr,
44 Qt::WindowFlags f = Qt::WindowFlags());
47 QWidget* parent =
nullptr,
48 Qt::WindowFlags f = Qt::WindowFlags());
77 LevelRole = Qt::UserRole + 1,
78 PointerRole = Qt::UserRole + 2,
79 CanCustomizeRole = Qt::UserRole + 3,
80 CustomizeRole = Qt::UserRole + 4,
81 CustomizeObjNameRole = Qt::UserRole + 5
88 bool isApplied()
const;
91 bool isCached()
const;
94 const QStandardItemModel* model()
const;
100 void updateModel(RibbonTreeShowType type);
106 bool toXml(QXmlStreamWriter* xml)
const;
108 bool toXml(
const QString& xmlpath)
const;
111 void fromXml(QXmlStreamReader* xml);
113 void fromXml(
const QString& xmlpath);
119 void makeActionsApplied();
136 QAction* selectedAction()
const;
138 QAction* itemToAction(QStandardItem* item)
const;
141 QStandardItem* selectedItem()
const;
144 int selectedRibbonLevel()
const;
147 int itemLevel(QStandardItem* item)
const;
150 void setSelectItem(QStandardItem* item,
bool ensureVisible =
true);
153 bool isItemCanCustomize(QStandardItem* item)
const;
154 bool isSelectedItemCanCustomize()
const;
157 bool isCustomizeItem(QStandardItem* item)
const;
158 bool isSelectedItemIsCustomize()
const;
161 void removeItem(QStandardItem* item);
164 void onComboBoxActionIndexCurrentIndexChanged(
int index);
165 void onRadioButtonGroupButtonClicked(QAbstractButton* b);
166 void onPushButtonNewCategoryClicked();
167 void onPushButtonNewPanelClicked();
168 void onPushButtonRenameClicked();
169 void onPushButtonAddClicked();
170 void onPushButtonDeleteClicked();
171 void onListViewSelectClicked(
const QModelIndex& index);
172 void onTreeViewResultClicked(
const QModelIndex& index);
173 void onToolButtonUpClicked();
174 void onToolButtonDownClicked();
175 void onItemChanged(QStandardItem* item);
176 void onLineEditSearchActionTextEdited(
const QString& text);
177 void onPushButtonResetClicked();
181 void initConnection();
204bool SA_RIBBON_EXPORT sa_customize_datas_to_xml(QXmlStreamWriter* xml,
const QList< SARibbonCustomizeData >& cds);
Definition SARibbonMainWindow.h:86