DzAppSettingsMgr Class Reference
[Manager Objects]

Provides cross-platform support for persistent application settings. More...

List of all members.

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)


Detailed Description

Provides cross-platform support for persistent application settings.

Deprecated:
Use DzAppSettings now instead of this class.

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().


Member Function Documentation

Boolean DzAppSettingsMgr::getBoolValue ( String  key,
Boolean  def = false 
)

Deprecated:
Read a boolean value from the given key.
Parameters:
key Name of the key to read.
def Default value - this value is returned if the key fails to be read.
Returns:
The value of the requested key
See also:
setBoolValue()

Color DzAppSettingsMgr::getColorValue ( String  key,
Color  def = Qt::black 
)

Deprecated:
Read a color value from the given key.
Parameters:
key Name of the key to read.
def Default value - this value is returned if the key fails to be read.
Returns:
The value of the requested key
See also:
setColorValue()

Number DzAppSettingsMgr::getFloatValue ( String  key,
Number  def = 0.0 
)

Deprecated:
Read a floating point value from the given key.
Parameters:
key Name of the key to read.
def Default value - this value is returned if the key fails to be read.
Returns:
The value of the requested key
See also:
setFloatValue()

Number DzAppSettingsMgr::getIntValue ( String  key,
Number  def = 0 
)

Deprecated:
Read a integer value from the given key.
Parameters:
key Name of the key to read.
def Default value - this value is returned if the key fails to be read.
Returns:
The value of the requested key
See also:
setIntValue()

String DzAppSettingsMgr::getStringValue ( String  key,
String  def = "" 
)

Deprecated:
Read a string value from the given key.
Parameters:
key Name of the key to read.
def Default value - this value is returned if the key fails to be read.
Returns:
The value of the requested key
See also:
setStringValue()

void DzAppSettingsMgr::popPath (  ) 

Deprecated:
Pops a temporary key path off the top of the stack.

void DzAppSettingsMgr::pushPath ( String  path  ) 

Deprecated:
Sets the current key path temporarily to the given path. This must be matched with a call to popPath().
Parameters:
path The subdirectory(s) to add to the current key path.

Boolean DzAppSettingsMgr::removeValue ( String  key  ) 

Deprecated:
Removes a key by name
Parameters:
key Name of the key to remove.
Returns:
true if the key/value existed and was successfully removed

Boolean DzAppSettingsMgr::setBoolValue ( String  key,
Boolean  setting 
)

Deprecated:
Write key with a boolean value.
Parameters:
key Name of the key to write.
setting Value to save for the key.
Returns:
true if the key/value was successfully written
See also:
getBoolValue()

Boolean DzAppSettingsMgr::setColorValue ( String  key,
Color  setting 
)

Deprecated:
Write key with a color value.
Parameters:
key Name of the key to write.
setting Value to save for the key.
Returns:
true if the key/value was successfully written
See also:
getColorValue()

Boolean DzAppSettingsMgr::setFloatValue ( String  key,
Number  setting 
)

Deprecated:
Write key with a floating point value.
Parameters:
key Name of the key to write.
setting Value to save for the key.
Returns:
true if the key/value was successfully written
See also:
getFloatValue()

Boolean DzAppSettingsMgr::setIntValue ( String  key,
Number  setting 
)

Deprecated:
Write key with a integer value.
Parameters:
key Name of the key to write.
setting Value to save for the key.
Returns:
true if the key/value was successfully written
See also:
getIntValue()

Boolean DzAppSettingsMgr::setStringValue ( String  key,
String  setting 
)

Deprecated:
Write key with a string value.
Parameters:
key Name of the key to write.
setting Value to save for the key.
Returns:
true if the key/value was successfully written
See also:
getStringValue()


Generated on Thu Sep 24 12:21:10 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.