45 LevelRole = Qt::UserRole + 1,
59 bool isChanged()
const;
62 const QStandardItemModel *model()
const;
68 void updateModel(RibbonTreeShowType type);
74 bool toXml(QXmlStreamWriter *xml)
const;
75 bool toXml(
const QString &xmlpath)
const;
78 void fromXml(QXmlStreamReader *xml);
79 void fromXml(
const QString &xmlpath);
92 QAction *selectedAction()
const;
93 QAction *itemToAction(QStandardItem *item)
const;
95 QStandardItem *selectedItem()
const;
98 int selectedRibbonLevel()
const;
101 int itemLevel(QStandardItem *item)
const;
104 void setSelectItem(QStandardItem *item,
bool ensureVisible =
true);
107 bool isItemCanCustomize(QStandardItem *item)
const;
108 bool isSelectedItemCanCustomize()
const;
111 bool isCustomizeItem(QStandardItem *item)
const;
112 bool isSelectedItemIsCustomize()
const;
115 void removeItem(QStandardItem *item);
118 void onComboBoxActionIndexCurrentIndexChanged(
int index);
119 void onRadioButtonGroupButtonClicked(QAbstractButton *b);
120 void onPushButtonNewPageClicked();
121 void onPushButtonNewGroupClicked();
122 void onPushButtonRenameClicked();
123 void onPushButtonAddClicked();
124 void onPushButtonDeleteClicked();
125 void onListViewSelectClicked(
const QModelIndex &index);
126 void onTreeViewResultClicked(
const QModelIndex &index);
127 void onToolButtonUpClicked();
128 void onToolButtonDownClicked();
129 void onItemChanged(QStandardItem *item);
130 void onLineEditSearchActionTextEdited(
const QString &
text);
131 void onPushButtonResetClicked();
133 void initConnection();
135 RibbonCustomizeWidgetUi *ui;
136 RibbonCustomizeWidgetPrivate *d;