source: trunk/examples/lang/tcl/loadercopy/tool.xml @ 3471

Last change on this file since 3471 was 1226, checked in by dkearney, 16 years ago

fixing bug where loader fails to show the correct label when using the zoo/loader example.
moving the xml copy from newobj to inside of a similar check to see if the path exists in newobj.
adding example of using the loader copy feature in tcl.

File size: 2.0 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>loader</title>
5  <about>Example of the copy functionality of a Rappture &lt;loader&gt; object.
6
7A loader is used to load values into the interface from example files.  The example files have the same format as the tool.xml file that they are being loaded into.  In fact, they can be generated by running the tool and saving the output run.xml file.  In you look in the example files, you'll see that each one also has an &lt;about&gt; section with a label and a description.  These show up in the loader control.
8
9The description appears in a tooltip when you hover over the loader control with your mouse.
10
11You can see the real action here by selecting various examples from the loader.  The simulate button doesn't do very much.  It just copies the inputs to the output log.
12  </about>
13  <command>
14    tclsh @tool/loadercopy.tcl @driver
15  </command>
16</tool>
17<input>
18  <group id="tabs">
19    <group id="layer1">
20      <about>
21        <label>Layer1</label>
22      </about>
23      <loader>
24        <about>
25          <label>Material</label>
26          <description>Choose the material for layer 1.</description>
27        </about>
28        <example>*.xml</example>
29        <copy>
30          <from>input.note</from>
31          <to>input.group(tabs).group(layer1).note</to>
32        </copy>
33        <default>Choose A Material</default>
34      </loader>
35      <note>
36        <contents>file://none.html</contents>
37      </note>
38    </group>
39    <group id="layer2">
40      <about>
41        <label>Layer2</label>
42      </about>
43      <loader>
44        <about>
45          <label>Material</label>
46          <description>Choose the material for layer 2.</description>
47        </about>
48        <example>*.xml</example>
49        <copy>
50          <from>input.note</from>
51          <to>input.group(tabs).group(layer2).note</to>
52        </copy>
53        <default>Choose A Material</default>
54      </loader>
55      <note>
56        <contents>file://none.html</contents>
57      </note>
58    </group>
59  </group>
60</input>
61</run>
Note: See TracBrowser for help on using the repository browser.