diff --git a/src/blackcore/context/contextsimulatorimpl.h b/src/blackcore/context/contextsimulatorimpl.h index 444e02645..efd668df2 100644 --- a/src/blackcore/context/contextsimulatorimpl.h +++ b/src/blackcore/context/contextsimulatorimpl.h @@ -280,11 +280,11 @@ namespace BlackCore // settings BlackMisc::CSettingReadOnly m_enabledSimulators { this, &CContextSimulator::changeEnabledSimulators }; - BlackMisc::CSetting m_matchingSettings { this }; //!< settings - BlackMisc::CData m_modelSetSimulator { this }; //!< current simulator (used with radio buttons) - BlackMisc::Simulation::Settings::CMultiSimulatorSettings m_simulatorSettings { this }; //!< for directories of XPlane - BlackMisc::CSetting m_renderSettings { this }; //!< rendering/interpolation settings - BlackMisc::CSettingReadOnly m_messageSettings { this }; //!< settings for messages + BlackMisc::CSetting m_matchingSettings { this }; //!< matching settings (all simulators) + BlackMisc::CData m_modelSetSimulator { this }; //!< current simulator used for model set + BlackMisc::Simulation::Settings::CMultiSimulatorSettings m_simulatorSettings { this }; //!< individual for simulator, for validation of models + BlackMisc::CSetting m_renderSettings { this }; //!< rendering/interpolation settings (all simulators) + BlackMisc::CSettingReadOnly m_messageSettings { this }; //!< settings for messages (all simulators) }; } // namespace } // namespace diff --git a/src/blackmisc/simulation/settings/swiftpluginsettings.h b/src/blackmisc/simulation/settings/swiftpluginsettings.h index 8890a65a0..7cec780ef 100644 --- a/src/blackmisc/simulation/settings/swiftpluginsettings.h +++ b/src/blackmisc/simulation/settings/swiftpluginsettings.h @@ -11,11 +11,11 @@ #ifndef BLACKMISC_SIMULATION_SETTINGS_SWIFTPLUGINSETTINGS_H #define BLACKMISC_SIMULATION_SETTINGS_SWIFTPLUGINSETTINGS_H -#include "blackmisc/settingscache.h" -#include "blackmisc/blackmiscexport.h" -#include "blackmisc/propertyindex.h" #include "blackmisc/simulation/simulatorinfo.h" #include "blackmisc/simulation/aircraftmodel.h" +#include "blackmisc/settingscache.h" +#include "blackmisc/propertyindex.h" +#include "blackmisc/blackmiscexport.h" namespace BlackMisc { @@ -24,14 +24,13 @@ namespace BlackMisc namespace Settings { //! Settings for models - class BLACKMISC_EXPORT CSwiftPluginSettings : - public BlackMisc::CValueObject + class BLACKMISC_EXPORT CSwiftPluginSettings : public BlackMisc::CValueObject { public: //! Properties by index enum ColumnIndex { - IndexEmulatedSimulator = BlackMisc::CPropertyIndex::GlobalIndexCSwiftPluignSettings, + IndexEmulatedSimulator = CPropertyIndex::GlobalIndexCSwiftPluignSettings, IndexOwnModel, IndexDefaultModel, IndexLoggingFunctionCalls @@ -41,22 +40,22 @@ namespace BlackMisc CSwiftPluginSettings(); //! Emulated simualtor - BlackMisc::Simulation::CSimulatorInfo getEmulatedSimulator() const { return m_emulatedSimulator; } + CSimulatorInfo getEmulatedSimulator() const { return m_emulatedSimulator; } //! Emulated simualtor - void setEmulatedSimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator); + void setEmulatedSimulator(const CSimulatorInfo &simulator); //! Get own model - const BlackMisc::Simulation::CAircraftModel &getOwnModel() const { return m_ownModel; } + const CAircraftModel &getOwnModel() const { return m_ownModel; } //! Set own model - void setOwnModel(const BlackMisc::Simulation::CAircraftModel &ownModel) { m_ownModel = ownModel; } + void setOwnModel(const CAircraftModel &ownModel) { m_ownModel = ownModel; } //! Get default model - const BlackMisc::Simulation::CAircraftModel &getDefaultModel() const { return m_defaultModel; } + const CAircraftModel &getDefaultModel() const { return m_defaultModel; } //! Set default model - void setDefaultModel(const BlackMisc::Simulation::CAircraftModel &defaultModel) { m_defaultModel = defaultModel; } + void setDefaultModel(const CAircraftModel &defaultModel) { m_defaultModel = defaultModel; } //! Log function calls? bool isLoggingFunctionCalls() const { return m_logFunctionCalls; } @@ -68,15 +67,15 @@ namespace BlackMisc QString convertToQString(bool i18n = false) const; //! \copydoc BlackMisc::Mixin::Index::propertyByIndex - BlackMisc::CVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const; + BlackMisc::CVariant propertyByIndex(const CPropertyIndex &index) const; //! \copydoc BlackMisc::Mixin::Index::setPropertyByIndex - void setPropertyByIndex(const BlackMisc::CPropertyIndex &index, const BlackMisc::CVariant &variant); + void setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant); private: - BlackMisc::Simulation::CSimulatorInfo m_emulatedSimulator { BlackMisc::Simulation::CSimulatorInfo::P3D }; // simulator with default value - BlackMisc::Simulation::CAircraftModel m_ownModel; - BlackMisc::Simulation::CAircraftModel m_defaultModel; + CSimulatorInfo m_emulatedSimulator { CSimulatorInfo::P3D }; // simulator with default value + CAircraftModel m_ownModel; + CAircraftModel m_defaultModel; bool m_logFunctionCalls = true; BLACK_METACLASS(