|
ORE Studio 0.0.4
|
Dialog for reviewing defaults and importing ORE portfolio trades. More...
#include <ImportTradeDialog.hpp>
Inherits QDialog.

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. | |
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.
|
explicit |
Constructs the import dialog.
| book | The ORES book trades will be imported into |
| items | Trades to import (each item carries its own source_file) |
| source_label | Human-readable label shown at the top of the dialog |
| clientManager | Client manager for server communication |
| username | Current logged-in username |
| parent | Parent widget |
|
signal |
Emitted when import completes.
| success_count | Number of trades successfully imported |
| total_count | Total number of trades attempted |