source: trunk/examples/zoo/loader/tool.xml @ 711

Last change on this file since 711 was 711, checked in by mmc, 17 years ago

Fixed the older MoleculeViewer? to work properly with the add/delete
calls needed for the new PyMol?-based viewer.

Disabled the syncCutBuffer stuff in mainwin that used to be used for
copy/paste with desktop. This never worked very well, and we have
the newer upload/download stuff in place now.

A few small tweaks to the graph example and the loader example.

File size: 1.5 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>loader</title>
5  <about>Example 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/loader.tcl @driver
15  </command>
16</tool>
17<input>
18  <loader>
19    <about>
20      <label>Example</label>
21      <description>Use this to load examples.</description>
22    </about>
23    <example>*.xml</example>
24    <upload>
25      <to>input.string(one)</to>
26      <to>input.string(two)</to>
27    </upload>
28    <download>
29      <from>input.string(one)</from>
30      <from>input.string(two)</from>
31    </download>
32  </loader>
33
34  <string id="one">
35    <about>
36      <label>Input #1</label>
37    </about>
38  </string>
39  <string id="two">
40    <about>
41      <label>Input #2</label>
42    </about>
43  </string>
44  <number id="e">
45    <about>
46      <label>Mass</label>
47    </about>
48    <units>kg</units>
49    <default>10g</default>
50  </number>
51</input>
52</run>
Note: See TracBrowser for help on using the repository browser.