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

Controller that owns and launches the OreImportWizard. More...

#include <OreImportController.hpp>

Inherits QObject.

Collaboration diagram for OreImportController:
Collaboration graph

Signals

void importCompleted ()
 Emitted when an import completes successfully.
 
void statusMessage (const QString &message)
 Emitted with a human-readable summary after import.
 

Public Member Functions

 OreImportController (ClientManager *clientManager, QObject *parent=nullptr)
 
void trigger (QWidget *parent=nullptr, std::optional< boost::uuids::uuid > portfolioId=std::nullopt, const std::string &portfolioName="")
 Show the ORE import wizard modal dialog.
 

Detailed Description

Controller that owns and launches the OreImportWizard.

Created once per session (in MainWindow::createControllers) and wired to:

Call trigger(parent) to display the wizard modally.

Member Function Documentation

◆ trigger()

void trigger ( QWidget *  parent = nullptr,
std::optional< boost::uuids::uuid >  portfolioId = std::nullopt,
const std::string &  portfolioName = "" 
)

Show the ORE import wizard modal dialog.

Parameters
parentWidget to use as the dialog parent (for centering).
portfolioIdIf set, imported portfolios are placed under this existing portfolio instead of the root.
portfolioNameDisplay name for the pre-selected portfolio.

◆ importCompleted

void importCompleted ( )
signal

Emitted when an import completes successfully.

Subscribers (e.g. PortfolioExplorerMdiWindow) can use this to reload data.