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

Dialog for reviewing defaults and importing ORE portfolio trades. More...

#include <ImportTradeDialog.hpp>

Inherits QDialog.

Collaboration diagram for ImportTradeDialog:
Collaboration graph

Signals

void importCompleted (int success_count, int total_count)
 Emitted when import completes.
 
void importCancelled ()
 Emitted when import is cancelled.
 

Public Member Functions

 ImportTradeDialog (const refdata::domain::book &book, const std::vector< ore::xml::trade_import_item > &items, const QString &source_label, ClientManager *clientManager, const QString &username, QWidget *parent=nullptr)
 Constructs the import dialog.
 

Detailed Description

Dialog for reviewing defaults and importing ORE portfolio trades.

Shows an "Import Defaults" section for setting trade dates, lifecycle event, default netting set, and default counterparty. A trade preview table shows each trade with a per-row counterparty combo box and editable netting set field, allowing individual overrides before import.

ORES counterparties are fetched asynchronously when the dialog opens. Trades can be imported without counterparty assignments if none are mapped.

Constructor & Destructor Documentation

◆ ImportTradeDialog()

ImportTradeDialog ( const refdata::domain::book book,
const std::vector< ore::xml::trade_import_item > &  items,
const QString &  source_label,
ClientManager clientManager,
const QString &  username,
QWidget *  parent = nullptr 
)
explicit

Constructs the import dialog.

Parameters
bookThe ORES book trades will be imported into
itemsTrades to import (each item carries its own source_file)
source_labelHuman-readable label shown at the top of the dialog
clientManagerClient manager for server communication
usernameCurrent logged-in username
parentParent widget

Member Function Documentation

◆ importCompleted

void importCompleted ( int  success_count,
int  total_count 
)
signal

Emitted when import completes.

Parameters
success_countNumber of trades successfully imported
total_countTotal number of trades attempted