ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
PortfolioExplorerMdiWindow Class Referencefinal

MDI window showing the portfolio/book hierarchy with a filtered trade table. More...

#include <PortfolioExplorerMdiWindow.hpp>

Inheritance diagram for PortfolioExplorerMdiWindow:
Inheritance graph
Collaboration diagram for PortfolioExplorerMdiWindow:
Collaboration graph

Public Slots

void doReload () override
 Reload all data from server.
 
- Public Slots inherited from EntityListMdiWindow
void markAsStale ()
 Mark the list as stale (data changed on server).
 
void clearStaleIndicator ()
 Clear the stale indicator.
 
void reload ()
 Reload data from the server.
 

Signals

void statusChanged (const QString &msg)
 

Public Member Functions

 PortfolioExplorerMdiWindow (ClientManager *clientManager, BookController *bookController, PortfolioController *portfolioController, TradeController *tradeController, OreImportController *oreImportController, const QString &username, QWidget *parent=nullptr)
 
- Public Member Functions inherited from EntityListMdiWindow
 EntityListMdiWindow (QWidget *parent=nullptr)
 
QSize sizeHint () const override
 

Protected Member Functions

QString normalRefreshTooltip () const override
 Get the normal (non-stale) tooltip text for the refresh action.
 
- Protected Member Functions inherited from EntityListMdiWindow
virtual void doReload ()=0
 Subclass implementation of the reload operation.
 
virtual void saveSettings ()
 Save window settings (column visibility, window size, etc.).
 
void closeEvent (QCloseEvent *event) override
 
void initializeTableSettings (QTableView *tableView, QAbstractItemModel *sourceModel, std::string_view settingsGroup, const QVector< int > &defaultHiddenColumns={}, const QSize &defaultSize={900, 400}, int settingsVersion=1, QSplitter *splitter=nullptr)
 Configure table header, column visibility, and settings persistence.
 
void initializeStaleIndicator (QAction *refreshAction, const QString &iconPath)
 Initialize the stale indicator support.
 
QProgressBar * loadingBar ()
 Return the shared loading progress bar.
 
void beginLoading ()
 Show the loading bar and disable the reload action.
 
void endLoading ()
 Hide the loading bar and re-enable the reload action.
 
void connectModel (AbstractClientModel *model)
 Wire endLoading() to the model's standard lifecycle signals.
 
virtual QString staleRefreshTooltip () const
 Get the stale tooltip text for the refresh action.
 

Additional Inherited Members

- Protected Attributes inherited from EntityListMdiWindow
QSize savedWindowSize_
 Saved window size from QSettings.
 

Detailed Description

MDI window showing the portfolio/book hierarchy with a filtered trade table.

Displays the full portfolio/book tree for the session party on the left. Selecting any node scopes the trade table on the right to that subtree. The stale indicator pulses when book, portfolio, or trade changes arrive.

Member Function Documentation

◆ doReload

void doReload ( )
overrideslot

Reload all data from server.

Fires parallel async fetches for portfolios, books, and counterparties.

◆ normalRefreshTooltip()

QString normalRefreshTooltip ( ) const
overrideprotectedvirtual

Get the normal (non-stale) tooltip text for the refresh action.

Override this to customize the tooltip text.

Reimplemented from EntityListMdiWindow.