simple_mtglife
view mainwin.ui @ 3:292c9a4b18d7
added hgignore
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 26 Jan 2015 06:03:12 +0200 |
parents | 6321cfa2ad62 |
children | 7cac97dca573 |
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 <property name="windowIcon">
17 <iconset resource="resources.qrc">
18 <normaloff>:/data/icon-96px.png</normaloff>:/data/icon-96px.png</iconset>
19 </property>
20 <widget class="QWidget" name="centralWidget">
21 <layout class="QHBoxLayout" name="horizontalLayout_3">
22 <item>
23 <widget class="QGroupBox" name="groupBox">
24 <property name="title">
25 <string>Player 1</string>
26 </property>
27 <layout class="QHBoxLayout" name="horizontalLayout">
28 <item>
29 <layout class="QVBoxLayout" name="verticalLayout_2">
30 <item>
31 <spacer name="verticalSpacer">
32 <property name="orientation">
33 <enum>Qt::Vertical</enum>
34 </property>
35 <property name="sizeHint" stdset="0">
36 <size>
37 <width>20</width>
38 <height>40</height>
39 </size>
40 </property>
41 </spacer>
42 </item>
43 <item>
44 <widget class="QPushButton" name="bn_p1_reset">
45 <property name="sizePolicy">
46 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
47 <horstretch>0</horstretch>
48 <verstretch>0</verstretch>
49 </sizepolicy>
50 </property>
51 <property name="font">
52 <font>
53 <pointsize>20</pointsize>
54 </font>
55 </property>
56 <property name="focusPolicy">
57 <enum>Qt::NoFocus</enum>
58 </property>
59 <property name="text">
60 <string>Reset</string>
61 </property>
62 </widget>
63 </item>
64 <item>
65 <spacer name="verticalSpacer_2">
66 <property name="orientation">
67 <enum>Qt::Vertical</enum>
68 </property>
69 <property name="sizeHint" stdset="0">
70 <size>
71 <width>20</width>
72 <height>40</height>
73 </size>
74 </property>
75 </spacer>
76 </item>
77 </layout>
78 </item>
79 <item>
80 <spacer name="horizontalSpacer">
81 <property name="orientation">
82 <enum>Qt::Horizontal</enum>
83 </property>
84 <property name="sizeHint" stdset="0">
85 <size>
86 <width>38</width>
87 <height>20</height>
88 </size>
89 </property>
90 </spacer>
91 </item>
92 <item>
93 <layout class="QVBoxLayout" name="verticalLayout">
94 <item>
95 <widget class="QPushButton" name="bn_p1_inc10">
96 <property name="font">
97 <font>
98 <pointsize>20</pointsize>
99 </font>
100 </property>
101 <property name="focusPolicy">
102 <enum>Qt::NoFocus</enum>
103 </property>
104 <property name="text">
105 <string>+10</string>
106 </property>
107 </widget>
108 </item>
109 <item>
110 <widget class="QPushButton" name="bn_p1_inc">
111 <property name="sizePolicy">
112 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
113 <horstretch>0</horstretch>
114 <verstretch>0</verstretch>
115 </sizepolicy>
116 </property>
117 <property name="font">
118 <font>
119 <pointsize>20</pointsize>
120 </font>
121 </property>
122 <property name="focusPolicy">
123 <enum>Qt::NoFocus</enum>
124 </property>
125 <property name="text">
126 <string>+1</string>
127 </property>
128 </widget>
129 </item>
130 <item>
131 <widget class="QSpinBox" name="spin_p1_life">
132 <property name="sizePolicy">
133 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
134 <horstretch>0</horstretch>
135 <verstretch>0</verstretch>
136 </sizepolicy>
137 </property>
138 <property name="font">
139 <font>
140 <pointsize>40</pointsize>
141 </font>
142 </property>
143 <property name="focusPolicy">
144 <enum>Qt::NoFocus</enum>
145 </property>
146 <property name="frame">
147 <bool>true</bool>
148 </property>
149 <property name="alignment">
150 <set>Qt::AlignCenter</set>
151 </property>
152 <property name="readOnly">
153 <bool>true</bool>
154 </property>
155 <property name="buttonSymbols">
156 <enum>QAbstractSpinBox::NoButtons</enum>
157 </property>
158 <property name="minimum">
159 <number>-99</number>
160 </property>
161 <property name="value">
162 <number>20</number>
163 </property>
164 </widget>
165 </item>
166 <item>
167 <widget class="QPushButton" name="bn_p1_dec">
168 <property name="sizePolicy">
169 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
170 <horstretch>0</horstretch>
171 <verstretch>0</verstretch>
172 </sizepolicy>
173 </property>
174 <property name="font">
175 <font>
176 <pointsize>20</pointsize>
177 </font>
178 </property>
179 <property name="focusPolicy">
180 <enum>Qt::NoFocus</enum>
181 </property>
182 <property name="text">
183 <string>-1</string>
184 </property>
185 </widget>
186 </item>
187 <item>
188 <widget class="QPushButton" name="bn_p1_dec10">
189 <property name="font">
190 <font>
191 <pointsize>20</pointsize>
192 </font>
193 </property>
194 <property name="focusPolicy">
195 <enum>Qt::NoFocus</enum>
196 </property>
197 <property name="text">
198 <string>-10</string>
199 </property>
200 </widget>
201 </item>
202 </layout>
203 </item>
204 </layout>
205 </widget>
206 </item>
207 <item>
208 <widget class="QGroupBox" name="groupBox_2">
209 <property name="title">
210 <string>Player 2</string>
211 </property>
212 <layout class="QHBoxLayout" name="horizontalLayout_2">
213 <item>
214 <layout class="QVBoxLayout" name="verticalLayout_3">
215 <item>
216 <spacer name="verticalSpacer_3">
217 <property name="orientation">
218 <enum>Qt::Vertical</enum>
219 </property>
220 <property name="sizeHint" stdset="0">
221 <size>
222 <width>20</width>
223 <height>40</height>
224 </size>
225 </property>
226 </spacer>
227 </item>
228 <item>
229 <widget class="QPushButton" name="bn_p2_reset">
230 <property name="sizePolicy">
231 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
232 <horstretch>0</horstretch>
233 <verstretch>0</verstretch>
234 </sizepolicy>
235 </property>
236 <property name="font">
237 <font>
238 <pointsize>20</pointsize>
239 </font>
240 </property>
241 <property name="focusPolicy">
242 <enum>Qt::NoFocus</enum>
243 </property>
244 <property name="text">
245 <string>Reset</string>
246 </property>
247 </widget>
248 </item>
249 <item>
250 <spacer name="verticalSpacer_4">
251 <property name="orientation">
252 <enum>Qt::Vertical</enum>
253 </property>
254 <property name="sizeHint" stdset="0">
255 <size>
256 <width>20</width>
257 <height>40</height>
258 </size>
259 </property>
260 </spacer>
261 </item>
262 </layout>
263 </item>
264 <item>
265 <spacer name="horizontalSpacer_2">
266 <property name="orientation">
267 <enum>Qt::Horizontal</enum>
268 </property>
269 <property name="sizeHint" stdset="0">
270 <size>
271 <width>32</width>
272 <height>20</height>
273 </size>
274 </property>
275 </spacer>
276 </item>
277 <item>
278 <layout class="QVBoxLayout" name="verticalLayout_4">
279 <item>
280 <widget class="QPushButton" name="bn_p2_inc10">
281 <property name="font">
282 <font>
283 <pointsize>20</pointsize>
284 </font>
285 </property>
286 <property name="focusPolicy">
287 <enum>Qt::NoFocus</enum>
288 </property>
289 <property name="text">
290 <string>+10</string>
291 </property>
292 </widget>
293 </item>
294 <item>
295 <widget class="QPushButton" name="bn_p2_inc">
296 <property name="sizePolicy">
297 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
298 <horstretch>0</horstretch>
299 <verstretch>0</verstretch>
300 </sizepolicy>
301 </property>
302 <property name="font">
303 <font>
304 <pointsize>20</pointsize>
305 </font>
306 </property>
307 <property name="focusPolicy">
308 <enum>Qt::NoFocus</enum>
309 </property>
310 <property name="text">
311 <string>+1</string>
312 </property>
313 </widget>
314 </item>
315 <item>
316 <widget class="QSpinBox" name="spin_p2_life">
317 <property name="sizePolicy">
318 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
319 <horstretch>0</horstretch>
320 <verstretch>0</verstretch>
321 </sizepolicy>
322 </property>
323 <property name="font">
324 <font>
325 <pointsize>40</pointsize>
326 </font>
327 </property>
328 <property name="focusPolicy">
329 <enum>Qt::NoFocus</enum>
330 </property>
331 <property name="frame">
332 <bool>true</bool>
333 </property>
334 <property name="alignment">
335 <set>Qt::AlignCenter</set>
336 </property>
337 <property name="readOnly">
338 <bool>true</bool>
339 </property>
340 <property name="buttonSymbols">
341 <enum>QAbstractSpinBox::NoButtons</enum>
342 </property>
343 <property name="minimum">
344 <number>-99</number>
345 </property>
346 <property name="value">
347 <number>20</number>
348 </property>
349 </widget>
350 </item>
351 <item>
352 <widget class="QPushButton" name="bn_p2_dec">
353 <property name="sizePolicy">
354 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
355 <horstretch>0</horstretch>
356 <verstretch>0</verstretch>
357 </sizepolicy>
358 </property>
359 <property name="font">
360 <font>
361 <pointsize>20</pointsize>
362 </font>
363 </property>
364 <property name="focusPolicy">
365 <enum>Qt::NoFocus</enum>
366 </property>
367 <property name="text">
368 <string>-1</string>
369 </property>
370 </widget>
371 </item>
372 <item>
373 <widget class="QPushButton" name="bn_p2_dec10">
374 <property name="font">
375 <font>
376 <pointsize>20</pointsize>
377 </font>
378 </property>
379 <property name="focusPolicy">
380 <enum>Qt::NoFocus</enum>
381 </property>
382 <property name="text">
383 <string>-10</string>
384 </property>
385 </widget>
386 </item>
387 </layout>
388 </item>
389 </layout>
390 </widget>
391 </item>
392 </layout>
393 </widget>
394 <widget class="QMenuBar" name="menuBar">
395 <property name="geometry">
396 <rect>
397 <x>0</x>
398 <y>0</y>
399 <width>623</width>
400 <height>20</height>
401 </rect>
402 </property>
403 <widget class="QMenu" name="menu_file">
404 <property name="title">
405 <string>&File</string>
406 </property>
407 <addaction name="action_reset"/>
408 <addaction name="separator"/>
409 <addaction name="action_quit"/>
410 </widget>
411 <widget class="QMenu" name="menu_Help">
412 <property name="title">
413 <string>&Help</string>
414 </property>
415 <addaction name="action_about"/>
416 </widget>
417 <addaction name="menu_file"/>
418 <addaction name="menu_Help"/>
419 </widget>
420 <action name="action_reset">
421 <property name="text">
422 <string>&Reset</string>
423 </property>
424 </action>
425 <action name="action_quit">
426 <property name="text">
427 <string>&Quit</string>
428 </property>
429 </action>
430 <action name="action_about">
431 <property name="text">
432 <string>&About</string>
433 </property>
434 </action>
435 </widget>
436 <layoutdefault spacing="6" margin="11"/>
437 <resources>
438 <include location="resources.qrc"/>
439 </resources>
440 <connections>
441 <connection>
442 <sender>bn_p1_dec</sender>
443 <signal>clicked()</signal>
444 <receiver>spin_p1_life</receiver>
445 <slot>stepDown()</slot>
446 <hints>
447 <hint type="sourcelabel">
448 <x>209</x>
449 <y>277</y>
450 </hint>
451 <hint type="destinationlabel">
452 <x>232</x>
453 <y>196</y>
454 </hint>
455 </hints>
456 </connection>
457 <connection>
458 <sender>bn_p1_inc</sender>
459 <signal>clicked()</signal>
460 <receiver>spin_p1_life</receiver>
461 <slot>stepUp()</slot>
462 <hints>
463 <hint type="sourcelabel">
464 <x>241</x>
465 <y>131</y>
466 </hint>
467 <hint type="destinationlabel">
468 <x>251</x>
469 <y>181</y>
470 </hint>
471 </hints>
472 </connection>
473 <connection>
474 <sender>bn_p2_dec</sender>
475 <signal>clicked()</signal>
476 <receiver>spin_p2_life</receiver>
477 <slot>stepDown()</slot>
478 <hints>
479 <hint type="sourcelabel">
480 <x>600</x>
481 <y>304</y>
482 </hint>
483 <hint type="destinationlabel">
484 <x>540</x>
485 <y>190</y>
486 </hint>
487 </hints>
488 </connection>
489 <connection>
490 <sender>bn_p2_inc</sender>
491 <signal>clicked()</signal>
492 <receiver>spin_p2_life</receiver>
493 <slot>stepUp()</slot>
494 <hints>
495 <hint type="sourcelabel">
496 <x>510</x>
497 <y>135</y>
498 </hint>
499 <hint type="destinationlabel">
500 <x>506</x>
501 <y>189</y>
502 </hint>
503 </hints>
504 </connection>
505 </connections>
506 </ui>