source: trunk/test/buggy_xmls/disabledtabs/tool.xml @ 1216

Last change on this file since 1216 was 1216, checked in by dkearney, 15 years ago

adding fix to controls.tcl to properly display all enabled tabs when some of the available tabs are disabled. this fix helps allow photonicsdb to dynamically display inputs for layers of materials while keeping the first and last tabs always enabled.

also included is an example which displays the bad behavior in previous versions of rappture as part of the buggy_xml series.

File size: 2.1 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4    <layout>wizard</layout>
5</tool>
6<input>
7    <integer id="layers">
8        <default>1</default>
9    </integer>
10    <group id="tabs">
11        <group id="front">
12            <about>
13                <label>FRONT</label>
14            </about>
15            <loader>
16                <about>
17                    <label>Front</label>
18                    <description>Specify the material.</description>
19                </about>
20            </loader>
21        </group>
22        <group id="layer1">
23            <about>
24                <label>Layer 1</label>
25            </about>
26            <loader>
27                <about>
28                    <label>Layer 1</label>
29                    <description>Specify the material.</description>
30                </about>
31            </loader>
32        </group>
33        <group id="layer2">
34            <about>
35                <label>Layer 2</label>
36                <enable>input.integer(layers) &gt;=2 </enable>
37            </about>
38            <loader>
39                <about>
40                    <label>Layer 2</label>
41                    <description>Specify the material.</description>
42                    <!-- <enable>input.integer(layers) &gt;=2 </enable> -->
43                </about>
44            </loader>
45        </group>
46        <group id="layer3">
47            <about>
48                <label>Layer 3</label>
49                <enable>input.integer(layers) &gt;=3 </enable>
50            </about>
51            <loader>
52                <about>
53                    <label>Layer 3</label>
54                    <description>Specify the material.</description>
55                    <enable>input.integer(layers) &gt;=3 </enable>
56                </about>
57            </loader>
58        </group>
59        <group id="back">
60            <about>
61                <label>BACK</label>
62                <enable>input.integer(layers) &gt;=0 </enable>
63            </about>
64            <loader>
65                <about>
66                    <label>Back</label>
67                    <description>Specify the material.</description>
68                </about>
69            </loader>
70        </group>
71    </group>
72</input>
73</run>
Note: See TracBrowser for help on using the repository browser.