Ref T246, functions to access values of model loader/models component

* direct access to simulator settings
* load models for simulator
This commit is contained in:
Klaus Basan
2018-02-09 04:38:02 +01:00
parent 44b2e27d11
commit d64ddfa8af
4 changed files with 27 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ namespace BlackMisc
CacheSkipped = 1 << 3, //!< ignore cache
CacheOnly = 1 << 4, //!< only read cache, never load from disk
InBackgroundWithCache = LoadInBackground | CacheFirst, //!< Background, cached
InBackgroundNoCache = LoadInBackground | CacheSkipped //!< Background, not cached
InBackgroundNoCache = LoadInBackground | CacheSkipped //!< Background, not checking cache
};
Q_DECLARE_FLAGS(LoadMode, LoadModeFlag)
@@ -150,6 +150,12 @@ namespace BlackMisc
//! \copydoc BlackMisc::Simulation::Data::CModelCaches::getInfoStringFsFamily
QString getInfoStringFsFamily() const;
//! Current simulator settings
Settings::CSimulatorSettings getCurrentSimulatorSettings() const;
//! Access to multi simulator settings
const Settings::CMultiSimulatorSettings &multiSimulatorSettings() const { return m_settings; }
//! \name Implementations of the model interfaces (allows to set models modified in utility functions)
//! @{
virtual void setModels(const CAircraftModelList &models) override { this->setCachedModels(models, this->getSimulator()); }