all repos — mgba @ 7c0f3842a064ec6bd6722d93da9dec399f48ee54

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