8fda48fc303c15794abef2a4c4bf5843bbc6b1e4
[vexed] / mainwindow.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>MainWindow</class>
4  <widget class="QMainWindow" name="MainWindow">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>778</width>
10     <height>480</height>
11    </rect>
12   </property>
13   <property name="windowTitle">
14    <string notr="true">Vexed</string>
15   </property>
16   <widget class="QWidget" name="centralWidget">
17    <widget class="QWidget" name="verticalLayoutWidget">
18     <property name="geometry">
19      <rect>
20       <x>9</x>
21       <y>9</y>
22       <width>761</width>
23       <height>452</height>
24      </rect>
25     </property>
26     <layout class="QVBoxLayout" name="mainLayout">
27      <item>
28       <layout class="QHBoxLayout" name="allInRow">
29        <item>
30         <layout class="QVBoxLayout" name="verticalLayout">
31          <item>
32           <layout class="QHBoxLayout" name="horizontalLayout">
33            <item>
34             <widget class="QLabel" name="moves">
35              <property name="sizePolicy">
36               <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
37                <horstretch>0</horstretch>
38                <verstretch>0</verstretch>
39               </sizepolicy>
40              </property>
41              <property name="text">
42               <string>moves</string>
43              </property>
44             </widget>
45            </item>
46            <item>
47             <spacer name="horizontalSpacer_2">
48              <property name="orientation">
49               <enum>Qt::Horizontal</enum>
50              </property>
51              <property name="sizeHint" stdset="0">
52               <size>
53                <width>40</width>
54                <height>20</height>
55               </size>
56              </property>
57             </spacer>
58            </item>
59            <item>
60             <widget class="QLabel" name="levelTitle">
61              <property name="sizePolicy">
62               <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
63                <horstretch>0</horstretch>
64                <verstretch>0</verstretch>
65               </sizepolicy>
66              </property>
67              <property name="text">
68               <string>title</string>
69              </property>
70             </widget>
71            </item>
72           </layout>
73          </item>
74          <item>
75           <widget class="FieldView" name="playwidget" native="true">
76            <property name="sizePolicy">
77             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
78              <horstretch>0</horstretch>
79              <verstretch>0</verstretch>
80             </sizepolicy>
81            </property>
82            <property name="minimumSize">
83             <size>
84              <width>450</width>
85              <height>360</height>
86             </size>
87            </property>
88            <property name="maximumSize">
89             <size>
90              <width>450</width>
91              <height>360</height>
92             </size>
93            </property>
94            <property name="palette">
95             <palette>
96              <active>
97               <colorrole role="Base">
98                <brush brushstyle="SolidPattern">
99                 <color alpha="255">
100                  <red>255</red>
101                  <green>255</green>
102                  <blue>255</blue>
103                 </color>
104                </brush>
105               </colorrole>
106               <colorrole role="Window">
107                <brush brushstyle="SolidPattern">
108                 <color alpha="255">
109                  <red>255</red>
110                  <green>254</green>
111                  <blue>253</blue>
112                 </color>
113                </brush>
114               </colorrole>
115              </active>
116              <inactive>
117               <colorrole role="Base">
118                <brush brushstyle="SolidPattern">
119                 <color alpha="255">
120                  <red>255</red>
121                  <green>255</green>
122                  <blue>255</blue>
123                 </color>
124                </brush>
125               </colorrole>
126               <colorrole role="Window">
127                <brush brushstyle="SolidPattern">
128                 <color alpha="255">
129                  <red>255</red>
130                  <green>254</green>
131                  <blue>253</blue>
132                 </color>
133                </brush>
134               </colorrole>
135              </inactive>
136              <disabled>
137               <colorrole role="Base">
138                <brush brushstyle="SolidPattern">
139                 <color alpha="255">
140                  <red>255</red>
141                  <green>254</green>
142                  <blue>253</blue>
143                 </color>
144                </brush>
145               </colorrole>
146               <colorrole role="Window">
147                <brush brushstyle="SolidPattern">
148                 <color alpha="255">
149                  <red>255</red>
150                  <green>254</green>
151                  <blue>253</blue>
152                 </color>
153                </brush>
154               </colorrole>
155              </disabled>
156             </palette>
157            </property>
158            <property name="autoFillBackground">
159             <bool>true</bool>
160            </property>
161           </widget>
162          </item>
163         </layout>
164        </item>
165        <item>
166         <spacer name="horizontalSpacer">
167          <property name="orientation">
168           <enum>Qt::Horizontal</enum>
169          </property>
170          <property name="sizeHint" stdset="0">
171           <size>
172            <width>40</width>
173            <height>20</height>
174           </size>
175          </property>
176         </spacer>
177        </item>
178        <item>
179         <layout class="QVBoxLayout" name="verticalButtons">
180          <item>
181           <spacer name="verticalSpacer_3">
182            <property name="orientation">
183             <enum>Qt::Vertical</enum>
184            </property>
185            <property name="sizeHint" stdset="0">
186             <size>
187              <width>20</width>
188              <height>40</height>
189             </size>
190            </property>
191           </spacer>
192          </item>
193          <item>
194           <layout class="QHBoxLayout" name="buttonsLandscape">
195            <item>
196             <widget class="QPushButton" name="prevLevel">
197              <property name="text">
198               <string/>
199              </property>
200              <property name="icon">
201               <iconset resource="media.qrc">
202                <normaloff>:/1leftarrow.png</normaloff>:/1leftarrow.png</iconset>
203              </property>
204             </widget>
205            </item>
206            <item>
207             <widget class="QPushButton" name="reload">
208              <property name="text">
209               <string/>
210              </property>
211              <property name="icon">
212               <iconset resource="media.qrc">
213                <normaloff>:/reload.png</normaloff>:/reload.png</iconset>
214              </property>
215             </widget>
216            </item>
217            <item>
218             <widget class="QPushButton" name="nextLevel">
219              <property name="text">
220               <string/>
221              </property>
222              <property name="icon">
223               <iconset resource="media.qrc">
224                <normaloff>:/1rightarrow.png</normaloff>:/1rightarrow.png</iconset>
225              </property>
226             </widget>
227            </item>
228           </layout>
229          </item>
230          <item>
231           <layout class="QHBoxLayout" name="undoLandscape">
232            <item>
233             <widget class="QPushButton" name="undo">
234              <property name="enabled">
235               <bool>true</bool>
236              </property>
237              <property name="text">
238               <string>undo</string>
239              </property>
240             </widget>
241            </item>
242           </layout>
243          </item>
244          <item>
245           <spacer name="verticalSpacer_2">
246            <property name="orientation">
247             <enum>Qt::Vertical</enum>
248            </property>
249            <property name="sizeHint" stdset="0">
250             <size>
251              <width>20</width>
252              <height>40</height>
253             </size>
254            </property>
255           </spacer>
256          </item>
257         </layout>
258        </item>
259       </layout>
260      </item>
261      <item>
262       <spacer name="verticalSpacer">
263        <property name="orientation">
264         <enum>Qt::Vertical</enum>
265        </property>
266        <property name="sizeHint" stdset="0">
267         <size>
268          <width>20</width>
269          <height>40</height>
270         </size>
271        </property>
272       </spacer>
273      </item>
274      <item>
275       <layout class="QHBoxLayout" name="buttonsPortraitx">
276        <item>
277         <layout class="QHBoxLayout" name="buttonsPortrait"/>
278        </item>
279        <item>
280         <spacer name="horizontalSpacer_3">
281          <property name="orientation">
282           <enum>Qt::Horizontal</enum>
283          </property>
284          <property name="sizeHint" stdset="0">
285           <size>
286            <width>40</width>
287            <height>20</height>
288           </size>
289          </property>
290         </spacer>
291        </item>
292       </layout>
293      </item>
294     </layout>
295    </widget>
296   </widget>
297   <widget class="QMenuBar" name="menuBar">
298    <property name="geometry">
299     <rect>
300      <x>0</x>
301      <y>0</y>
302      <width>778</width>
303      <height>25</height>
304     </rect>
305    </property>
306    <widget class="QMenu" name="menuLevel_Pack">
307     <property name="title">
308      <string>Level Pack</string>
309     </property>
310     <addaction name="actionLevel"/>
311    </widget>
312    <widget class="QMenu" name="menuHow_to_Play">
313     <property name="title">
314      <string>How to Play</string>
315     </property>
316     <addaction name="actionhowtoplay"/>
317    </widget>
318    <widget class="QMenu" name="menuAbout">
319     <property name="title">
320      <string>About</string>
321     </property>
322     <addaction name="actionAbout"/>
323    </widget>
324    <addaction name="menuLevel_Pack"/>
325    <addaction name="menuHow_to_Play"/>
326    <addaction name="menuAbout"/>
327   </widget>
328   <action name="actionLevel">
329    <property name="text">
330     <string>Level Pack</string>
331    </property>
332   </action>
333   <action name="actionhowtoplay">
334    <property name="text">
335     <string>How to play</string>
336    </property>
337   </action>
338   <action name="actionAbout">
339    <property name="text">
340     <string>About</string>
341    </property>
342   </action>
343  </widget>
344  <layoutdefault spacing="6" margin="11"/>
345  <customwidgets>
346   <customwidget>
347    <class>FieldView</class>
348    <extends>QWidget</extends>
349    <header>fieldview.h</header>
350    <container>1</container>
351    <slots>
352     <signal>solved(int)</signal>
353     <signal>updateMoves(int)</signal>
354     <slot>undo()</slot>
355    </slots>
356   </customwidget>
357  </customwidgets>
358  <resources>
359   <include location="media.qrc"/>
360  </resources>
361  <connections>
362   <connection>
363    <sender>actionLevel</sender>
364    <signal>triggered()</signal>
365    <receiver>MainWindow</receiver>
366    <slot>openPreferences()</slot>
367    <hints>
368     <hint type="sourcelabel">
369      <x>-1</x>
370      <y>-1</y>
371     </hint>
372     <hint type="destinationlabel">
373      <x>531</x>
374      <y>356</y>
375     </hint>
376    </hints>
377   </connection>
378   <connection>
379    <sender>actionhowtoplay</sender>
380    <signal>triggered()</signal>
381    <receiver>MainWindow</receiver>
382    <slot>howToPlay()</slot>
383    <hints>
384     <hint type="sourcelabel">
385      <x>-1</x>
386      <y>-1</y>
387     </hint>
388     <hint type="destinationlabel">
389      <x>637</x>
390      <y>232</y>
391     </hint>
392    </hints>
393   </connection>
394   <connection>
395    <sender>playwidget</sender>
396    <signal>updateMoves(int)</signal>
397    <receiver>MainWindow</receiver>
398    <slot>movesChanged(int)</slot>
399    <hints>
400     <hint type="sourcelabel">
401      <x>177</x>
402      <y>332</y>
403     </hint>
404     <hint type="destinationlabel">
405      <x>388</x>
406      <y>239</y>
407     </hint>
408    </hints>
409   </connection>
410   <connection>
411    <sender>playwidget</sender>
412    <signal>solved(int)</signal>
413    <receiver>MainWindow</receiver>
414    <slot>solved(int)</slot>
415    <hints>
416     <hint type="sourcelabel">
417      <x>177</x>
418      <y>332</y>
419     </hint>
420     <hint type="destinationlabel">
421      <x>388</x>
422      <y>239</y>
423     </hint>
424    </hints>
425   </connection>
426   <connection>
427    <sender>prevLevel</sender>
428    <signal>clicked()</signal>
429    <receiver>MainWindow</receiver>
430    <slot>loadPrevLevel()</slot>
431    <hints>
432     <hint type="sourcelabel">
433      <x>697</x>
434      <y>227</y>
435     </hint>
436     <hint type="destinationlabel">
437      <x>553</x>
438      <y>121</y>
439     </hint>
440    </hints>
441   </connection>
442   <connection>
443    <sender>nextLevel</sender>
444    <signal>clicked()</signal>
445    <receiver>MainWindow</receiver>
446    <slot>loadNextLevel()</slot>
447    <hints>
448     <hint type="sourcelabel">
449      <x>765</x>
450      <y>227</y>
451     </hint>
452     <hint type="destinationlabel">
453      <x>515</x>
454      <y>181</y>
455     </hint>
456    </hints>
457   </connection>
458   <connection>
459    <sender>reload</sender>
460    <signal>clicked()</signal>
461    <receiver>MainWindow</receiver>
462    <slot>loadLevel()</slot>
463    <hints>
464     <hint type="sourcelabel">
465      <x>731</x>
466      <y>227</y>
467     </hint>
468     <hint type="destinationlabel">
469      <x>584</x>
470      <y>153</y>
471     </hint>
472    </hints>
473   </connection>
474   <connection>
475    <sender>undo</sender>
476    <signal>clicked()</signal>
477    <receiver>playwidget</receiver>
478    <slot>undo()</slot>
479    <hints>
480     <hint type="sourcelabel">
481      <x>765</x>
482      <y>259</y>
483     </hint>
484     <hint type="destinationlabel">
485      <x>321</x>
486      <y>192</y>
487     </hint>
488    </hints>
489   </connection>
490   <connection>
491    <sender>actionAbout</sender>
492    <signal>triggered()</signal>
493    <receiver>MainWindow</receiver>
494    <slot>about()</slot>
495    <hints>
496     <hint type="sourcelabel">
497      <x>-1</x>
498      <y>-1</y>
499     </hint>
500     <hint type="destinationlabel">
501      <x>388</x>
502      <y>239</y>
503     </hint>
504    </hints>
505   </connection>
506  </connections>
507  <slots>
508   <slot>loadNextLevel()</slot>
509   <slot>loadPrevLevel()</slot>
510   <slot>loadLevel()</slot>
511   <slot>loadPack()</slot>
512   <slot>movesChanged(int)</slot>
513   <slot>openPreferences()</slot>
514   <slot>howToPlay()</slot>
515   <slot>reorient()</slot>
516   <slot>solved(int)</slot>
517   <slot>about()</slot>
518  </slots>
519 </ui>