37 : IUAVGadgetFactory(QString(
"ConfigGadget"), tr(
"Config Gadget"), parent)
38 , gadgetWidget(nullptr)
56 cmd->
action()->setText(tr(
"Radio Setup Wizard"));
65 return new ConfigGadget(QString(
"ConfigGadget"), gadgetWidget, parent);
IUAVGadget * createGadget(QWidget *parent)
static ModeManager * instance()
virtual QAction * action() const =0
virtual Command * registerAction(QAction *action, const QString &id, const QList< int > &context)=0
Makes an action known to the system under the specified string id.
const char *const M_TOOLS
virtual ActionContainer * actionContainer(const QString &id) const =0
Returns the IActionContainter object that is know to the system under the given string id...
virtual ActionManager * actionManager() const =0
Returns the application's action manager.
void addAction(Command *command, int priority, QMenu *menu=nullptr)
IUAVGadgetConfiguration * createConfiguration(QSettings *qSettings)
IOptionsPage * createOptionsPage(IUAVGadgetConfiguration *config)
void activateModeByWorkspaceName(const QString &id)
static ICore * instance()
virtual void appendGroup(const QString &group)=0
virtual void addAction(Core::Command *action, const QString &group=QString())=0
The action manager is responsible for registration of menus and menu items and keyboard shortcuts...
ConfigGadgetFactory(QObject *parent=nullptr)
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.