simple_mtglife

view mainwin.ui @ 0:6321cfa2ad62

initial
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Jan 2015 15:24:27 +0200
parents
children d76fb2ffe7f5
line source
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>MainWin</class>
4 <widget class="QMainWindow" name="MainWin">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>623</width>
10 <height>380</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>MainWin</string>
15 </property>
16 <widget class="QWidget" name="centralWidget">
17 <layout class="QHBoxLayout" name="horizontalLayout_3">
18 <item>
19 <widget class="QGroupBox" name="groupBox">
20 <property name="title">
21 <string>Player 1</string>
22 </property>
23 <layout class="QHBoxLayout" name="horizontalLayout">
24 <item>
25 <layout class="QVBoxLayout" name="verticalLayout_2">
26 <item>
27 <spacer name="verticalSpacer">
28 <property name="orientation">
29 <enum>Qt::Vertical</enum>
30 </property>
31 <property name="sizeHint" stdset="0">
32 <size>
33 <width>20</width>
34 <height>40</height>
35 </size>
36 </property>
37 </spacer>
38 </item>
39 <item>
40 <widget class="QPushButton" name="bn_p1_reset">
41 <property name="sizePolicy">
42 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
43 <horstretch>0</horstretch>
44 <verstretch>0</verstretch>
45 </sizepolicy>
46 </property>
47 <property name="text">
48 <string>Reset</string>
49 </property>
50 </widget>
51 </item>
52 <item>
53 <spacer name="verticalSpacer_2">
54 <property name="orientation">
55 <enum>Qt::Vertical</enum>
56 </property>
57 <property name="sizeHint" stdset="0">
58 <size>
59 <width>20</width>
60 <height>40</height>
61 </size>
62 </property>
63 </spacer>
64 </item>
65 </layout>
66 </item>
67 <item>
68 <spacer name="horizontalSpacer">
69 <property name="orientation">
70 <enum>Qt::Horizontal</enum>
71 </property>
72 <property name="sizeHint" stdset="0">
73 <size>
74 <width>38</width>
75 <height>20</height>
76 </size>
77 </property>
78 </spacer>
79 </item>
80 <item>
81 <layout class="QVBoxLayout" name="verticalLayout">
82 <item>
83 <widget class="QPushButton" name="bn_p1_inc10">
84 <property name="font">
85 <font>
86 <pointsize>24</pointsize>
87 </font>
88 </property>
89 <property name="text">
90 <string>+10</string>
91 </property>
92 </widget>
93 </item>
94 <item>
95 <widget class="QPushButton" name="bn_p1_inc">
96 <property name="sizePolicy">
97 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
98 <horstretch>0</horstretch>
99 <verstretch>0</verstretch>
100 </sizepolicy>
101 </property>
102 <property name="font">
103 <font>
104 <pointsize>24</pointsize>
105 </font>
106 </property>
107 <property name="text">
108 <string>+1</string>
109 </property>
110 </widget>
111 </item>
112 <item>
113 <widget class="QSpinBox" name="spin_p1_life">
114 <property name="sizePolicy">
115 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
116 <horstretch>0</horstretch>
117 <verstretch>0</verstretch>
118 </sizepolicy>
119 </property>
120 <property name="font">
121 <font>
122 <pointsize>50</pointsize>
123 </font>
124 </property>
125 <property name="frame">
126 <bool>true</bool>
127 </property>
128 <property name="alignment">
129 <set>Qt::AlignCenter</set>
130 </property>
131 <property name="readOnly">
132 <bool>true</bool>
133 </property>
134 <property name="buttonSymbols">
135 <enum>QAbstractSpinBox::NoButtons</enum>
136 </property>
137 <property name="minimum">
138 <number>-99</number>
139 </property>
140 <property name="value">
141 <number>20</number>
142 </property>
143 </widget>
144 </item>
145 <item>
146 <widget class="QPushButton" name="bn_p1_dec">
147 <property name="sizePolicy">
148 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
149 <horstretch>0</horstretch>
150 <verstretch>0</verstretch>
151 </sizepolicy>
152 </property>
153 <property name="font">
154 <font>
155 <pointsize>24</pointsize>
156 </font>
157 </property>
158 <property name="text">
159 <string>-1</string>
160 </property>
161 </widget>
162 </item>
163 <item>
164 <widget class="QPushButton" name="bn_p1_dec10">
165 <property name="font">
166 <font>
167 <pointsize>24</pointsize>
168 </font>
169 </property>
170 <property name="text">
171 <string>-10</string>
172 </property>
173 </widget>
174 </item>
175 </layout>
176 </item>
177 </layout>
178 </widget>
179 </item>
180 <item>
181 <widget class="QGroupBox" name="groupBox_2">
182 <property name="title">
183 <string>Player 2</string>
184 </property>
185 <layout class="QHBoxLayout" name="horizontalLayout_2">
186 <item>
187 <layout class="QVBoxLayout" name="verticalLayout_3">
188 <item>
189 <spacer name="verticalSpacer_3">
190 <property name="orientation">
191 <enum>Qt::Vertical</enum>
192 </property>
193 <property name="sizeHint" stdset="0">
194 <size>
195 <width>20</width>
196 <height>40</height>
197 </size>
198 </property>
199 </spacer>
200 </item>
201 <item>
202 <widget class="QPushButton" name="bn_p2_reset">
203 <property name="sizePolicy">
204 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
205 <horstretch>0</horstretch>
206 <verstretch>0</verstretch>
207 </sizepolicy>
208 </property>
209 <property name="text">
210 <string>Reset</string>
211 </property>
212 </widget>
213 </item>
214 <item>
215 <spacer name="verticalSpacer_4">
216 <property name="orientation">
217 <enum>Qt::Vertical</enum>
218 </property>
219 <property name="sizeHint" stdset="0">
220 <size>
221 <width>20</width>
222 <height>40</height>
223 </size>
224 </property>
225 </spacer>
226 </item>
227 </layout>
228 </item>
229 <item>
230 <spacer name="horizontalSpacer_2">
231 <property name="orientation">
232 <enum>Qt::Horizontal</enum>
233 </property>
234 <property name="sizeHint" stdset="0">
235 <size>
236 <width>32</width>
237 <height>20</height>
238 </size>
239 </property>
240 </spacer>
241 </item>
242 <item>
243 <layout class="QVBoxLayout" name="verticalLayout_4">
244 <item>
245 <widget class="QPushButton" name="bn_p2_inc10">
246 <property name="font">
247 <font>
248 <pointsize>24</pointsize>
249 </font>
250 </property>
251 <property name="text">
252 <string>+10</string>
253 </property>
254 </widget>
255 </item>
256 <item>
257 <widget class="QPushButton" name="bn_p2_inc">
258 <property name="sizePolicy">
259 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
260 <horstretch>0</horstretch>
261 <verstretch>0</verstretch>
262 </sizepolicy>
263 </property>
264 <property name="font">
265 <font>
266 <pointsize>24</pointsize>
267 </font>
268 </property>
269 <property name="text">
270 <string>+1</string>
271 </property>
272 </widget>
273 </item>
274 <item>
275 <widget class="QSpinBox" name="spin_p2_life">
276 <property name="sizePolicy">
277 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
278 <horstretch>0</horstretch>
279 <verstretch>0</verstretch>
280 </sizepolicy>
281 </property>
282 <property name="font">
283 <font>
284 <pointsize>50</pointsize>
285 </font>
286 </property>
287 <property name="frame">
288 <bool>true</bool>
289 </property>
290 <property name="alignment">
291 <set>Qt::AlignCenter</set>
292 </property>
293 <property name="readOnly">
294 <bool>true</bool>
295 </property>
296 <property name="buttonSymbols">
297 <enum>QAbstractSpinBox::NoButtons</enum>
298 </property>
299 <property name="minimum">
300 <number>-99</number>
301 </property>
302 <property name="value">
303 <number>20</number>
304 </property>
305 </widget>
306 </item>
307 <item>
308 <widget class="QPushButton" name="bn_p2_dec">
309 <property name="sizePolicy">
310 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
311 <horstretch>0</horstretch>
312 <verstretch>0</verstretch>
313 </sizepolicy>
314 </property>
315 <property name="font">
316 <font>
317 <pointsize>24</pointsize>
318 </font>
319 </property>
320 <property name="text">
321 <string>-1</string>
322 </property>
323 </widget>
324 </item>
325 <item>
326 <widget class="QPushButton" name="bn_p2_dec10">
327 <property name="font">
328 <font>
329 <pointsize>24</pointsize>
330 </font>
331 </property>
332 <property name="text">
333 <string>-10</string>
334 </property>
335 </widget>
336 </item>
337 </layout>
338 </item>
339 </layout>
340 </widget>
341 </item>
342 </layout>
343 </widget>
344 </widget>
345 <layoutdefault spacing="6" margin="11"/>
346 <resources/>
347 <connections>
348 <connection>
349 <sender>bn_p1_dec</sender>
350 <signal>clicked()</signal>
351 <receiver>spin_p1_life</receiver>
352 <slot>stepDown()</slot>
353 <hints>
354 <hint type="sourcelabel">
355 <x>209</x>
356 <y>277</y>
357 </hint>
358 <hint type="destinationlabel">
359 <x>232</x>
360 <y>196</y>
361 </hint>
362 </hints>
363 </connection>
364 <connection>
365 <sender>bn_p1_inc</sender>
366 <signal>clicked()</signal>
367 <receiver>spin_p1_life</receiver>
368 <slot>stepUp()</slot>
369 <hints>
370 <hint type="sourcelabel">
371 <x>241</x>
372 <y>131</y>
373 </hint>
374 <hint type="destinationlabel">
375 <x>251</x>
376 <y>181</y>
377 </hint>
378 </hints>
379 </connection>
380 <connection>
381 <sender>bn_p2_dec</sender>
382 <signal>clicked()</signal>
383 <receiver>spin_p2_life</receiver>
384 <slot>stepDown()</slot>
385 <hints>
386 <hint type="sourcelabel">
387 <x>536</x>
388 <y>252</y>
389 </hint>
390 <hint type="destinationlabel">
391 <x>540</x>
392 <y>190</y>
393 </hint>
394 </hints>
395 </connection>
396 <connection>
397 <sender>bn_p2_inc</sender>
398 <signal>clicked()</signal>
399 <receiver>spin_p2_life</receiver>
400 <slot>stepUp()</slot>
401 <hints>
402 <hint type="sourcelabel">
403 <x>510</x>
404 <y>135</y>
405 </hint>
406 <hint type="destinationlabel">
407 <x>506</x>
408 <y>189</y>
409 </hint>
410 </hints>
411 </connection>
412 </connections>
413 </ui>