~jozilla/uiml.net/uiml.net-tp

« back to all changes in this revision

Viewing changes to examples/all-widgets.uiml

  • Committer: kluyten
  • Date: 2004-06-20 23:10:09 UTC
  • Revision ID: vcs-imports@canonical.com-20040620231009-b9b2875161f3b250
*** empty log message ***

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<uiml>
 
3
        <interface>
 
4
                <structure>
 
5
                        <part class="Frame" id="outerframe">
 
6
                         <part class="VBox" id="vlayout">
 
7
                                        <part class="HBox" id="blayout1">
 
8
                                                <part class="Button" id="Button"/>
 
9
                                                <part class="Button" id="Button2">
 
10
                                                        <style>
 
11
                                                                <property name="label">Color me!</property>
 
12
                                                                <property name="background">blue</property>
 
13
                                                        </style>
 
14
                                                </part>
 
15
                                        </part>
 
16
                                        <part class="HBox" id="blayout1a">
 
17
                                                <part class="Entry" id="t1"/>
 
18
                                                <part class="Entry" id="t2">
 
19
                                                        <style><property name="foreground">red</property></style>
 
20
                                                </part>
 
21
                                        </part>
 
22
                                        <part class="HBox" id="labels">
 
23
                                                <part class="Label" id="l1">
 
24
                                                        <style><property name="foreground">blue</property></style>
 
25
                                                </part>
 
26
                                                <part class="Label" id="l2"/>
 
27
                                        </part>
 
28
                                        <part class="Frame" id="fin">
 
29
                                                <part class="HBox" id="blayout2">
 
30
                                                        <part class="VBox" id="vlayout1">
 
31
                                                                <part class="CheckButton" id="check1"/>
 
32
                                                                <part class="ToggleButton" id="check2"/>
 
33
                                                                <part class="ToggleButton" id="check3"/>
 
34
                                                                <part class="CheckButton" id="check4"/>
 
35
                                                        </part>
 
36
                                                        <part class="VBox" id="vlayout2">
 
37
                                                                <part class="Frame" id="fcal">
 
38
                                                                        <part class="Calendar" id="cal"/>
 
39
                                                                </part>
 
40
                                                                <part class="Frame" id="fcolor">
 
41
                                                                        <part class="ColorSelection" id="color"/> 
 
42
                                                                </part>
 
43
                                                                <part class="HBox">
 
44
                                                                        <part class="Entry" id="textfield" />
 
45
                                                                        <part class="Entry" id="textfield2" />
 
46
                                                                </part>
 
47
                                                        </part>
 
48
                                                </part>
 
49
                                        </part>
 
50
                                        <part class="Combo" id="combo">
 
51
                                                <style>
 
52
                                                         <property name="content">
 
53
                                                                <constant model="list">
 
54
                                                                        <constant value="dEUS"/>
 
55
                                                                        <constant value="Nemo"/>
 
56
                                                                        <constant value="The Evil Superstars"/>
 
57
                                                                        <constant value="Channel Zero"/>
 
58
                                                                        <constant value="Star Industry"/>
 
59
                                                                </constant>
 
60
                                                  </property>
 
61
                                                </style>
 
62
                                        </part>
 
63
                                        <part class="ProgressBar" id="progr">
 
64
                                                <style><property name="fraction">0.7</property></style>
 
65
                                        </part>
 
66
                         </part>
 
67
                        </part>
 
68
                </structure>
 
69
                <style>
 
70
                        <property part-name="outerframe" name="label">Two Buttons and Two Textviews</property>
 
71
                        <property part-name="Button" name="label">Picked an item?</property>
 
72
                        <property part-name="check1" name="label">VBox implemented</property>
 
73
                        <property part-name="check2" name="label">HBox implemented</property>
 
74
                        <property part-name="check3" name="label">Table not implemented</property>
 
75
                        <property part-name="check4" name="label">Spatial Constraints not implemented</property>
 
76
                        <property part-name="fin" name="label">2 VBoxes in a HBox</property>
 
77
                        <property part-name="fcal" name="label">Showing of calendar</property>
 
78
                        <property part-name="fcolor" name="label">and colorpicker</property>
 
79
                        <property part-name="t1" name="editable">false</property>
 
80
                        <property part-name="t1" name="text">this is not editable</property>
 
81
                        <property part-name="t2" name="base-color">green</property>
 
82
                        <property part-name="t2" name="text">this background is green</property>
 
83
                        <property part-name="t2" name="font">Bonzai 18</property>
 
84
                        <property part-name="l1" name="text">Left Label (selectable)</property>
 
85
                        <property part-name="l1" name="font">Kristen ITC 14</property>
 
86
                        <property part-name="l2" name="text">Right Label (not selectable)</property>
 
87
                        <property part-name="l2" name="background">green</property>
 
88
                        <property part-name="l1" name="selectable">true</property>
 
89
                        <property part-name="l2" name="selectable">false</property> 
 
90
                        <property part-name="progr" name="blocks">10</property>
 
91
                        <property part-class="ProgressBar" name="text">...making progress...</property>
 
92
                        <property part-name="textfield" name="text">text set by property</property>
 
93
                        <property part-name="textfield2" name="text">
 
94
                                <call name="String.concatenate">
 
95
                                        <param>Nested call property:</param>
 
96
                                        <param>
 
97
                                                <call name="String.concatenate">
 
98
                                                        <param>4^3 = </param>
 
99
                                                        <param>
 
100
                                                                <call name="Math.power">
 
101
                                                                  <param name="ground">4.0</param>
 
102
                                                                  <param name="power">3.0</param>
 
103
                                                                </call>                 
 
104
                                                        </param>
 
105
                                                </call>
 
106
                                        </param>
 
107
                                </call>
 
108
                        </property>
 
109
                </style>
 
110
                <behavior>
 
111
                        <rule>
 
112
                                <condition>
 
113
                                        <event class="ButtonPressed" part-name="Button"/>
 
114
                                </condition>                            
 
115
                                <action>
 
116
                                        <property part-name="t1" name="text">
 
117
                                                <property part-name="combo" name="entry"/>
 
118
                                        </property>
 
119
                                </action>
 
120
                        </rule>
 
121
                        <rule>
 
122
                                <condition>
 
123
                                        <event class="ButtonPressed" part-name="Button2"/>
 
124
                                </condition>                            
 
125
                                <action>
 
126
                                        <property part-name="Button2" name="text-color">
 
127
                                                <property part-name="color" name="color"/>
 
128
                                    </property>
 
129
                                </action>
 
130
                        </rule>
 
131
                </behavior>
 
132
 
 
133
        </interface>
 
134
        <peers>
 
135
                <!--            <presentation base="http://lumumba.luc.ac.be/~kris/projects/uiml.net/gtk-sharp-1.0.uiml"/> -->
 
136
          <presentation base="file://home/kris/projects/uiml.net/Uiml/gtk-sharp-1.0.uiml"/>
 
137
        </peers>
 
138
</uiml>
 
139