SettingsManager¶
- MacroModule¶
genre
author
package
definition
see also
keywords
Purpose¶
The module SettingsManager loads/saves field values from/to a file or a settings string.
Usage¶
Set up the list of fields (Store Fields) to be managed (you may use drag-and-drop), and use Save/Load to save to / load from a file, or use Update/Restore to just save to / load from the Settings String if you want to care about persistency in a different way.
Details¶
Syntax in input text field:
Field1,
Field2,
...
Syntax in saved files:
Field1 = value1;
Field2 = value2;
...
The module offers a field separatorChar to set the separator character for the settings string.
Windows¶
Default Panel¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Store Fields¶
- name: storedFields, type: String¶
Sets the list of fields to be stored.
Syntax is:
moduleName1.fieldName1, moduleName1.fieldName2, moduleName2.fieldName1
Restrict Load/Restore to specified fields¶
- name: restrictLoad, type: Bool, default: FALSE¶
If checked, the loading/restoring is restricted to the specified fields.
This makes a difference if the settings string contains a different set of fields than the ones listed in
Store Fields.
Only Set If Changed¶
- name: onlySetIfChanged, type: Bool, default: FALSE¶
If checked, field values are only restored if the string value of the field is different from the stored value.
Load¶
- name: load, type: Trigger¶
When pressed, the persistency file is loaded.
Save¶
- name: save, type: Trigger¶
When pressed, the persistency file is saved.
Auto Load¶
- name: autoLoad, type: Bool, default: TRUE¶
If checked, the module automatically loads the settings file.
Filename¶
- name: filename, type: String¶
Sets the filename of the file to save to/load from.
Postfix¶
- name: postfix, type: String, deprecated name: appendName¶
Sets an additional filename extension.
Settings String¶
- name: settingsString, type: String¶
Shows and sets the field value string.
Update¶
- name: update, type: Trigger¶
When pressed, the value list in
Settings Stringis updated.
Restore¶
- name: restore, type: Trigger¶
When pressed, the value list in
Settings Stringis restored into the original fields.
Auto Restore¶
- name: autoRestore, type: Bool, default: FALSE¶
If checked, the value list is automatically restored (whenever the
Settings Stringchanges).