![]() |
VR-Forces Developer's Guide
|
Application Settings Manager Settings associated with the application that don't merit an additional settings file (one offs, primarily)

Public Member Functions | |
| virtual | ~DtApplicationSettingsManager () |
| virtual void | setShowQuitDialogOnClose (bool show) |
| virtual bool | showQuitDialogOnClose () const |
| virtual void | setDarkModeEnabled (bool show) |
| virtual bool | darkModeEnabled () const |
| virtual void | setLightModeDarkModeIconsEnabled (bool show) |
| virtual bool | lightModeDarkModeIconsEnabled () const |
| virtual void | setDarkModeStyleSheetsPath (const std::string &darkModeStyleSheetsPath) |
| virtual std::string | darkModeStyleSheetsPath () const |
| virtual void | setLightModeStyleSheetsPath (const std::string &lightModeStyleSheetsPath) |
| virtual std::string | lightModeStyleSheetsPath () const |
| virtual std::string | currentStyleSheetsPath () const |
| virtual void | setPaperMapLayerTimeout (double val) |
| virtual double | paperMapLayerTimeout () const |
Setters/getters for settings | |
| virtual void | setViewControlEnabled (bool val) |
| virtual bool | viewControlEnabled () const |
| virtual void | setScreenCaptureFilePath (const DtUnicode &filePath) |
| virtual const DtUnicode & | screenCaptureFilePath () const |
| virtual void | setMouseHideEnabled (bool enabled) |
| virtual bool | mouseHideEnabled () const |
| virtual void | setMouseHideTime (float hideTime) |
| virtual float | mouseHideTime () const |
Setting Persistence Methods | |
| void | setFromRecord (const DtApplicationSettingsRecord &rec) |
| void | getRecord (DtApplicationSettingsRecord &rec) const |
Public Member Functions inherited from makVrv::DtBaseSettingsManager< DtApplicationSettingsRecord > | |
| DtBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| virtual | ~DtBaseSettingsManager () |
| virtual void | initializeBackup () |
| virtual void | setFromRecord (const DtApplicationSettingsRecord &record)=0 |
| virtual void | getRecord (DtApplicationSettingsRecord &record) const =0 |
| virtual bool | applyFactoryOverrides (DtApplicationSettingsRecord &record) const =0 |
| virtual bool | getOverriddenFactoryRecord (DtApplicationSettingsRecord &record) const |
Public Member Functions inherited from makVrv::DtCommonBaseSettingsManager< DtApplicationSettingsRecord > | |
| DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| virtual | ~DtCommonBaseSettingsManager () |
| virtual void | autoSaveIfNecessary () |
| virtual void | setAutoSave (bool doit) |
| virtual bool | autoSave () const |
| virtual void | setUseDefaultSettingsRecord (bool useit) |
| virtual bool | useDefaultSettingsRecord () const |
| virtual DtDeSettings * | settings () |
| virtual const DtDeSettings * | settings () const |
| virtual DtSettingsBackup * | settingsBackup () |
| virtual const DtSettingsBackup * | settingsBackup () const |
| virtual void | loadDefaults () |
| virtual void | saveDefaultSettings () |
| virtual void | loadDefaultSettings (bool loadOnlyFactorySettings) |
| virtual void | importSettings (const std::string &filePath) |
| virtual void | exportSettings (const std::string &filePath) const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtApplicationSettingsManager & | instance (DtDe &de) |
Public Attributes | |
Boost signals for changed settings | |
| boost::signalslib::signal < void(bool)> | signal_viewControlEnabledSet |
| boost::signalslib::signal < void(DtUnicode)> | signal_screenCaptureFilePathChanged |
| boost::signalslib::signal < void(bool)> | signal_mouseHideEnabledChanged |
| boost::signalslib::signal < void(float)> | signal_mouseHideTimeChanged |
| boost::signalslib::signal < void(bool)> | signal_showQuitDialogOnCloseChanged |
| boost::signalslib::signal < void(bool)> | signal_darkModeEnabledChanged |
| boost::signalslib::signal < void(bool)> | signal_lightModeDarkModeIconsEnabledChanged |
| boost::signalslib::signal< void()> | signal_preCurrentStyleSheetsPathChanged |
| boost::signalslib::signal < void(const std::string &)> | signal_currentStyleSheetsPathChanged |
| boost::signalslib::signal< void()> | signal_postCurrentStyleSheetsPathChanged |
| boost::signalslib::signal < void(double)> | signal_paperMapLayerTimeoutChanged |
Protected Member Functions | |
| DtApplicationSettingsManager (DtDe &) | |
| virtual bool | applyFactoryOverrides (DtApplicationSettingsRecord &rec) const |
Protected Attributes | |
| bool | myViewControlEnabled |
| DtUnicode | myScreenCaptureFilePath |
| bool | myMouseHideEnabled |
| float | myMouseHideTime |
| bool | myShowQuitDialogOnClose |
| bool | myDarkModeEnabled |
| bool | myLightModeDarkModeIconsEnabled |
| double | myPaperMapLayerTimeout |
| std::string | myDarkModeStyleSheetsPath |
| std::string | myLightModeStyleSheetsPath |
Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< DtApplicationSettingsRecord > | |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| std::string | myExtension |
| std::string | myDisplayName |
| bool | myUseDefaultSettingsRecordFlag |
| bool | myAutoSaveFlag |
| DtSettingsBackup * | mySettingsBackup |
| DtDe & | myDe |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSettingsManager< DtApplicationSettingsRecord > | |
| typedef DtRecordSettingsBackup < DtBaseSettingsManager < DtApplicationSettingsRecord > , DtApplicationSettingsRecord > | RecordBackupType |
|
virtual |
DTOR.
|
protected |
CTOR.
|
static |
Get an instance of the settings manager.
|
virtual |
Set whether the mouse should be hidden when it hasn't moved for a specified period of time (default 3 seconds)
|
virtual |
Set whether the mouse should be hidden when it hasn't moved for a specified period of time (default 3 seconds)
|
virtual |
Set whether the mouse should be hidden when it hasn't moved for a specified period of time (default 3 seconds)
|
virtual |
Set whether the mouse should be hidden when it hasn't moved for a specified period of time (default 3 seconds)
|
virtual |
Set whether the mouse should be hidden when it hasn't moved for a specified period of time (default 3 seconds)
|
virtual |
Set whether the mouse should be hidden when it hasn't moved for a specified period of time.
|
virtual |
If mouse hide is enabled, set the amount of time to wait for absence of mouse motion.
|
virtual |
Set the amount of time to wait for absence of mouse motion.
|
virtual |
Set whether or not to show the quit dialog on close.
|
virtual |
Get whether ot not to show the quit dialog on close.
|
virtual |
Set whether or not dark mode is enabled for the application.
|
virtual |
Get whether or not dark mode is enabled for the application.
|
virtual |
Set whether or not light mode and dark mode icons are used for the application.
|
virtual |
Get whether or not light mode and dark mode icons are used for the application.
|
virtual |
Set the path where the QSS files for Dark Mode are.
|
virtual |
Get the path where the QSS files for Dark Mode are.
|
virtual |
Set the path where the QSS files for Light Mode are.
|
virtual |
Get the path where the QSS files for Light Mode are.
|
virtual |
Get the path that contains the QSS files the application is currently using.
|
virtual |
Set osgEarth layers timeout for paper map groups.
|
virtual |
Get osgEarth layers timeout for paper map groups.
| void makVrv::DtApplicationSettingsManager::setFromRecord | ( | const DtApplicationSettingsRecord & | rec | ) |
Set the current settings' state from the given record.
| void makVrv::DtApplicationSettingsManager::getRecord | ( | DtApplicationSettingsRecord & | rec | ) | const |
Store the current settings' state in the given record.
|
protectedvirtual |
Get overrides to the factory record, if any. If there are overrides, this function returns true. This is an internal utility function used by VR-Vantage engineers to update factory defaults. As a result, this function returns false in releases but can be overriden by toolkit users if desired; however, generally toolkit users can and should use DtDeInitializer::addDefaultSettingsRecord(...) instead.
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
| boost::signalslib::signal<void ( bool )> makVrv::DtApplicationSettingsManager::signal_viewControlEnabledSet |
Signal that indicates whether dark mode has been enabled or disabled.
| boost::signalslib::signal<void(DtUnicode)> makVrv::DtApplicationSettingsManager::signal_screenCaptureFilePathChanged |
Signal that indicates whether dark mode has been enabled or disabled.
| boost::signalslib::signal<void(bool)> makVrv::DtApplicationSettingsManager::signal_mouseHideEnabledChanged |
Signal that indicates whether dark mode has been enabled or disabled.
| boost::signalslib::signal<void(float)> makVrv::DtApplicationSettingsManager::signal_mouseHideTimeChanged |
Signal that indicates whether dark mode has been enabled or disabled.
| boost::signalslib::signal<void(bool)> makVrv::DtApplicationSettingsManager::signal_showQuitDialogOnCloseChanged |
Signal that indicates whether dark mode has been enabled or disabled.
| boost::signalslib::signal<void(bool)> makVrv::DtApplicationSettingsManager::signal_darkModeEnabledChanged |
Signal that indicates whether dark mode has been enabled or disabled.
| boost::signalslib::signal<void(bool)> makVrv::DtApplicationSettingsManager::signal_lightModeDarkModeIconsEnabledChanged |
Signal that indicates whether light/dark mode-specific icons have been enabled or disabled.
| boost::signalslib::signal<void()> makVrv::DtApplicationSettingsManager::signal_preCurrentStyleSheetsPathChanged |
Signal that indicates the application's stylesheet(s) will be changed This signal is used by some widgets to invalidate its custom properties that the widget retrieves from a stylesheet.
| boost::signalslib::signal<void(const std::string&)> makVrv::DtApplicationSettingsManager::signal_currentStyleSheetsPathChanged |
Signal that indicates the application's stylesheet(s) are changing to those present at the following path.
| boost::signalslib::signal<void()> makVrv::DtApplicationSettingsManager::signal_postCurrentStyleSheetsPathChanged |
Signal that indicates the application's stylesheet(s) have changed and been applied. This signal is used by some widgets to re-render its contents based on new custom properties that the widget retrieves from a stylesheet.
| boost::signalslib::signal<void(double)> makVrv::DtApplicationSettingsManager::signal_paperMapLayerTimeoutChanged |
Signal that indicates whether dark mode has been enabled or disabled.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |