simple_mtglife
view mainwin.ui @ 6:9e3e14ed98eb
android: keep from sleeping while the app is active
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 16 Feb 2015 05:46:07 +0200 |
parents | d76fb2ffe7f5 |
children |
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="action_flip_coin"/>
409 <addaction name="separator"/>
410 <addaction name="action_quit"/>
411 </widget>
412 <widget class="QMenu" name="menu_Help">
413 <property name="title">
414 <string>&Help</string>
415 </property>
416 <addaction name="action_about"/>
417 </widget>
418 <addaction name="menu_file"/>
419 <addaction name="menu_Help"/>
420 </widget>
421 <action name="action_reset">
422 <property name="text">
423 <string>&Reset</string>
424 </property>
425 </action>
426 <action name="action_quit">
427 <property name="text">
428 <string>&Quit</string>
429 </property>
430 </action>
431 <action name="action_about">
432 <property name="text">
433 <string>&About</string>
434 </property>
435 </action>
436 <action name="action_flip_coin">
437 <property name="text">
438 <string>&Flip coin</string>
439 </property>
440 </action>
441 </widget>
442 <layoutdefault spacing="6" margin="11"/>
443 <resources>
444 <include location="resources.qrc"/>
445 </resources>
446 <connections>
447 <connection>
448 <sender>bn_p1_dec</sender>
449 <signal>clicked()</signal>
450 <receiver>spin_p1_life</receiver>
451 <slot>stepDown()</slot>
452 <hints>
453 <hint type="sourcelabel">
454 <x>209</x>
455 <y>277</y>
456 </hint>
457 <hint type="destinationlabel">
458 <x>232</x>
459 <y>196</y>
460 </hint>
461 </hints>
462 </connection>
463 <connection>
464 <sender>bn_p1_inc</sender>
465 <signal>clicked()</signal>
466 <receiver>spin_p1_life</receiver>
467 <slot>stepUp()</slot>
468 <hints>
469 <hint type="sourcelabel">
470 <x>241</x>
471 <y>131</y>
472 </hint>
473 <hint type="destinationlabel">
474 <x>251</x>
475 <y>181</y>
476 </hint>
477 </hints>
478 </connection>
479 <connection>
480 <sender>bn_p2_dec</sender>
481 <signal>clicked()</signal>
482 <receiver>spin_p2_life</receiver>
483 <slot>stepDown()</slot>
484 <hints>
485 <hint type="sourcelabel">
486 <x>600</x>
487 <y>304</y>
488 </hint>
489 <hint type="destinationlabel">
490 <x>540</x>
491 <y>190</y>
492 </hint>
493 </hints>
494 </connection>
495 <connection>
496 <sender>bn_p2_inc</sender>
497 <signal>clicked()</signal>
498 <receiver>spin_p2_life</receiver>
499 <slot>stepUp()</slot>
500 <hints>
501 <hint type="sourcelabel">
502 <x>510</x>
503 <y>135</y>
504 </hint>
505 <hint type="destinationlabel">
506 <x>506</x>
507 <y>189</y>
508 </hint>
509 </hints>
510 </connection>
511 </connections>
512 </ui>