![]() |
VR-Forces 4.8 Class Documentation
|
Application Settings Manager Settings associated with the application that don't merit an additional settings file (one offs, primarily) More...

Public Member Functions | |
| virtual | ~DtApplicationSettingsManager () |
| DTOR. More... | |
| virtual void | setShowQuitDialogOnClose (bool show) |
| Set whether or not to show the quit dialog on close. More... | |
| virtual bool | showQuitDialogOnClose () const |
| Get whether ot not to show the quit dialog on close. More... | |
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) |
| Set whether the mouse should be hidden when it hasn't moved for a specified period of time (default 3 seconds) More... | |
| virtual bool | mouseHideEnabled () const |
| Set whether the mouse should be hidden when it hasn't moved for a specified period of time. More... | |
| virtual void | setMouseHideTime (float hideTime) |
| If mouse hide is enabled, set the amount of time to wait for absence of mouse motion. More... | |
| virtual float | mouseHideTime () const |
| Set the amount of time to wait for absence of mouse motion. More... | |
Setting Persistence Methods | |
| void | setFromRecord (const DtApplicationSettingsRecord &rec) |
| Set the current settings' state from the given record. More... | |
| void | getRecord (DtApplicationSettingsRecord &rec) const |
| Store the current settings' state in the given record. More... | |
Public Member Functions inherited from makVrv::DtBaseSettingsManager< DtApplicationSettingsRecord > | |
| DtBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR. More... | |
| virtual | ~DtBaseSettingsManager () |
| Virtual DTOR. More... | |
| virtual void | initializeBackup () |
| Creates a backup of the settings' current state. More... | |
| virtual void | setFromRecord (const DtApplicationSettingsRecord &record)=0 |
| Set the current settings' state from the given record (abstract). More... | |
| virtual void | getRecord (DtApplicationSettingsRecord &record) const =0 |
| Store the current settings' state in the given record (abstract). More... | |
Public Member Functions inherited from makVrv::DtCommonBaseSettingsManager< DtApplicationSettingsRecord > | |
| DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR The name, displayName, and extension parameters are used for creating the settings object (DtDeSettings) and backup, and for constructing the filename when readin/writing the records to disk. More... | |
| virtual | ~DtCommonBaseSettingsManager () |
| Virtual DTOR. More... | |
| virtual void | autoSaveIfNecessary () |
| Saves the current settings as defaults if autosave is enabled. More... | |
| virtual void | setAutoSave (bool doit) |
| Sets whether autosave is enabled for the settings manager. More... | |
| virtual bool | autoSave () const |
| Gets whether autosave is enabled for the settings manager. More... | |
| virtual void | setUseDefaultSettingsRecord (bool useit) |
| Sets whether setting initialization should check for a default record. More... | |
| virtual bool | useDefaultSettingsRecord () const |
| Gets whether setting initialization should check for a default record. More... | |
| virtual DtDeSettings * | settings () |
| Accessor for the manager's DtDeSettings object. More... | |
| virtual const DtDeSettings * | settings () const |
| Accessor for the manager's DtDeSettings object (const). More... | |
| virtual DtSettingsBackup * | settingsBackup () |
| Accessor for the manager's settings backup. More... | |
| virtual const DtSettingsBackup * | settingsBackup () const |
| Accessor for the manager's settings backup (const). More... | |
| virtual void | loadDefaults () |
| Initializes the settings and creates a backup. More... | |
| virtual void | saveDefaultSettings () |
| Saves the current settings' state as the default (on disk). More... | |
| virtual void | loadDefaultSettings (bool loadOnlyFactorySettings) |
| Loads the default settings from disk. More... | |
| virtual void | importSettings (const std::string &filePath) |
| Load the settings' state from the given file. More... | |
| virtual void | exportSettings (const std::string &filePath) const |
| Save the current settings' state to the given file. More... | |
| virtual void | getSplitRecord (std::vector< DtApplicationSettingsRecord > &rec, std::vector< std::string > &fileNames) |
| For directory support, split the main record into different sub-records and give them each a file name. More... | |
| virtual void | addRecords (DtApplicationSettingsRecord &rec, DtApplicationSettingsRecord &combinedRec) |
| For directory support, when reading in a directory, add the records from each file to the combined record. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtApplicationSettingsManager & | instance (DtDe &de) |
| Get an instance of the settings manager. More... | |
Public Attributes | |
Boost signals for changed settings | |
| boost::signal< void(bool)> | signal_viewControlEnabledSet |
| boost::signal< void(DtUnicode)> | signal_screenCaptureFilePathChanged |
| boost::signal< void(bool)> | signal_mouseHideEnabledChanged |
| boost::signal< void(float)> | signal_mouseHideTimeChanged |
| boost::signal< void(bool)> | signal_showQuitDialogOnCloseChanged |
Protected Member Functions | |
| DtApplicationSettingsManager (DtDe &) | |
| CTOR. More... | |
Protected Attributes | |
| bool | myViewControlEnabled |
| DtUnicode | myScreenCaptureFilePath |
| bool | myMouseHideEnabled |
| float | myMouseHideTime |
| bool | myShowQuitDialogOnClose |
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) |
| Befriend the manager instance functions for instance retreival/creation. More... | |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
| Befriend the manager instance functions for instance retreival/creation. More... | |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSettingsManager< DtApplicationSettingsRecord > | |
| typedef DtRecordSettingsBackup < DtBaseSettingsManager < DtApplicationSettingsRecord > , DtApplicationSettingsRecord > | RecordBackupType |
Application Settings Manager Settings associated with the application that don't merit an additional settings file (one offs, primarily)
|
virtual |
DTOR.
|
protected |
CTOR.
|
static |
Get an instance of the settings manager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
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.
| 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.
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Manager requirements: 1) Static instance function 2) Protected DtSignalConnectionManager named myConnections. 3) Member functioned called loadDefaults which takes no arguments. and loads the default settings of the manager or factory from disk. 4) define defaultManagerInstanceFunction as friend. 5) define defaultManagerRegisterInstanceFunction as friend (see below). 5) Protected Constructor which only takes a DtDe reference.
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::signal<void ( bool )> makVrv::DtApplicationSettingsManager::signal_viewControlEnabledSet |
| boost::signal<void(DtUnicode)> makVrv::DtApplicationSettingsManager::signal_screenCaptureFilePathChanged |
| boost::signal<void(bool)> makVrv::DtApplicationSettingsManager::signal_mouseHideEnabledChanged |
| boost::signal<void(float)> makVrv::DtApplicationSettingsManager::signal_mouseHideTimeChanged |
| boost::signal<void(bool)> makVrv::DtApplicationSettingsManager::signal_showQuitDialogOnCloseChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |