mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #661, improved model set dialog
* allow to change simulator * consider distributor preferences for new model set * error messages in dialog, therefor use CForm as base class
This commit is contained in:
@@ -785,11 +785,22 @@ namespace BlackGui
|
||||
return this->ui->comp_OwnAircraftModels->getOwnModelsSimulator();
|
||||
}
|
||||
|
||||
void CDbMappingComponent::setOwnModelsSimulator(const CSimulatorInfo &simulator)
|
||||
{
|
||||
this->ui->comp_OwnAircraftModels->setSimulator(simulator);
|
||||
}
|
||||
|
||||
int CDbMappingComponent::getOwnModelsCount() const
|
||||
{
|
||||
return this->ui->comp_OwnAircraftModels->getOwnModelsCount();
|
||||
}
|
||||
|
||||
void CDbMappingComponent::setOwnModelSetSimulator(const CSimulatorInfo &simulator)
|
||||
{
|
||||
Q_ASSERT_X(simulator.isSingleSimulator(), Q_FUNC_INFO, "Need single simulator");
|
||||
this->ui->comp_OwnModelSet->setModelSetSimulator(simulator);
|
||||
}
|
||||
|
||||
CStatusMessage CDbMappingComponent::stashModel(const CAircraftModel &model, bool replace)
|
||||
{
|
||||
return this->ui->comp_StashAircraft->stashModel(model, replace);
|
||||
|
||||
Reference in New Issue
Block a user