mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T292, renamed "PerSimulator" -> "ForSimulator"
This commit is contained in:
@@ -307,7 +307,7 @@ namespace BlackGui
|
||||
|
||||
if (!filtered)
|
||||
{
|
||||
this->modelsTargetSetable()->setModels(consolidated, sim);
|
||||
this->modelsTargetSetable()->setModelsForSimulator(consolidated, sim);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -317,7 +317,7 @@ namespace BlackGui
|
||||
}
|
||||
else
|
||||
{
|
||||
this->modelsTargetUpdatable()->updateModels(consolidated, sim);
|
||||
this->modelsTargetUpdatable()->updateModelsForSimulator(consolidated, sim);
|
||||
}
|
||||
}
|
||||
this->modelView()->hideLoadIndicator(i);
|
||||
@@ -338,7 +338,7 @@ namespace BlackGui
|
||||
const CAircraftModelList consolidated = CDatabaseUtils::consolidateModelsWithSimulatorModelsAllowsGuiRefresh(models, this->getSimulatorModels(), true);
|
||||
const CSimulatorInfo sim(this->getSimulator());
|
||||
|
||||
this->modelsTargetUpdatable()->updateModels(consolidated, sim);
|
||||
this->modelsTargetUpdatable()->updateModelsForSimulator(consolidated, sim);
|
||||
this->modelView()->hideLoadIndicator(i);
|
||||
}
|
||||
|
||||
@@ -360,14 +360,14 @@ namespace BlackGui
|
||||
return sim;
|
||||
}
|
||||
|
||||
IModelsPerSimulatorSetable *CConsolidateWithSimulatorModels::modelsTargetSetable() const
|
||||
IModelsForSimulatorSetable *CConsolidateWithSimulatorModels::modelsTargetSetable() const
|
||||
{
|
||||
return qobject_cast<IModelsPerSimulatorSetable *>(m_modelsTarget);
|
||||
return qobject_cast<IModelsForSimulatorSetable *>(m_modelsTarget);
|
||||
}
|
||||
|
||||
IModelsPerSimulatorUpdatable *CConsolidateWithSimulatorModels::modelsTargetUpdatable() const
|
||||
IModelsForSimulatorUpdatable *CConsolidateWithSimulatorModels::modelsTargetUpdatable() const
|
||||
{
|
||||
return qobject_cast<IModelsPerSimulatorUpdatable *>(m_modelsTarget);
|
||||
return qobject_cast<IModelsForSimulatorUpdatable *>(m_modelsTarget);
|
||||
}
|
||||
|
||||
ISimulatorSelectable *CConsolidateWithSimulatorModels::simulatorSelectable() const
|
||||
|
||||
@@ -140,8 +140,8 @@ namespace BlackGui
|
||||
//! Simulator
|
||||
BlackMisc::Simulation::CSimulatorInfo getSimulator() const;
|
||||
|
||||
BlackMisc::Simulation::IModelsPerSimulatorSetable *modelsTargetSetable() const;
|
||||
BlackMisc::Simulation::IModelsPerSimulatorUpdatable *modelsTargetUpdatable() const;
|
||||
BlackMisc::Simulation::IModelsForSimulatorSetable *modelsTargetSetable() const;
|
||||
BlackMisc::Simulation::IModelsForSimulatorUpdatable *modelsTargetUpdatable() const;
|
||||
BlackMisc::Simulation::ISimulatorSelectable *simulatorSelectable() const;
|
||||
BlackGui::Components::CDbMappingComponent *getMappingComponent() const;
|
||||
|
||||
|
||||
@@ -32,23 +32,23 @@ namespace BlackMisc
|
||||
{
|
||||
public:
|
||||
//! Update models
|
||||
virtual void updateModels(const CAircraftModelList &models) = 0;
|
||||
virtual int updateModels(const CAircraftModelList &models) = 0;
|
||||
};
|
||||
|
||||
//! Interface to "something" backing models, which can be set
|
||||
class BLACKMISC_EXPORT IModelsPerSimulatorSetable
|
||||
class BLACKMISC_EXPORT IModelsForSimulatorSetable
|
||||
{
|
||||
public:
|
||||
//! Set models
|
||||
virtual void setModels(const CAircraftModelList &models, const CSimulatorInfo &simulator) = 0;
|
||||
virtual void setModelsForSimulator(const CAircraftModelList &models, const CSimulatorInfo &simulator) = 0;
|
||||
};
|
||||
|
||||
//! Interface to "something" backing models, which can be modified (updated)
|
||||
class BLACKMISC_EXPORT IModelsPerSimulatorUpdatable
|
||||
class BLACKMISC_EXPORT IModelsForSimulatorUpdatable
|
||||
{
|
||||
public:
|
||||
//! Set models
|
||||
virtual void updateModels(const CAircraftModelList &models, const CSimulatorInfo &simulator) = 0;
|
||||
virtual int updateModelsForSimulator(const CAircraftModelList &models, const CSimulatorInfo &simulator) = 0;
|
||||
};
|
||||
|
||||
//! Interface to "something" allowing a simulator selection
|
||||
@@ -63,8 +63,8 @@ namespace BlackMisc
|
||||
|
||||
Q_DECLARE_INTERFACE(BlackMisc::Simulation::IModelsSetable, "org.swift-project.blackmisc.simulation.imodelssetable")
|
||||
Q_DECLARE_INTERFACE(BlackMisc::Simulation::IModelsUpdatable, "org.swift-project.blackmisc.simulation.imodelsupdateable")
|
||||
Q_DECLARE_INTERFACE(BlackMisc::Simulation::IModelsPerSimulatorSetable, "org.swift-project.blackmisc.simulation.imodelspersimulatorsetable")
|
||||
Q_DECLARE_INTERFACE(BlackMisc::Simulation::IModelsPerSimulatorUpdatable, "org.swift-project.blackmisc.simulation.imodelspersimulatorupdatabale")
|
||||
Q_DECLARE_INTERFACE(BlackMisc::Simulation::IModelsForSimulatorSetable, "org.swift-project.blackmisc.simulation.IModelsForSimulatorSetable")
|
||||
Q_DECLARE_INTERFACE(BlackMisc::Simulation::IModelsForSimulatorUpdatable, "org.swift-project.blackmisc.simulation.imodelspersimulatorupdatabale")
|
||||
Q_DECLARE_INTERFACE(BlackMisc::Simulation::ISimulatorSelectable, "org.swift-project.blackmisc.simulation.isimulatorselectable")
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user