all repos — mgba @ 6e1483cb473b8d0d860b2b3b83436ecd47be524e

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>400</width>
 10    <height>300</height>
 11   </rect>
 12  </property>
 13  <property name="windowTitle">
 14   <string>Sprites</string>
 15  </property>
 16  <layout class="QGridLayout" name="gridLayout" columnstretch="0,1">
 17   <item row="0" column="1" rowspan="5">
 18    <widget class="QFrame" name="frame">
 19     <property name="frameShape">
 20      <enum>QFrame::StyledPanel</enum>
 21     </property>
 22     <property name="frameShadow">
 23      <enum>QFrame::Raised</enum>
 24     </property>
 25     <layout class="QGridLayout" name="gridLayout_2">
 26      <property name="leftMargin">
 27       <number>0</number>
 28      </property>
 29      <property name="topMargin">
 30       <number>0</number>
 31      </property>
 32      <property name="rightMargin">
 33       <number>0</number>
 34      </property>
 35      <property name="bottomMargin">
 36       <number>0</number>
 37      </property>
 38      <item row="0" column="0" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
 39       <widget class="QGBA::TilePainter" name="tiles" native="true">
 40        <property name="sizePolicy">
 41         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 42          <horstretch>0</horstretch>
 43          <verstretch>0</verstretch>
 44         </sizepolicy>
 45        </property>
 46        <property name="minimumSize">
 47         <size>
 48          <width>8</width>
 49          <height>8</height>
 50         </size>
 51        </property>
 52       </widget>
 53      </item>
 54     </layout>
 55    </widget>
 56   </item>
 57   <item row="3" column="0">
 58    <widget class="QGBA::AssetTile" name="tile">
 59     <property name="title">
 60      <string>Tile</string>
 61     </property>
 62    </widget>
 63   </item>
 64   <item row="1" column="0">
 65    <layout class="QHBoxLayout" name="horizontalLayout_4">
 66     <item>
 67      <widget class="QSpinBox" name="magnification">
 68       <property name="sizePolicy">
 69        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 70         <horstretch>0</horstretch>
 71         <verstretch>0</verstretch>
 72        </sizepolicy>
 73       </property>
 74       <property name="suffix">
 75        <string>×</string>
 76       </property>
 77       <property name="minimum">
 78        <number>1</number>
 79       </property>
 80       <property name="maximum">
 81        <number>4</number>
 82       </property>
 83      </widget>
 84     </item>
 85     <item>
 86      <widget class="QLabel" name="label_2">
 87       <property name="text">
 88        <string>Magnification</string>
 89       </property>
 90      </widget>
 91     </item>
 92    </layout>
 93   </item>
 94   <item row="4" column="0">
 95    <spacer name="verticalSpacer">
 96     <property name="orientation">
 97      <enum>Qt::Vertical</enum>
 98     </property>
 99     <property name="sizeHint" stdset="0">
100      <size>
101       <width>20</width>
102       <height>40</height>
103      </size>
104     </property>
105    </spacer>
106   </item>
107   <item row="0" column="0">
108    <widget class="QSpinBox" name="objId">
109     <property name="sizePolicy">
110      <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
111       <horstretch>0</horstretch>
112       <verstretch>0</verstretch>
113      </sizepolicy>
114     </property>
115     <property name="maximum">
116      <number>127</number>
117     </property>
118    </widget>
119   </item>
120   <item row="2" column="0">
121    <widget class="QGroupBox" name="groupBox">
122     <property name="title">
123      <string>Object</string>
124     </property>
125     <layout class="QVBoxLayout" name="verticalLayout">
126      <item>
127       <layout class="QHBoxLayout" name="horizontalLayout_2">
128        <item>
129         <widget class="QLabel" name="label_3">
130          <property name="text">
131           <string>Address</string>
132          </property>
133         </widget>
134        </item>
135        <item>
136         <widget class="QLabel" name="address">
137          <property name="text">
138           <string>0x07000000</string>
139          </property>
140          <property name="alignment">
141           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
142          </property>
143         </widget>
144        </item>
145       </layout>
146      </item>
147      <item>
148       <layout class="QHBoxLayout" name="horizontalLayout">
149        <item>
150         <widget class="QLabel" name="label">
151          <property name="text">
152           <string>Position</string>
153          </property>
154         </widget>
155        </item>
156        <item>
157         <spacer name="horizontalSpacer">
158          <property name="orientation">
159           <enum>Qt::Horizontal</enum>
160          </property>
161          <property name="sizeType">
162           <enum>QSizePolicy::MinimumExpanding</enum>
163          </property>
164          <property name="sizeHint" stdset="0">
165           <size>
166            <width>0</width>
167            <height>20</height>
168           </size>
169          </property>
170         </spacer>
171        </item>
172        <item>
173         <widget class="QLabel" name="x">
174          <property name="minimumSize">
175           <size>
176            <width>20</width>
177            <height>0</height>
178           </size>
179          </property>
180          <property name="text">
181           <string>0</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="tileId_3">
190          <property name="text">
191           <string>, </string>
192          </property>
193          <property name="alignment">
194           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
195          </property>
196         </widget>
197        </item>
198        <item>
199         <widget class="QLabel" name="y">
200          <property name="minimumSize">
201           <size>
202            <width>20</width>
203            <height>0</height>
204           </size>
205          </property>
206          <property name="text">
207           <string>0</string>
208          </property>
209          <property name="alignment">
210           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
211          </property>
212         </widget>
213        </item>
214       </layout>
215      </item>
216      <item>
217       <layout class="QHBoxLayout" name="horizontalLayout_3">
218        <item>
219         <widget class="QLabel" name="label_4">
220          <property name="text">
221           <string>Dimensions</string>
222          </property>
223         </widget>
224        </item>
225        <item>
226         <spacer name="horizontalSpacer_2">
227          <property name="orientation">
228           <enum>Qt::Horizontal</enum>
229          </property>
230          <property name="sizeType">
231           <enum>QSizePolicy::MinimumExpanding</enum>
232          </property>
233          <property name="sizeHint" stdset="0">
234           <size>
235            <width>0</width>
236            <height>20</height>
237           </size>
238          </property>
239         </spacer>
240        </item>
241        <item>
242         <widget class="QLabel" name="w">
243          <property name="minimumSize">
244           <size>
245            <width>20</width>
246            <height>0</height>
247           </size>
248          </property>
249          <property name="text">
250           <string>8</string>
251          </property>
252          <property name="alignment">
253           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
254          </property>
255         </widget>
256        </item>
257        <item>
258         <widget class="QLabel" name="tileId_5">
259          <property name="text">
260           <string>×</string>
261          </property>
262          <property name="alignment">
263           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
264          </property>
265         </widget>
266        </item>
267        <item>
268         <widget class="QLabel" name="h">
269          <property name="minimumSize">
270           <size>
271            <width>20</width>
272            <height>0</height>
273           </size>
274          </property>
275          <property name="text">
276           <string>8</string>
277          </property>
278          <property name="alignment">
279           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
280          </property>
281         </widget>
282        </item>
283       </layout>
284      </item>
285     </layout>
286    </widget>
287   </item>
288  </layout>
289 </widget>
290 <customwidgets>
291  <customwidget>
292   <class>QGBA::TilePainter</class>
293   <extends>QWidget</extends>
294   <header>TilePainter.h</header>
295   <container>1</container>
296   <slots>
297    <slot>setTileMagnification(int)</slot>
298   </slots>
299  </customwidget>
300  <customwidget>
301   <class>QGBA::AssetTile</class>
302   <extends>QGroupBox</extends>
303   <header>AssetTile.h</header>
304   <container>1</container>
305  </customwidget>
306 </customwidgets>
307 <resources/>
308 <connections>
309  <connection>
310   <sender>magnification</sender>
311   <signal>valueChanged(int)</signal>
312   <receiver>tiles</receiver>
313   <slot>setTileMagnification(int)</slot>
314   <hints>
315    <hint type="sourcelabel">
316     <x>36</x>
317     <y>58</y>
318    </hint>
319    <hint type="destinationlabel">
320     <x>278</x>
321     <y>149</y>
322    </hint>
323   </hints>
324  </connection>
325 </connections>
326</ui>