6 #include "ui_dbownmodelsdialog.h"
10 using namespace swift::misc::simulation;
14 CDbOwnModelsDialog::CDbOwnModelsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::
CDbOwnModelsDialog)
18 this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
27 ui->comp_OwnModels->setSimulator(simulator);
32 return ui->comp_OwnModels->requestModelsInBackground(simulator, onlyIfNotEmpty);
Handling of own models on disk (the models installed for the simulator)
void successfullyLoadedModels(const swift::misc::simulation::CSimulatorInfo &simulator, int count)
Models have been successfully loaded.
virtual ~CDbOwnModelsDialog()
Destructor.
bool requestModelsInBackground(const swift::misc::simulation::CSimulatorInfo &simulator, bool onlyIfNotEmpty)
Forced read for given simulator.
int getOwnModelsCount() const
Number of own models.
const CDbOwnModelsComponent * modelsComponent() const
Direct access to component.
void successfullyLoadedModels(const swift::misc::simulation::CSimulatorInfo &simulator, int count)
Models have been successfully loaded.
void setSimulator(const swift::misc::simulation::CSimulatorInfo &simulator)
Change current simulator for own models.
Simple hardcoded info about the corresponding simulator.
High level reusable GUI components.