A StoredList is typically used for storing settings to disk, and recalling them later. These are often parameter lists of processes like Ndefs, Pdefs, Tdefs. StoredList are used in PxChainPreset for now, and may be adapted for ProxyPreset as well.
First code examples:
create a new storedList object, with
id |
a symbol as id |
list |
an optional list of associations |
suffix |
a suffix used for storing as file |
the id of the storedList
the list of stored settings
get names and values of stored settings separately
readable post of list, as also used for storage
nameOrIndex |
access items in the list by name, index or array of names/indices |
add a setting to the list by name
name |
remoce a setting by name or index |
name |
get index in list for given name |
get and set flag whether to write changes to disk
write a setting to disk
path |
an optional path - default is auto-created |
the directory in which to write and read. consists of : dirpath +/+ dirname
the filename where settings list will be written and read. consists of : <id>.<suffix>.<fileExt>
read settings list into the StoredList object.
path |
(optional) path of stored file |
keep |
flag whether to append or clear list first |
doneFunc |
action to perform when read successfully |
dir +/+ filename
the directory where to put backups
a suffix to append to the filename.
the file extension to use for filename.
tell a StoredList to store locally.
path |
move current stored file to backup folder; this happens automatically when saving. |
the constituents of .dir
open a dialog for deleting settings
open a dialog for naming and storing a new setting