28 #ifndef ACTIONCONTAINER_H
29 #define ACTIONCONTAINER_H
31 #include <QtCore/QObject>
47 virtual int id()
const = 0;
49 virtual QMenu *
menu()
const = 0;
50 virtual QMenuBar *
menuBar()
const = 0;
63 #endif // ACTIONCONTAINER_H
virtual QMenuBar * menuBar() const =0
virtual QAction * insertLocation(const QString &group) const =0
virtual ~ActionContainer()
virtual QMenu * menu() const =0
virtual void appendGroup(const QString &group)=0
virtual void addAction(Core::Command *action, const QString &group=QString())=0
virtual void setEmptyAction(EmptyAction ea)=0
virtual int id() const =0
virtual void addMenu(Core::ActionContainer *menu, const QString &group=QString())=0
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.