mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +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:
@@ -64,11 +64,20 @@ namespace BlackGui
|
||||
//! Button clicked
|
||||
void ps_buttonClicked();
|
||||
|
||||
//! Simulator changed
|
||||
void ps_simulatorChanged(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CDbOwnModelSetDialog> ui;
|
||||
BlackMisc::Simulation::CAircraftModelList m_modelSet;
|
||||
BlackMisc::Simulation::CSimulatorInfo m_simulatorInfo;
|
||||
|
||||
//! Check data
|
||||
bool checkData();
|
||||
|
||||
//! Set current simulator
|
||||
void setSimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||
|
||||
//! Build the set
|
||||
BlackMisc::Simulation::CAircraftModelList buildSet(const BlackMisc::Simulation::CSimulatorInfo &simulator, const BlackMisc::Simulation::CAircraftModelList ¤tSet = {});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user