all repos — mgba @ 3a3d01aedc384e24b2de40c403669cf337587039

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