swift
|
Handling of own models on disk (the models installed for the simulator) More...
Signals | |
void | successfullyLoadedModels (const swift::misc::simulation::CSimulatorInfo &simulator, int count) |
Models have been successfully loaded. | |
void | ownModelsSimulatorChanged (const swift::misc::simulation::CSimulatorInfo &simulator) |
Own models simulator has changed. | |
Public Member Functions | |
CDbOwnModelsComponent (QWidget *parent=nullptr) | |
Constructor. | |
virtual | ~CDbOwnModelsComponent () |
Destructor. | |
swift::misc::simulation::CAircraftModel | getOwnModelForModelString (const QString &modelString) const |
Own (installed) model for given model string. | |
swift::misc::simulation::CAircraftModelList | getOwnModels () const |
Own models. | |
swift::misc::simulation::CAircraftModelList | getOwnCachedModels (const swift::misc::simulation::CSimulatorInfo &simulator) const |
Own cached models from loader. | |
swift::misc::simulation::CAircraftModelList | getOwnSelectedModels () const |
Own models selected in view. | |
swift::misc::simulation::CSimulatorInfo | getOwnModelsSimulator () const |
Own models for simulator. | |
bool | setSimulator (const swift::misc::simulation::CSimulatorInfo &simulator, bool forced=false) |
Change current simulator for own models. | |
void | setSimulatorSelectorMode (CSimulatorSelector::Mode mode) |
How to display. More... | |
int | getOwnModelsCount () const |
Number of own models. | |
QString | getInfoString () const |
Info string about models in cache. More... | |
QString | getInfoStringFsFamily () const |
Info string without XPlane (FSX,P3D, FS9) More... | |
swift::misc::CStatusMessage | updateViewAndCache (const swift::misc::simulation::CAircraftModelList &models) |
Update view and cache. | |
void | clearView () |
Clear the view. | |
swift::gui::views::CAircraftModelView * | view () const |
Models view. | |
models::CAircraftModelListModel * | model () const |
Access to aircraft model. | |
swift::misc::simulation::IAircraftModelLoader * | modelLoader () const |
Access to model loader. | |
bool | requestModelsInBackground (const swift::misc::simulation::CSimulatorInfo &simulator, bool onlyIfNotEmpty) |
Forced read for given simulator. | |
void | gracefulShutdown () |
Graceful shutdown. | |
Implementations of the models interfaces | |
virtual void | setModels (const swift::misc::simulation::CAircraftModelList &models) |
Set models. | |
virtual void | setModelsForSimulator (const swift::misc::simulation::CAircraftModelList &models, const swift::misc::simulation::CSimulatorInfo &simulator) |
Set models. | |
virtual int | updateModels (const swift::misc::simulation::CAircraftModelList &models) |
Update models. | |
virtual int | updateModelsForSimulator (const swift::misc::simulation::CAircraftModelList &models, const swift::misc::simulation::CSimulatorInfo &simulator) |
Set models. | |
![]() | |
IModelsSetable () | |
Ctor, dtor, copy operators (CLANG warnings) | |
virtual | ~IModelsSetable () |
Ctor, dtor, copy operators (CLANG warnings) | |
IModelsSetable (const IModelsSetable &)=default | |
Ctor, dtor, copy operators (CLANG warnings) | |
IModelsSetable & | operator= (const IModelsSetable &)=default |
Ctor, dtor, copy operators (CLANG warnings) | |
![]() | |
IModelsUpdatable () | |
Ctor, dtor, copy operators (CLANG warnings) | |
virtual | ~IModelsUpdatable () |
Ctor, dtor, copy operators (CLANG warnings) | |
IModelsUpdatable (const IModelsUpdatable &)=default | |
Ctor, dtor, copy operators (CLANG warnings) | |
IModelsUpdatable & | operator= (const IModelsUpdatable &)=default |
Ctor, dtor, copy operators (CLANG warnings) | |
![]() | |
IModelsForSimulatorSetable () | |
Ctor, dtor, copy operators (CLANG warnings) | |
virtual | ~IModelsForSimulatorSetable () |
Ctor, dtor, copy operators (CLANG warnings) | |
IModelsForSimulatorSetable (const IModelsForSimulatorSetable &)=default | |
Ctor, dtor, copy operators (CLANG warnings) | |
IModelsForSimulatorSetable & | operator= (const IModelsForSimulatorSetable &)=default |
Ctor, dtor, copy operators (CLANG warnings) | |
![]() | |
IModelsForSimulatorUpdatable () | |
Ctor, dtor, copy operators (CLANG warnings) | |
virtual | ~IModelsForSimulatorUpdatable () |
Ctor, dtor, copy operators (CLANG warnings) | |
IModelsForSimulatorUpdatable (const IModelsForSimulatorUpdatable &)=default | |
Ctor, dtor, copy operators (CLANG warnings) | |
IModelsForSimulatorUpdatable & | operator= (const IModelsForSimulatorUpdatable &)=default |
Ctor, dtor, copy operators (CLANG warnings) | |
Static Public Member Functions | |
static const QStringList & | getLogCategories () |
Log categories. | |
Additional Inherited Members |
Handling of own models on disk (the models installed for the simulator)
Definition at line 56 of file dbownmodelscomponent.h.
QString swift::gui::components::CDbOwnModelsComponent::getInfoString | ( | ) | const |
Info string about models in cache.
Definition at line 188 of file dbownmodelscomponent.cpp.
QString swift::gui::components::CDbOwnModelsComponent::getInfoStringFsFamily | ( | ) | const |
Info string without XPlane (FSX,P3D, FS9)
Definition at line 194 of file dbownmodelscomponent.cpp.
void swift::gui::components::CDbOwnModelsComponent::setSimulatorSelectorMode | ( | CSimulatorSelector::Mode | mode | ) |
How to display.
Definition at line 171 of file dbownmodelscomponent.cpp.