|
ORE Studio 0.0.4
|
Party/organisation plugin: parties, counterparties, business centres, business units, and related type tables. More...
#include <PartyPlugin.hpp>


Public Member Functions | |
| PartyPlugin (QObject *parent=nullptr) | |
| QString | name () const override |
| Returns a short, unique plugin name (e.g. "ores.qt.legacy"). | |
| int | load_order () const override |
| Load order hint — lower values are initialised first (default 100). | |
| void | on_login (const plugin_context &ctx) override |
| Create controllers and subscribe to server events. | |
| QList< QMenu * > | create_menus () override |
| Build and return standalone domain menus for this plugin. | |
| QList< QAction * > | toolbar_actions () override |
| Return actions to be added to the main toolbar. | |
| void | on_logout () override |
| Destroy controllers and unsubscribe from server events. | |
Public Member Functions inherited from PluginBase | |
| PluginBase (QObject *parent=nullptr) | |
Public Member Functions inherited from IPlugin | |
| virtual void | setup_menus (const shared_menus_context &ctx) |
| Contribute items to host-owned shared menus. | |
Additional Inherited Members | |
Signals inherited from PluginBase | |
| void | statusMessage (const QString &msg) |
| Status or error message to display in the host status bar. | |
| void | windowCreated (DetachableMdiSubWindow *window) |
| A detachable MDI sub-window was created by a controller. | |
| void | windowDestroyed (DetachableMdiSubWindow *window) |
| A detachable MDI sub-window owned by a controller was destroyed. | |
Protected Member Functions inherited from PluginBase | |
| void | connectControllerSignals (EntityController *ctrl) |
| Wire the four standard EntityController signals to PluginBase signals. | |
Party/organisation plugin: parties, counterparties, business centres, business units, and related type tables.
Loaded as a shared library by QPluginLoader at application startup. Owns the Entities top-level menu.
|
overridevirtual |
Returns a short, unique plugin name (e.g. "ores.qt.legacy").
Implements IPlugin.
|
overridevirtual |
Load order hint — lower values are initialised first (default 100).
Reimplemented from IPlugin.
|
overridevirtual |
Create controllers and subscribe to server events.
Called immediately after successful login. ctx provides the shared application resources (client, caches, MDI area, etc.).
Implements IPlugin.
|
overridevirtual |
Build and return standalone domain menus for this plugin.
Called once at startup, after setup_menus(). The host inserts the returned menus into the menu bar before the &System menu, in plugin load_order. Menus are initially disabled and are enabled on login.
Plugins that contribute exclusively to shared menus via setup_menus() should return an empty list here.
Implements IPlugin.
|
overridevirtual |
Return actions to be added to the main toolbar.
Called once at startup (after create_menus()). The returned QAction objects must be the same instances that appear in the plugin's menus so that enable/disable state is shared automatically. The host inserts a separator between each plugin's toolbar group.
The default implementation returns an empty list (no toolbar contribution).
Reimplemented from IPlugin.
|
overridevirtual |
Destroy controllers and unsubscribe from server events.
Called when the client disconnects, before the returned menus are removed.
Implements IPlugin.