54 CommonlyUsedActionTag = 0x01,
55 NotInFunctionalAreaActionTag = 0x02,
56 AutoPageDistinguishBeginTag = 0x1000,
57 AutoPageDistinguishEndTag = 0x2000,
58 NotInRibbonPageTag = 0x2001,
60 UserDefineActionTag = 0x8000,
67 void setTagName(
int tag,
const QString &
name);
70 QString tagName(
int tag)
const;
73 void removeTag(
int tag);
76 bool registerAction(QAction *act,
int tag,
const QString &key = QString(),
bool enableEmit =
true);
79 void unregisterAction(QAction *act,
bool enableEmit =
true);
82 QList<QAction *> actions(
int tag)
const;
85 QList<int> actionTags()
const;
88 QAction *action(
const QString &key)
const;
91 QString key(QAction *act)
const;
97 QList<QAction *> allActions()
const;
100 QMap<int, RibbonPage *> autoRegisterActions(
RibbonBar *bar);
103 QSet<QAction *> autoRegisterWidgetActions(QWidget *w,
int tag,
bool enableEmit =
false);
106 QList<QAction *> search(
const QString &
text);
115 void setAllActionCanCustomize(
bool on =
true);
124 void onActionDestroyed(QObject *o);
125 void onPageTitleChanged(
const QString &title);
127 void removeAction(QAction *act,
bool enableEmit =
true);