Methods | |
Boolean | getBoolValue (String key, Boolean def=false) |
Color | getColorValue (String key, Color def=Qt::black) |
Number | getFloatValue (String key, Number def=0.0) |
Number | getIntValue (String key, Number def=0) |
String | getStringValue (String key, String def="") |
void | popPath () |
void | pushPath (String path) |
Boolean | removeValue (String key) |
Boolean | setBoolValue (String key, Boolean setting) |
Boolean | setColorValue (String key, Color setting) |
Boolean | setFloatValue (String key, Number setting) |
Boolean | setIntValue (String key, Number setting) |
Boolean | setStringValue (String key, String setting) |
The Application Settings Manager is a class that is used to store and retrieve settings that persist from one execution of the Appliction to the next. On Windows, the settings are saved in the registry. On Mac, these settings are saved via the Carbon Preferences API.
There is only one instance of this manager in an application. This instance is created and owned by DzApp. Don't create an instance of this class, but rather request a pointer to it from DzApp via DzApp::getAppSettingsMgr().
key | Name of the key to read. | |
def | Default value - this value is returned if the key fails to be read. |
key | Name of the key to read. | |
def | Default value - this value is returned if the key fails to be read. |
key | Name of the key to read. | |
def | Default value - this value is returned if the key fails to be read. |
key | Name of the key to read. | |
def | Default value - this value is returned if the key fails to be read. |
key | Name of the key to read. | |
def | Default value - this value is returned if the key fails to be read. |
void DzAppSettingsMgr::popPath | ( | ) |
void DzAppSettingsMgr::pushPath | ( | String | path | ) |
path | The subdirectory(s) to add to the current key path. |
key | Name of the key to remove. |
key | Name of the key to write. | |
setting | Value to save for the key. |
key | Name of the key to write. | |
setting | Value to save for the key. |
key | Name of the key to write. | |
setting | Value to save for the key. |
key | Name of the key to write. | |
setting | Value to save for the key. |
key | Name of the key to write. | |
setting | Value to save for the key. |