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
|
|
@ -33,7 +33,11 @@ private:
|
|||
std::optional<PgClass> m_table;
|
||||
|
||||
CrudModel *m_crudModel = nullptr;
|
||||
std::vector<QAction*> actions;
|
||||
QAction *m_refreshAction = nullptr;
|
||||
|
||||
void initActions();
|
||||
|
||||
virtual QList<QAction *> actions() override;
|
||||
|
||||
private slots:
|
||||
void on_actionRemove_rows_triggered();
|
||||
|
|
@ -49,6 +53,7 @@ public:
|
|||
private slots:
|
||||
|
||||
private:
|
||||
|
||||
void moduleAction_open(IPluginContentWidgetContext* context, const ModuleActionParameters ¶ms);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue