source: trunk/examples/zoo/choice/tool.xml @ 1019

Last change on this file since 1019 was 429, checked in by mmc, 18 years ago

Fixed the <choice> input so that each option can have a description
that shows up in a tooltip. Also, added a <value> that can be used
instead of the <label> to represent the current choice.

File size: 1.4 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>choice</title>
5  <about>Example of a Rappture &lt;choice&gt; object.
6
7Choices are a set of mutually exclusive options.
8The description appears in a tooltip when you hover over the choice control with your mouse.
9
10When you click the Simulate button, the input choice will be used to generate the output choice.  An output choice is constant, just like a number, boolean, etc.
11  </about>
12  <command>
13    tclsh @tool/choice.tcl @driver
14  </command>
15</tool>
16<input>
17  <choice id="stats">
18    <about>
19      <label>Carrier Statistics</label>
20      <description>Determines the model for carrier statistics used in bandgap narrowing calculations.</description>
21    </about>
22    <option>
23      <about>
24        <label>Boltzmann</label>
25        <description>From the Boltzmann transport equation</description>
26      </about>
27      <value>bte</value>
28    </option>
29    <option>
30      <about>
31        <label>Fermi</label>
32        <description>Fermi-Dirac statistics</description>
33      </about>
34    </option>
35    <option>
36      <about>
37        <label>2D Gas</label>
38        <description>Includes confinement at material interface</description>
39      </about>
40      <value>2deg</value>
41    </option>
42    <default>Boltzmann</default>
43  </choice>
44</input>
45<output>
46  <choice id="outs">
47    <about><label>Echo of choice</label></about>
48  </choice>
49</output>
50</run>
Note: See TracBrowser for help on using the repository browser.