28 #ifndef ACTIONCONTAINER_P_H
29 #define ACTIONCONTAINER_P_H
58 virtual void insertAction(QAction *before, QAction *action) = 0;
59 virtual void insertMenu(QAction *before, QMenu *menu) = 0;
72 QAction *beforeAction(
int pos,
int *prevKey)
const;
73 int calcPosition(
int pos,
int prevKey)
const;
78 QMap<int, int> m_posmap;
128 #endif // ACTIONCONTAINER_P_H
virtual void insertAction(QAction *before, QAction *action)=0
bool canBeAddedToMenu() const
void setMenuBar(QMenuBar *menuBar)
QMenuBar * menuBar() const
virtual bool canBeAddedToMenu() const =0
CommandLocation location() const
void insertMenu(QAction *before, QMenu *menu)
void insertAction(QAction *before, QAction *action)
void setLocation(const CommandLocation &location)
QAction * insertLocation(const QString &group) const
QList< Command * > commands() const
void addAction(Command *action, const QString &group=QString())
void setMenu(QMenu *menu)
void addMenu(ActionContainer *menu, const QString &group=QString())
void insertAction(QAction *before, QAction *action)
QList< ActionContainer * > subContainers() const
virtual void insertMenu(QAction *before, QMenu *menu)=0
void appendGroup(const QString &group)
ActionContainerPrivate(int id)
bool canAddAction(Command *action) const
bool canAddMenu(ActionContainer *menu) const
virtual ~ActionContainerPrivate()
MenuBarActionContainer(int id)
void insertMenu(QAction *before, QMenu *menu)
bool hasEmptyAction(EmptyAction ea) const
void setEmptyAction(EmptyAction ea)
QMenuBar * menuBar() const
MenuActionContainer(int id)
The class Command represents an action like a menu item, tool button, or shortcut. You don't create Command objects directly, instead use {ActionManager::registerAction()} to register an action and retrieve a Command. The Command object represents the user visible action and its properties. If multiple actions are registered with the same ID (but different contexts) the returned Command is the shared one between these actions.
bool canBeAddedToMenu() const