With the Preferences functions, you can retrieve information about the whole preference system. The user can set and retrieve the value of any preferences in the software.
More...
|
ColorRGBA | getColor (QString name, ColorRGBA defaultValue) const |
|
void | setColor (QString name, ColorRGBA color) |
|
double | getDouble (QString name, double defaultValue) |
|
void | setDouble (QString name, double value) |
|
double | getInt (QString name, int defaultValue) |
|
void | setInt (QString name, int value) |
|
bool | getBool (QString name, bool defaultValue) |
|
void | setBool (QString name, bool value) |
|
QString | getString (QString name, QString defaultValue) |
|
void | setString (QString name, QString value) |
|
double | getEnumValue (QString name, int defaultValue) |
|
void | setEnumValue (QString name, int value) |
|
With the Preferences functions, you can retrieve information about the whole preference system. The user can set and retrieve the value of any preferences in the software.
The actual name and current value of a preference are in stored in the user configuration file.
The file prefs.xml contains a description of all preferences recognized by the application. The keyword to access each predefined preference is also found in that file.
Scripts can change or retrieve any existing preference, and may create new preferences.
function toggleAutoSaveLayout()
{
var b;
print( "preference to automatically save the layout was " + b );
print( "preference for auto save layout is now " + b );
}