source: branches/1.4/examples/zoo/group/tool.xml @ 5362

Last change on this file since 5362 was 3642, checked in by mmc, 11 years ago

Fixes for nanoHUB ticket #258058 and #258045 -- note within a group tab
doesn't fill out the area properly. Should work better now. Also fixed
tabs to contain the window, instead of floating above the cotents as they
have for a long time.

Fixed boolean controls to have a more obvious on/off switch instead of a
checkbox. Fixed integers and spinners to use larger +/- buttons that are
easier to press on an iPad. Fixed numbers and other gauges to have the
same relief style as entries and other widgets.

Added new layout styles to groups: horizontal, vertical, tabs, and sentence.
You can now explicitly make a layout vertical instead of tabs by setting
the layout to "vertical" instead of throwing in a separator. Updated the
zoo/groups example to show off new horizontal and sentence types.

Fixed the "drawing" example in the zoo to gray out the trapezoid top when
it is disabled.

File size: 2.0 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>group</title>
5  <about>Examples of Rappture &lt;group&gt; objects.
6
7Groups provide a way of grouping input elements.
8
9Groups can be used two ways:  A group of elements is normally drawn with a gray border around it.  A group of groups is drawn as a set of tabs.  You can see both examples in the inputs on the left.
10
11Group tags can also be used in the output section to overlay plots, but that's really a coincidence.  The name conflict is confusing and should probably be changed.
12  </about>
13  <command>
14    tclsh @tool/group.tcl @driver
15  </command>
16</tool>
17<input>
18  <!-- This group of groups is drawn as a set of tabs -->
19  <group id="tabs">
20    <group id="models">
21      <about> <label>Models</label> </about>
22      <boolean id="recomb">
23        <about> <label>Recombination Model</label> </about>
24        <default>on</default>
25      </boolean>
26
27      <!-- This group has a gray border around it-->
28      <group id="tau">
29        <about>
30          <label>Minority carrier lifetimes</label>
31          <layout>horizontal</layout>
32        </about>
33
34        <number id="taun">
35          <about> <label>For electrons</label> </about>
36          <default>1e-6</default>
37        </number>
38        <number id="taup">
39          <about> <label>For holes</label> </about>
40          <default>1e-6</default>
41        </number>
42      </group>
43    </group>
44
45    <group id="ambient">
46      <about> <label>Ambient</label> </about>
47      <number id="temp">
48        <about> <label>Temperature</label> </about>
49        <units>K</units>
50        <default>300K</default>
51      </number>
52      <group id="loc">
53        <about> <layout>sentence:Location = (${lat},${long})</layout> </about>
54        <number id="lat">
55          <about> <label>Latitude</label> </about>
56          <default>40.42</default>
57        </number>
58        <number id="long">
59          <about> <label>Longitude</label> </about>
60          <default>-86.91</default>
61        </number>
62      </group>
63    </group>
64  </group>
65</input>
66</run>
Note: See TracBrowser for help on using the repository browser.