Salome HOME
Merge from V6_main_20120808 08Aug12
[tools/yacsgen.git] / Examples / pygui1 / demo.ui
1 <ui version="4.0" >
2  <author></author>
3  <comment></comment>
4  <exportmacro></exportmacro>
5  <class>DemoDialog</class>
6  <widget class="QDialog" name="DemoDialog" >
7   <property name="geometry" >
8    <rect>
9     <x>0</x>
10     <y>0</y>
11     <width>400</width>
12     <height>300</height>
13    </rect>
14   </property>
15   <property name="windowTitle" >
16    <string>PyUIC4 Demo Dialog</string>
17   </property>
18   <layout class="QGridLayout" >
19    <property name="margin" >
20     <number>9</number>
21    </property>
22    <property name="spacing" >
23     <number>6</number>
24    </property>
25    <item row="2" column="0" >
26     <spacer>
27      <property name="orientation" >
28       <enum>Qt::Vertical</enum>
29      </property>
30      <property name="sizeHint" >
31       <size>
32        <width>20</width>
33        <height>40</height>
34       </size>
35      </property>
36     </spacer>
37    </item>
38    <item row="0" column="0" >
39     <spacer>
40      <property name="orientation" >
41       <enum>Qt::Vertical</enum>
42      </property>
43      <property name="sizeHint" >
44       <size>
45        <width>20</width>
46        <height>40</height>
47       </size>
48      </property>
49     </spacer>
50    </item>
51    <item rowspan="3" row="0" column="1" >
52     <widget class="QListWidget" name="list" />
53    </item>
54    <item row="1" column="0" >
55     <layout class="QVBoxLayout" >
56      <property name="margin" >
57       <number>0</number>
58      </property>
59      <property name="spacing" >
60       <number>6</number>
61      </property>
62      <item>
63       <widget class="QPushButton" name="button1" >
64        <property name="text" >
65         <string>Add items</string>
66        </property>
67       </widget>
68      </item>
69      <item>
70       <widget class="QPushButton" name="button2" >
71        <property name="text" >
72         <string>Clear list</string>
73        </property>
74       </widget>
75      </item>
76     </layout>
77    </item>
78    <item row="3" column="0" colspan="2" >
79     <layout class="QHBoxLayout" >
80      <property name="margin" >
81       <number>0</number>
82      </property>
83      <property name="spacing" >
84       <number>6</number>
85      </property>
86      <item>
87       <spacer>
88        <property name="orientation" >
89         <enum>Qt::Horizontal</enum>
90        </property>
91        <property name="sizeHint" >
92         <size>
93          <width>131</width>
94          <height>31</height>
95         </size>
96        </property>
97       </spacer>
98      </item>
99      <item>
100       <widget class="QPushButton" name="okButton" >
101        <property name="text" >
102         <string>OK</string>
103        </property>
104       </widget>
105      </item>
106     </layout>
107    </item>
108   </layout>
109  </widget>
110  <pixmapfunction></pixmapfunction>
111  <resources/>
112  <connections>
113   <connection>
114    <sender>okButton</sender>
115    <signal>clicked()</signal>
116    <receiver>DemoDialog</receiver>
117    <slot>accept()</slot>
118    <hints>
119     <hint type="sourcelabel" >
120      <x>369</x>
121      <y>256</y>
122     </hint>
123     <hint type="destinationlabel" >
124      <x>96</x>
125      <y>254</y>
126     </hint>
127    </hints>
128   </connection>
129   <connection>
130    <sender>button2</sender>
131    <signal>clicked()</signal>
132    <receiver>list</receiver>
133    <slot>clear()</slot>
134    <hints>
135     <hint type="sourcelabel" >
136      <x>92</x>
137      <y>112</y>
138     </hint>
139     <hint type="destinationlabel" >
140      <x>279</x>
141      <y>123</y>
142     </hint>
143    </hints>
144   </connection>
145  </connections>
146 </ui>