Fixed bug when block can slide over the same one
[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           <layout class="QHBoxLayout" name="solveLandscape">
246            <item>
247             <widget class="QPushButton" name="solve">
248              <property name="text">
249               <string>Solve!</string>
250              </property>
251             </widget>
252            </item>
253           </layout>
254          </item>
255          <item>
256           <spacer name="verticalSpacer_2">
257            <property name="orientation">
258             <enum>Qt::Vertical</enum>
259            </property>
260            <property name="sizeHint" stdset="0">
261             <size>
262              <width>20</width>
263              <height>40</height>
264             </size>
265            </property>
266           </spacer>
267          </item>
268         </layout>
269        </item>
270       </layout>
271      </item>
272      <item>
273       <spacer name="verticalSpacer">
274        <property name="orientation">
275         <enum>Qt::Vertical</enum>
276        </property>
277        <property name="sizeHint" stdset="0">
278         <size>
279          <width>20</width>
280          <height>40</height>
281         </size>
282        </property>
283       </spacer>
284      </item>
285      <item>
286       <layout class="QHBoxLayout" name="buttonsPortraitx">
287        <item>
288         <layout class="QHBoxLayout" name="buttonsPortrait"/>
289        </item>
290        <item>
291         <spacer name="horizontalSpacer_3">
292          <property name="orientation">
293           <enum>Qt::Horizontal</enum>
294          </property>
295          <property name="sizeHint" stdset="0">
296           <size>
297            <width>40</width>
298            <height>20</height>
299           </size>
300          </property>
301         </spacer>
302        </item>
303       </layout>
304      </item>
305     </layout>
306    </widget>
307   </widget>
308   <widget class="QMenuBar" name="menuBar">
309    <property name="geometry">
310     <rect>
311      <x>0</x>
312      <y>0</y>
313      <width>778</width>
314      <height>25</height>
315     </rect>
316    </property>
317    <widget class="QMenu" name="menuLevel_Pack">
318     <property name="title">
319      <string>Level Pack</string>
320     </property>
321     <addaction name="actionLevel"/>
322    </widget>
323    <widget class="QMenu" name="menuHow_to_Play">
324     <property name="title">
325      <string>How to Play</string>
326     </property>
327     <addaction name="actionhowtoplay"/>
328    </widget>
329    <widget class="QMenu" name="menuAbout">
330     <property name="title">
331      <string>About</string>
332     </property>
333     <addaction name="actionAbout"/>
334    </widget>
335    <addaction name="menuLevel_Pack"/>
336    <addaction name="menuHow_to_Play"/>
337    <addaction name="menuAbout"/>
338   </widget>
339   <action name="actionLevel">
340    <property name="text">
341     <string>Level Pack</string>
342    </property>
343   </action>
344   <action name="actionhowtoplay">
345    <property name="text">
346     <string>How to play</string>
347    </property>
348   </action>
349   <action name="actionAbout">
350    <property name="text">
351     <string>About</string>
352    </property>
353   </action>
354  </widget>
355  <layoutdefault spacing="6" margin="11"/>
356  <customwidgets>
357   <customwidget>
358    <class>FieldView</class>
359    <extends>QWidget</extends>
360    <header>fieldview.h</header>
361    <container>1</container>
362    <slots>
363     <signal>solved(int)</signal>
364     <signal>updateMoves(int)</signal>
365     <signal>solved()</signal>
366     <slot>undo()</slot>
367    </slots>
368   </customwidget>
369  </customwidgets>
370  <resources>
371   <include location="media.qrc"/>
372  </resources>
373  <connections>
374   <connection>
375    <sender>actionLevel</sender>
376    <signal>triggered()</signal>
377    <receiver>MainWindow</receiver>
378    <slot>openPreferences()</slot>
379    <hints>
380     <hint type="sourcelabel">
381      <x>-1</x>
382      <y>-1</y>
383     </hint>
384     <hint type="destinationlabel">
385      <x>531</x>
386      <y>356</y>
387     </hint>
388    </hints>
389   </connection>
390   <connection>
391    <sender>actionhowtoplay</sender>
392    <signal>triggered()</signal>
393    <receiver>MainWindow</receiver>
394    <slot>howToPlay()</slot>
395    <hints>
396     <hint type="sourcelabel">
397      <x>-1</x>
398      <y>-1</y>
399     </hint>
400     <hint type="destinationlabel">
401      <x>637</x>
402      <y>232</y>
403     </hint>
404    </hints>
405   </connection>
406   <connection>
407    <sender>playwidget</sender>
408    <signal>updateMoves(int)</signal>
409    <receiver>MainWindow</receiver>
410    <slot>movesChanged(int)</slot>
411    <hints>
412     <hint type="sourcelabel">
413      <x>177</x>
414      <y>332</y>
415     </hint>
416     <hint type="destinationlabel">
417      <x>388</x>
418      <y>239</y>
419     </hint>
420    </hints>
421   </connection>
422   <connection>
423    <sender>playwidget</sender>
424    <signal>solved(int)</signal>
425    <receiver>MainWindow</receiver>
426    <slot>solved(int)</slot>
427    <hints>
428     <hint type="sourcelabel">
429      <x>177</x>
430      <y>332</y>
431     </hint>
432     <hint type="destinationlabel">
433      <x>388</x>
434      <y>239</y>
435     </hint>
436    </hints>
437   </connection>
438   <connection>
439    <sender>prevLevel</sender>
440    <signal>clicked()</signal>
441    <receiver>MainWindow</receiver>
442    <slot>loadPrevLevel()</slot>
443    <hints>
444     <hint type="sourcelabel">
445      <x>697</x>
446      <y>162</y>
447     </hint>
448     <hint type="destinationlabel">
449      <x>553</x>
450      <y>121</y>
451     </hint>
452    </hints>
453   </connection>
454   <connection>
455    <sender>nextLevel</sender>
456    <signal>clicked()</signal>
457    <receiver>MainWindow</receiver>
458    <slot>loadNextLevel()</slot>
459    <hints>
460     <hint type="sourcelabel">
461      <x>765</x>
462      <y>162</y>
463     </hint>
464     <hint type="destinationlabel">
465      <x>515</x>
466      <y>181</y>
467     </hint>
468    </hints>
469   </connection>
470   <connection>
471    <sender>reload</sender>
472    <signal>clicked()</signal>
473    <receiver>MainWindow</receiver>
474    <slot>loadLevel()</slot>
475    <hints>
476     <hint type="sourcelabel">
477      <x>731</x>
478      <y>162</y>
479     </hint>
480     <hint type="destinationlabel">
481      <x>584</x>
482      <y>153</y>
483     </hint>
484    </hints>
485   </connection>
486   <connection>
487    <sender>undo</sender>
488    <signal>clicked()</signal>
489    <receiver>playwidget</receiver>
490    <slot>undo()</slot>
491    <hints>
492     <hint type="sourcelabel">
493      <x>765</x>
494      <y>194</y>
495     </hint>
496     <hint type="destinationlabel">
497      <x>321</x>
498      <y>192</y>
499     </hint>
500    </hints>
501   </connection>
502   <connection>
503    <sender>actionAbout</sender>
504    <signal>triggered()</signal>
505    <receiver>MainWindow</receiver>
506    <slot>about()</slot>
507    <hints>
508     <hint type="sourcelabel">
509      <x>-1</x>
510      <y>-1</y>
511     </hint>
512     <hint type="destinationlabel">
513      <x>388</x>
514      <y>239</y>
515     </hint>
516    </hints>
517   </connection>
518   <connection>
519    <sender>solve</sender>
520    <signal>clicked()</signal>
521    <receiver>MainWindow</receiver>
522    <slot>solve()</slot>
523    <hints>
524     <hint type="sourcelabel">
525      <x>705</x>
526      <y>310</y>
527     </hint>
528     <hint type="destinationlabel">
529      <x>610</x>
530      <y>286</y>
531     </hint>
532    </hints>
533   </connection>
534  </connections>
535  <slots>
536   <slot>loadNextLevel()</slot>
537   <slot>loadPrevLevel()</slot>
538   <slot>loadLevel()</slot>
539   <slot>loadPack()</slot>
540   <slot>movesChanged(int)</slot>
541   <slot>openPreferences()</slot>
542   <slot>howToPlay()</slot>
543   <slot>reorient()</slot>
544   <slot>solved(int)</slot>
545   <slot>about()</slot>
546   <slot>solve()</slot>
547  </slots>
548 </ui>