all repos — mgba @ 8a572ab136554d69d96c0cc968ebb2c8557c1f6f

mGBA Game Boy Advance Emulator

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

  1<?xml version="1.0" encoding="UTF-8"?>
  2<ui version="4.0">
  3 <class>TileView</class>
  4 <widget class="QWidget" name="TileView">
  5  <property name="geometry">
  6   <rect>
  7    <x>0</x>
  8    <y>0</y>
  9    <width>498</width>
 10    <height>335</height>
 11   </rect>
 12  </property>
 13  <property name="windowTitle">
 14   <string>Tiles</string>
 15  </property>
 16  <layout class="QGridLayout" name="gridLayout">
 17   <item row="1" column="0">
 18    <widget class="QCheckBox" name="palette256">
 19     <property name="text">
 20      <string>256 colors</string>
 21     </property>
 22    </widget>
 23   </item>
 24   <item row="3" column="0">
 25    <widget class="QGroupBox" name="groupBox">
 26     <property name="sizePolicy">
 27      <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
 28       <horstretch>0</horstretch>
 29       <verstretch>0</verstretch>
 30      </sizepolicy>
 31     </property>
 32     <property name="maximumSize">
 33      <size>
 34       <width>170</width>
 35       <height>192</height>
 36      </size>
 37     </property>
 38     <property name="title">
 39      <string/>
 40     </property>
 41     <layout class="QVBoxLayout" name="verticalLayout_2">
 42      <item>
 43       <widget class="QGBA::Swatch" name="preview" native="true">
 44        <property name="minimumSize">
 45         <size>
 46          <width>87</width>
 47          <height>87</height>
 48         </size>
 49        </property>
 50       </widget>
 51      </item>
 52      <item>
 53       <layout class="QHBoxLayout" name="horizontalLayout">
 54        <item>
 55         <widget class="QLabel" name="label">
 56          <property name="text">
 57           <string>Tile #</string>
 58          </property>
 59         </widget>
 60        </item>
 61        <item>
 62         <widget class="QLabel" name="tileId">
 63          <property name="text">
 64           <string>0</string>
 65          </property>
 66          <property name="alignment">
 67           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 68          </property>
 69         </widget>
 70        </item>
 71       </layout>
 72      </item>
 73      <item>
 74       <layout class="QHBoxLayout" name="horizontalLayout_2">
 75        <item>
 76         <widget class="QLabel" name="label_3">
 77          <property name="text">
 78           <string>Address</string>
 79          </property>
 80         </widget>
 81        </item>
 82        <item>
 83         <widget class="QLabel" name="address">
 84          <property name="text">
 85           <string>0x06000000</string>
 86          </property>
 87          <property name="alignment">
 88           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 89          </property>
 90         </widget>
 91        </item>
 92       </layout>
 93      </item>
 94     </layout>
 95    </widget>
 96   </item>
 97   <item row="0" column="0">
 98    <widget class="QSlider" name="paletteId">
 99     <property name="maximumSize">
100      <size>
101       <width>170</width>
102       <height>16777215</height>
103      </size>
104     </property>
105     <property name="maximum">
106      <number>15</number>
107     </property>
108     <property name="pageStep">
109      <number>1</number>
110     </property>
111     <property name="orientation">
112      <enum>Qt::Horizontal</enum>
113     </property>
114     <property name="tickPosition">
115      <enum>QSlider::TicksBelow</enum>
116     </property>
117    </widget>
118   </item>
119   <item row="4" column="0">
120    <spacer name="verticalSpacer">
121     <property name="orientation">
122      <enum>Qt::Vertical</enum>
123     </property>
124     <property name="sizeHint" stdset="0">
125      <size>
126       <width>0</width>
127       <height>0</height>
128      </size>
129     </property>
130    </spacer>
131   </item>
132   <item row="0" column="1" rowspan="5">
133    <widget class="QScrollArea" name="scrollArea">
134     <property name="sizePolicy">
135      <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
136       <horstretch>0</horstretch>
137       <verstretch>0</verstretch>
138      </sizepolicy>
139     </property>
140     <property name="widgetResizable">
141      <bool>true</bool>
142     </property>
143     <property name="alignment">
144      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
145     </property>
146     <widget class="QWidget" name="scrollAreaWidgetContents">
147      <property name="geometry">
148       <rect>
149        <x>0</x>
150        <y>0</y>
151        <width>290</width>
152        <height>768</height>
153       </rect>
154      </property>
155      <property name="sizePolicy">
156       <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
157        <horstretch>0</horstretch>
158        <verstretch>0</verstretch>
159       </sizepolicy>
160      </property>
161      <layout class="QVBoxLayout" name="verticalLayout">
162       <property name="spacing">
163        <number>0</number>
164       </property>
165       <property name="leftMargin">
166        <number>0</number>
167       </property>
168       <property name="topMargin">
169        <number>0</number>
170       </property>
171       <property name="rightMargin">
172        <number>0</number>
173       </property>
174       <property name="bottomMargin">
175        <number>0</number>
176       </property>
177       <item>
178        <widget class="QGBA::TilePainter" name="tiles" native="true">
179         <property name="sizePolicy">
180          <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
181           <horstretch>0</horstretch>
182           <verstretch>0</verstretch>
183          </sizepolicy>
184         </property>
185         <property name="minimumSize">
186          <size>
187           <width>256</width>
188           <height>768</height>
189          </size>
190         </property>
191        </widget>
192       </item>
193      </layout>
194     </widget>
195    </widget>
196   </item>
197   <item row="2" column="0">
198    <layout class="QHBoxLayout" name="horizontalLayout_4">
199     <item>
200      <widget class="QSpinBox" name="magnification">
201       <property name="sizePolicy">
202        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
203         <horstretch>0</horstretch>
204         <verstretch>0</verstretch>
205        </sizepolicy>
206       </property>
207       <property name="suffix">
208        <string>×</string>
209       </property>
210       <property name="minimum">
211        <number>1</number>
212       </property>
213       <property name="maximum">
214        <number>4</number>
215       </property>
216      </widget>
217     </item>
218     <item>
219      <widget class="QLabel" name="label_2">
220       <property name="text">
221        <string>Magnification</string>
222       </property>
223      </widget>
224     </item>
225    </layout>
226   </item>
227  </layout>
228 </widget>
229 <customwidgets>
230  <customwidget>
231   <class>QGBA::TilePainter</class>
232   <extends>QWidget</extends>
233   <header>TilePainter.h</header>
234   <container>1</container>
235   <slots>
236    <slot>setTileMagnification(int)</slot>
237   </slots>
238  </customwidget>
239  <customwidget>
240   <class>QGBA::Swatch</class>
241   <extends>QWidget</extends>
242   <header>Swatch.h</header>
243   <container>1</container>
244  </customwidget>
245 </customwidgets>
246 <resources/>
247 <connections>
248  <connection>
249   <sender>palette256</sender>
250   <signal>toggled(bool)</signal>
251   <receiver>paletteId</receiver>
252   <slot>setDisabled(bool)</slot>
253   <hints>
254    <hint type="sourcelabel">
255     <x>100</x>
256     <y>54</y>
257    </hint>
258    <hint type="destinationlabel">
259     <x>96</x>
260     <y>22</y>
261    </hint>
262   </hints>
263  </connection>
264  <connection>
265   <sender>magnification</sender>
266   <signal>valueChanged(int)</signal>
267   <receiver>tiles</receiver>
268   <slot>setTileMagnification(int)</slot>
269   <hints>
270    <hint type="sourcelabel">
271     <x>36</x>
272     <y>83</y>
273    </hint>
274    <hint type="destinationlabel">
275     <x>339</x>
276     <y>396</y>
277    </hint>
278   </hints>
279  </connection>
280 </connections>
281</ui>