all repos — mgba @ ed6d55bc4626ef9c3e1543fa873b1af7ff83aef9

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