Work on plugin mechanism
Context actions have become normal actions in the pluginwidget so the widget knows abot them and can easily do things like enable/disable.
This commit is contained in:
parent
eca8841427
commit
a704332342
24 changed files with 239 additions and 267 deletions
|
|
@ -13,14 +13,9 @@ public:
|
|||
LWidgetData(PluginModule *module);
|
||||
PluginModule* module() { return m_module; }
|
||||
void init(PluginContentWidget *widget);
|
||||
QList<QAction *> actions();
|
||||
|
||||
private:
|
||||
PluginModule *m_module;
|
||||
/// List of actions specifically created for this widget from the widgetAction list of the module.
|
||||
QList<QAction *> m_widgetActions;
|
||||
|
||||
QAction *createAction(const LContextAction &wa, PluginContentWidget *widget);
|
||||
};
|
||||
|
||||
/// Provides base implementation of IPluginContentWidgetContext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue