19#ifndef ORES_QT_TRADING_PLUGIN_HPP
20#define ORES_QT_TRADING_PLUGIN_HPP
24#include "ores.qt/PluginBase.hpp"
30class DetachableMdiSubWindow;
31class OreImportController;
32class PortfolioController;
34class BookStatusController;
53 Q_PLUGIN_METADATA(IID
"ores.qt.IPlugin/1.0")
60 QString
name()
const override {
return QStringLiteral(
"ores.qt.trading"); }
75 DetachableMdiSubWindow* org_explorer_sub_window_{
nullptr};
78 QMenu* trading_codes_menu_{
nullptr};
80 QAction* act_portfolios_{
nullptr};
81 QAction* act_books_{
nullptr};
82 QAction* act_portfolio_explorer_{
nullptr};
83 QAction* act_org_explorer_{
nullptr};
84 QAction* act_trades_{
nullptr};
87 std::unique_ptr<OreImportController> oreImportController_;
88 std::unique_ptr<PortfolioController> portfolioController_;
89 std::unique_ptr<BookController> bookController_;
90 std::unique_ptr<BookStatusController> bookStatusController_;
91 std::unique_ptr<TradeController> tradeController_;
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
QMdiSubWindow that can be detached to become a floating window.
Definition DetachableMdiSubWindow.hpp:40
Context passed to setup_menus() containing all host-owned shared menus.
Definition IPlugin.hpp:39
Abstract interface that every domain plugin must implement.
Definition IPlugin.hpp:70
Context passed to each plugin at login time.
Definition plugin_context.hpp:47
Concrete base class for all domain plugins.
Definition PluginBase.hpp:46
Trading plugin: portfolios, books, trades, and the portfolio/org explorers.
Definition TradingPlugin.hpp:51
void on_logout() override
Destroy controllers and unsubscribe from server events.
Definition TradingPlugin.cpp:260
QList< QAction * > toolbar_actions() override
Return actions to be added to the main toolbar.
Definition TradingPlugin.cpp:249
QList< QMenu * > create_menus() override
Build and return standalone domain menus for this plugin.
Definition TradingPlugin.cpp:129
void setup_menus(const shared_menus_context &ctx) override
Contribute items to host-owned shared menus.
Definition TradingPlugin.cpp:95
QString name() const override
Returns a short, unique plugin name (e.g. "ores.qt.legacy").
Definition TradingPlugin.hpp:60
int load_order() const override
Load order hint — lower values are initialised first (default 100).
Definition TradingPlugin.hpp:61
void on_login(const plugin_context &ctx) override
Create controllers and subscribe to server events.
Definition TradingPlugin.cpp:60