![]() |
LeechCraft
0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
|
Interface for embedding actions and menus into various places. More...
#include "iactionsexporter.h"
Public Member Functions | |
virtual | ~IActionsExporter () |
virtual QList< QAction * > | GetActions (LeechCraft::ActionsEmbedPlace area) const =0 |
Returns the actions to embed. More... | |
virtual QMap< QString, QList< QAction * > > | GetMenuActions () const |
Returns the actions to embed into the menu. More... | |
Protected Member Functions | |
virtual void | gotActions (QList< QAction *> actions, LeechCraft::ActionsEmbedPlace area)=0 |
Notifies about new actions for the given area. More... | |
Interface for embedding actions and menus into various places.
Definition at line 91 of file iactionsexporter.h.
|
inlinevirtual |
Definition at line 94 of file iactionsexporter.h.
|
pure virtual |
Returns the actions to embed.
Returns the list of actions that will be inserted into the given area.
[in] | area | The area where the actions should be placed. |
Returns the actions to embed into the menu.
For each string key found in the returned map, the corresponding list of QActions would be added to the submenu under that name in the main menu. That allows several different plugins to insert actions into one menu easily.
Definition at line 116 of file iactionsexporter.h.
|
protectedpure virtual |
Notifies about new actions for the given area.
The sender of this signal remains the owner of actions, and it may delete them at any given time.
[out] | actions | The list of new actions for the given area. |
[out] | area | The area where these actions should be placed. |