all repos — mgba @ a405ec42b46099ad050735ab797ca55f75dbdb64

mGBA Game Boy Advance Emulator

src/platform/qt/ObjView.ui (view raw)

  1<?xml version="1.0" encoding="UTF-8"?>
  2<ui version="4.0">
  3 <class>ObjView</class>
  4 <widget class="QWidget" name="ObjView">
  5  <property name="geometry">
  6   <rect>
  7    <x>0</x>
  8    <y>0</y>
  9    <width>800</width>
 10    <height>730</height>
 11   </rect>
 12  </property>
 13  <property name="windowTitle">
 14   <string>Sprites</string>
 15  </property>
 16  <layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0,0,0,0" columnstretch="0,0,0,1">
 17   <item row="0" column="2" rowspan="4" colspan="2">
 18    <widget class="QFrame" name="frame">
 19     <property name="frameShape">
 20      <enum>QFrame::StyledPanel</enum>
 21     </property>
 22     <layout class="QGridLayout" name="gridLayout_2">
 23      <property name="leftMargin">
 24       <number>0</number>
 25      </property>
 26      <property name="topMargin">
 27       <number>0</number>
 28      </property>
 29      <property name="rightMargin">
 30       <number>0</number>
 31      </property>
 32      <property name="bottomMargin">
 33       <number>0</number>
 34      </property>
 35      <item row="0" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
 36       <widget class="QGBA::TilePainter" name="tiles" native="true">
 37        <property name="sizePolicy">
 38         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 39          <horstretch>0</horstretch>
 40          <verstretch>0</verstretch>
 41         </sizepolicy>
 42        </property>
 43        <property name="minimumSize">
 44         <size>
 45          <width>8</width>
 46          <height>8</height>
 47         </size>
 48        </property>
 49       </widget>
 50      </item>
 51     </layout>
 52    </widget>
 53   </item>
 54   <item row="0" column="0">
 55    <layout class="QHBoxLayout" name="horizontalLayout_2">
 56     <item>
 57      <widget class="QSpinBox" name="objId">
 58       <property name="sizePolicy">
 59        <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
 60         <horstretch>0</horstretch>
 61         <verstretch>0</verstretch>
 62        </sizepolicy>
 63       </property>
 64       <property name="maximum">
 65        <number>127</number>
 66       </property>
 67      </widget>
 68     </item>
 69     <item>
 70      <widget class="QLabel" name="label_3">
 71       <property name="text">
 72        <string>Address</string>
 73       </property>
 74      </widget>
 75     </item>
 76     <item>
 77      <widget class="QLabel" name="address">
 78       <property name="text">
 79        <string>0x07000000</string>
 80       </property>
 81       <property name="alignment">
 82        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 83       </property>
 84       <property name="textInteractionFlags">
 85        <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
 86       </property>
 87      </widget>
 88     </item>
 89    </layout>
 90   </item>
 91   <item row="4" column="3">
 92    <widget class="QPushButton" name="copyButton">
 93     <property name="text">
 94      <string>Copy</string>
 95     </property>
 96    </widget>
 97   </item>
 98   <item row="1" column="0">
 99    <layout class="QHBoxLayout" name="horizontalLayout_4">
100     <item>
101      <widget class="QSpinBox" name="magnification">
102       <property name="sizePolicy">
103        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
104         <horstretch>0</horstretch>
105         <verstretch>0</verstretch>
106        </sizepolicy>
107       </property>
108       <property name="suffix">
109        <string>×</string>
110       </property>
111       <property name="minimum">
112        <number>1</number>
113       </property>
114       <property name="maximum">
115        <number>8</number>
116       </property>
117      </widget>
118     </item>
119     <item>
120      <widget class="QLabel" name="label_2">
121       <property name="text">
122        <string>Magnification</string>
123       </property>
124      </widget>
125     </item>
126    </layout>
127   </item>
128   <item row="2" column="0">
129    <widget class="QGroupBox" name="groupBox">
130     <property name="sizePolicy">
131      <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
132       <horstretch>0</horstretch>
133       <verstretch>0</verstretch>
134      </sizepolicy>
135     </property>
136     <property name="title">
137      <string>Geometry</string>
138     </property>
139     <layout class="QGridLayout" name="gridLayout_4">
140      <item row="0" column="0">
141       <layout class="QHBoxLayout" name="horizontalLayout">
142        <item>
143         <widget class="QLabel" name="label">
144          <property name="text">
145           <string>Position</string>
146          </property>
147         </widget>
148        </item>
149        <item>
150         <spacer name="horizontalSpacer">
151          <property name="orientation">
152           <enum>Qt::Horizontal</enum>
153          </property>
154          <property name="sizeHint" stdset="0">
155           <size>
156            <width>0</width>
157            <height>20</height>
158           </size>
159          </property>
160         </spacer>
161        </item>
162        <item>
163         <widget class="QLabel" name="x">
164          <property name="minimumSize">
165           <size>
166            <width>20</width>
167            <height>0</height>
168           </size>
169          </property>
170          <property name="text">
171           <string>0</string>
172          </property>
173          <property name="alignment">
174           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
175          </property>
176         </widget>
177        </item>
178        <item>
179         <widget class="QLabel" name="tileId_3">
180          <property name="text">
181           <string>, </string>
182          </property>
183          <property name="alignment">
184           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
185          </property>
186         </widget>
187        </item>
188        <item>
189         <widget class="QLabel" name="y">
190          <property name="minimumSize">
191           <size>
192            <width>20</width>
193            <height>0</height>
194           </size>
195          </property>
196          <property name="text">
197           <string>0</string>
198          </property>
199          <property name="alignment">
200           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
201          </property>
202         </widget>
203        </item>
204       </layout>
205      </item>
206      <item row="0" column="1" rowspan="2">
207       <widget class="Line" name="line_2">
208        <property name="orientation">
209         <enum>Qt::Vertical</enum>
210        </property>
211       </widget>
212      </item>
213      <item row="1" column="0">
214       <layout class="QHBoxLayout" name="horizontalLayout_3">
215        <item>
216         <widget class="QLabel" name="label_4">
217          <property name="text">
218           <string>Dimensions</string>
219          </property>
220         </widget>
221        </item>
222        <item>
223         <spacer name="horizontalSpacer_2">
224          <property name="orientation">
225           <enum>Qt::Horizontal</enum>
226          </property>
227          <property name="sizeHint" stdset="0">
228           <size>
229            <width>0</width>
230            <height>20</height>
231           </size>
232          </property>
233         </spacer>
234        </item>
235        <item>
236         <widget class="QLabel" name="w">
237          <property name="minimumSize">
238           <size>
239            <width>20</width>
240            <height>0</height>
241           </size>
242          </property>
243          <property name="text">
244           <string>8</string>
245          </property>
246          <property name="alignment">
247           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
248          </property>
249         </widget>
250        </item>
251        <item>
252         <widget class="QLabel" name="tileId_5">
253          <property name="text">
254           <string>×</string>
255          </property>
256          <property name="alignment">
257           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
258          </property>
259         </widget>
260        </item>
261        <item>
262         <widget class="QLabel" name="h">
263          <property name="minimumSize">
264           <size>
265            <width>20</width>
266            <height>0</height>
267           </size>
268          </property>
269          <property name="text">
270           <string>8</string>
271          </property>
272          <property name="alignment">
273           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
274          </property>
275         </widget>
276        </item>
277       </layout>
278      </item>
279      <item row="0" column="2" rowspan="2">
280       <layout class="QGridLayout" name="gridLayout_5">
281        <item row="0" column="3">
282         <widget class="QLabel" name="xformPC">
283          <property name="text">
284           <string>+0.00</string>
285          </property>
286         </widget>
287        </item>
288        <item row="0" column="2">
289         <widget class="QLabel" name="xformPA">
290          <property name="text">
291           <string>+1.00</string>
292          </property>
293         </widget>
294        </item>
295        <item row="0" column="0">
296         <widget class="QLabel" name="label_10">
297          <property name="text">
298           <string>Matrix</string>
299          </property>
300         </widget>
301        </item>
302        <item row="1" column="3">
303         <widget class="QLabel" name="xformPD">
304          <property name="text">
305           <string>+1.00</string>
306          </property>
307         </widget>
308        </item>
309        <item row="0" column="1">
310         <spacer name="horizontalSpacer_8">
311          <property name="orientation">
312           <enum>Qt::Horizontal</enum>
313          </property>
314          <property name="sizeHint" stdset="0">
315           <size>
316            <width>0</width>
317            <height>20</height>
318           </size>
319          </property>
320         </spacer>
321        </item>
322        <item row="1" column="2">
323         <widget class="QLabel" name="xformPB">
324          <property name="text">
325           <string>+0.00</string>
326          </property>
327         </widget>
328        </item>
329       </layout>
330      </item>
331     </layout>
332    </widget>
333   </item>
334   <item row="5" column="0" colspan="4">
335    <widget class="QListWidget" name="objList">
336     <property name="iconSize">
337      <size>
338       <width>64</width>
339       <height>64</height>
340      </size>
341     </property>
342     <property name="flow">
343      <enum>QListView::LeftToRight</enum>
344     </property>
345     <property name="resizeMode">
346      <enum>QListView::Adjust</enum>
347     </property>
348     <property name="gridSize">
349      <size>
350       <width>64</width>
351       <height>96</height>
352      </size>
353     </property>
354     <property name="viewMode">
355      <enum>QListView::IconMode</enum>
356     </property>
357     <property name="uniformItemSizes">
358      <bool>true</bool>
359     </property>
360    </widget>
361   </item>
362   <item row="4" column="2">
363    <widget class="QPushButton" name="exportButton">
364     <property name="text">
365      <string>Export</string>
366     </property>
367    </widget>
368   </item>
369   <item row="3" column="0" rowspan="2">
370    <widget class="QGroupBox" name="groupBox_2">
371     <property name="sizePolicy">
372      <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
373       <horstretch>0</horstretch>
374       <verstretch>0</verstretch>
375      </sizepolicy>
376     </property>
377     <property name="title">
378      <string>Attributes</string>
379     </property>
380     <layout class="QGridLayout" name="gridLayout_3">
381      <item row="2" column="0">
382       <layout class="QHBoxLayout" name="horizontalLayout_6">
383        <item>
384         <widget class="QLabel" name="label_6">
385          <property name="text">
386           <string>Transform</string>
387          </property>
388         </widget>
389        </item>
390        <item>
391         <spacer name="horizontalSpacer_4">
392          <property name="orientation">
393           <enum>Qt::Horizontal</enum>
394          </property>
395          <property name="sizeHint" stdset="0">
396           <size>
397            <width>0</width>
398            <height>20</height>
399           </size>
400          </property>
401         </spacer>
402        </item>
403        <item>
404         <widget class="QLabel" name="transform">
405          <property name="text">
406           <string>Off</string>
407          </property>
408         </widget>
409        </item>
410       </layout>
411      </item>
412      <item row="1" column="0">
413       <layout class="QHBoxLayout" name="horizontalLayout_16">
414        <item>
415         <widget class="QLabel" name="label_16">
416          <property name="text">
417           <string>Palette</string>
418          </property>
419         </widget>
420        </item>
421        <item>
422         <spacer name="horizontalSpacer_13">
423          <property name="orientation">
424           <enum>Qt::Horizontal</enum>
425          </property>
426          <property name="sizeHint" stdset="0">
427           <size>
428            <width>10</width>
429            <height>20</height>
430           </size>
431          </property>
432         </spacer>
433        </item>
434        <item>
435         <widget class="QLabel" name="palette">
436          <property name="text">
437           <string>0</string>
438          </property>
439          <property name="alignment">
440           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
441          </property>
442         </widget>
443        </item>
444       </layout>
445      </item>
446      <item row="2" column="2">
447       <layout class="QHBoxLayout" name="horizontalLayout_18">
448        <item>
449         <widget class="QLabel" name="label_18">
450          <property name="text">
451           <string>Double Size</string>
452          </property>
453         </widget>
454        </item>
455        <item>
456         <spacer name="horizontalSpacer_15">
457          <property name="orientation">
458           <enum>Qt::Horizontal</enum>
459          </property>
460          <property name="sizeHint" stdset="0">
461           <size>
462            <width>0</width>
463            <height>20</height>
464           </size>
465          </property>
466         </spacer>
467        </item>
468        <item>
469         <widget class="QCheckBox" name="doubleSize">
470          <property name="enabled">
471           <bool>false</bool>
472          </property>
473          <property name="text">
474           <string/>
475          </property>
476          <property name="shortcut">
477           <string>Return, Ctrl+R</string>
478          </property>
479         </widget>
480        </item>
481       </layout>
482      </item>
483      <item row="0" column="1" rowspan="4">
484       <widget class="Line" name="line">
485        <property name="orientation">
486         <enum>Qt::Vertical</enum>
487        </property>
488       </widget>
489      </item>
490      <item row="0" column="2">
491       <layout class="QHBoxLayout" name="horizontalLayout_5">
492        <item>
493         <widget class="QLabel" name="label_5">
494          <property name="text">
495           <string>Flipped</string>
496          </property>
497         </widget>
498        </item>
499        <item>
500         <spacer name="horizontalSpacer_3">
501          <property name="orientation">
502           <enum>Qt::Horizontal</enum>
503          </property>
504          <property name="sizeHint" stdset="0">
505           <size>
506            <width>0</width>
507            <height>20</height>
508           </size>
509          </property>
510         </spacer>
511        </item>
512        <item>
513         <widget class="QCheckBox" name="flippedH">
514          <property name="enabled">
515           <bool>false</bool>
516          </property>
517          <property name="text">
518           <string>H</string>
519          </property>
520          <property name="shortcut">
521           <string>Return, Ctrl+R</string>
522          </property>
523         </widget>
524        </item>
525        <item>
526         <widget class="QCheckBox" name="flippedV">
527          <property name="enabled">
528           <bool>false</bool>
529          </property>
530          <property name="text">
531           <string>V</string>
532          </property>
533          <property name="shortcut">
534           <string>Return, Ctrl+R</string>
535          </property>
536         </widget>
537        </item>
538       </layout>
539      </item>
540      <item row="3" column="0">
541       <layout class="QHBoxLayout" name="horizontalLayout_7">
542        <item>
543         <widget class="QLabel" name="label_7">
544          <property name="text">
545           <string>Mode</string>
546          </property>
547         </widget>
548        </item>
549        <item>
550         <spacer name="horizontalSpacer_5">
551          <property name="orientation">
552           <enum>Qt::Horizontal</enum>
553          </property>
554          <property name="sizeHint" stdset="0">
555           <size>
556            <width>0</width>
557            <height>20</height>
558           </size>
559          </property>
560         </spacer>
561        </item>
562        <item>
563         <widget class="QLabel" name="mode">
564          <property name="text">
565           <string>Normal</string>
566          </property>
567         </widget>
568        </item>
569       </layout>
570      </item>
571      <item row="3" column="2">
572       <layout class="QHBoxLayout" name="horizontalLayout_15">
573        <item>
574         <widget class="QLabel" name="label_15">
575          <property name="text">
576           <string>Mosaic</string>
577          </property>
578         </widget>
579        </item>
580        <item>
581         <spacer name="horizontalSpacer_12">
582          <property name="orientation">
583           <enum>Qt::Horizontal</enum>
584          </property>
585          <property name="sizeHint" stdset="0">
586           <size>
587            <width>0</width>
588            <height>20</height>
589           </size>
590          </property>
591         </spacer>
592        </item>
593        <item>
594         <widget class="QCheckBox" name="mosaic">
595          <property name="enabled">
596           <bool>false</bool>
597          </property>
598          <property name="text">
599           <string/>
600          </property>
601          <property name="shortcut">
602           <string>Return, Ctrl+R</string>
603          </property>
604         </widget>
605        </item>
606       </layout>
607      </item>
608      <item row="1" column="2">
609       <layout class="QHBoxLayout" name="horizontalLayout_14">
610        <item>
611         <widget class="QLabel" name="label_14">
612          <property name="text">
613           <string>Enabled</string>
614          </property>
615         </widget>
616        </item>
617        <item>
618         <spacer name="horizontalSpacer_11">
619          <property name="orientation">
620           <enum>Qt::Horizontal</enum>
621          </property>
622          <property name="sizeHint" stdset="0">
623           <size>
624            <width>0</width>
625            <height>20</height>
626           </size>
627          </property>
628         </spacer>
629        </item>
630        <item>
631         <widget class="QCheckBox" name="enabled">
632          <property name="enabled">
633           <bool>false</bool>
634          </property>
635          <property name="text">
636           <string/>
637          </property>
638         </widget>
639        </item>
640       </layout>
641      </item>
642      <item row="0" column="0">
643       <layout class="QHBoxLayout" name="horizontalLayout_17">
644        <item>
645         <widget class="QLabel" name="label_17">
646          <property name="text">
647           <string>Priority</string>
648          </property>
649         </widget>
650        </item>
651        <item>
652         <spacer name="horizontalSpacer_14">
653          <property name="orientation">
654           <enum>Qt::Horizontal</enum>
655          </property>
656          <property name="sizeHint" stdset="0">
657           <size>
658            <width>10</width>
659            <height>20</height>
660           </size>
661          </property>
662         </spacer>
663        </item>
664        <item>
665         <widget class="QLabel" name="priority">
666          <property name="text">
667           <string>0</string>
668          </property>
669          <property name="alignment">
670           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
671          </property>
672         </widget>
673        </item>
674       </layout>
675      </item>
676     </layout>
677    </widget>
678   </item>
679   <item row="0" column="1" rowspan="5">
680    <widget class="QGBA::AssetTile" name="tile">
681     <property name="title">
682      <string>Tile</string>
683     </property>
684    </widget>
685   </item>
686  </layout>
687 </widget>
688 <customwidgets>
689  <customwidget>
690   <class>QGBA::TilePainter</class>
691   <extends>QWidget</extends>
692   <header>TilePainter.h</header>
693   <container>1</container>
694   <slots>
695    <slot>setTileMagnification(int)</slot>
696   </slots>
697  </customwidget>
698  <customwidget>
699   <class>QGBA::AssetTile</class>
700   <extends>QGroupBox</extends>
701   <header>AssetTile.h</header>
702   <container>1</container>
703  </customwidget>
704 </customwidgets>
705 <resources/>
706 <connections>
707  <connection>
708   <sender>magnification</sender>
709   <signal>valueChanged(int)</signal>
710   <receiver>tiles</receiver>
711   <slot>setTileMagnification(int)</slot>
712   <hints>
713    <hint type="sourcelabel">
714     <x>36</x>
715     <y>58</y>
716    </hint>
717    <hint type="destinationlabel">
718     <x>278</x>
719     <y>149</y>
720    </hint>
721   </hints>
722  </connection>
723 </connections>
724</ui>