|
ColorRGBA | getColor (String name, ColorRGBA defaultValue) |
| Gets the color from the given preference name. More...
|
|
void | setColor (String name, ColorRGBA color) |
| Sets the color for the given preference name. More...
|
|
double | getDouble (String name, double defaultValue) |
| Gets the double value from the given preference name. More...
|
|
void | setDouble (String name, double value) |
| Sets the double value for the given preference name. More...
|
|
double | getInt (String name, int defaultValue) |
| Gets the integer value from the given preference name. More...
|
|
void | setInt (String name, int value) |
| Sets the integer value for the given preference name. More...
|
|
bool | getBool (String name, bool defaultValue) |
| Gets the boolean value from the given preference name. More...
|
|
void | setBool (String name, bool value) |
| Gets the boolean value for the given preference name. More...
|
|
String | getString (String name, String defaultValue) |
| Gets the string value from the given preference name. More...
|
|
void | setString (String name, String value) |
| Sets the string value for the given preference name. More...
|
|
The preferences JavaScript global object. Set or retrieve user preferences saved in the user local data.
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;
MessageLog.
trace(
"preference to automatically save the layout was " + b );
}