1
0
Fork 0

Add loadxml/savexml commands and textbox gui dialog.

This commit is contained in:
ehofman 2004-10-24 09:26:21 +00:00
parent 7c89540541
commit 5ca1be2ca1
2 changed files with 31 additions and 0 deletions

View file

@ -77,6 +77,16 @@ save - save properties to an XML file
file: the name of the file to save, relative to the current file: the name of the file to save, relative to the current
directory (defaults to "fgfs.sav"). directory (defaults to "fgfs.sav").
loadxml - load XML file into property tree
filename: the path & filename of the file to load
targetnode: the target node within the property tree where to store the XML
file's structure
savexml - save property tree node to XML file
filename: the path & filename for the file to be saved
sourcenode: the source node within the property tree where the XML file's
structure is assembled from.
panel-load - (re)load the 2D instrument panel panel-load - (re)load the 2D instrument panel
path: the path of the XML panel file, relative to $FG_ROOT (defaults path: the path of the XML panel file, relative to $FG_ROOT (defaults
to the value of /sim/panel/path if specified, or to the value of /sim/panel/path if specified, or

View file

@ -358,5 +358,26 @@ Example:
<max>360</max> <max>360</max>
</dial> </dial>
textbox
-------
The text will be retrieved/buffered from/within a specified
property tree, like:
<textbox>
<!-- position -->
<x>100</x>
<y>100</y>
<!-- dimensions -->
<width>200</width>
<height>400</height>
<property>/gui/path-to-text-node/contents</property>
<slider>15</slider> <!--width for slider -->
<editable>true</editable> <!-- whether the puLargeInput is supposed to be editable -->
</textbox>
__end__ __end__