all repos — mgba @ 02419521335e8f58add9446f2a8fa6016d4f79bc

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     <widget class="QWidget" name="scrollAreaWidgetContents">
144      <property name="geometry">
145       <rect>
146        <x>0</x>
147        <y>0</y>
148        <width>290</width>
149        <height>768</height>
150       </rect>
151      </property>
152      <layout class="QVBoxLayout" name="verticalLayout">
153       <property name="spacing">
154        <number>0</number>
155       </property>
156       <property name="leftMargin">
157        <number>0</number>
158       </property>
159       <property name="topMargin">
160        <number>0</number>
161       </property>
162       <property name="rightMargin">
163        <number>0</number>
164       </property>
165       <property name="bottomMargin">
166        <number>0</number>
167       </property>
168       <item>
169        <widget class="QGBA::TilePainter" name="tiles" native="true">
170         <property name="sizePolicy">
171          <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
172           <horstretch>0</horstretch>
173           <verstretch>0</verstretch>
174          </sizepolicy>
175         </property>
176         <property name="minimumSize">
177          <size>
178           <width>256</width>
179           <height>768</height>
180          </size>
181         </property>
182        </widget>
183       </item>
184      </layout>
185     </widget>
186    </widget>
187   </item>
188   <item row="2" column="0">
189    <layout class="QHBoxLayout" name="horizontalLayout_4">
190     <item>
191      <widget class="QSpinBox" name="magnification">
192       <property name="sizePolicy">
193        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
194         <horstretch>0</horstretch>
195         <verstretch>0</verstretch>
196        </sizepolicy>
197       </property>
198       <property name="suffix">
199        <string>×</string>
200       </property>
201       <property name="minimum">
202        <number>1</number>
203       </property>
204       <property name="maximum">
205        <number>4</number>
206       </property>
207      </widget>
208     </item>
209     <item>
210      <widget class="QLabel" name="label_2">
211       <property name="text">
212        <string>Magnification</string>
213       </property>
214      </widget>
215     </item>
216    </layout>
217   </item>
218  </layout>
219 </widget>
220 <customwidgets>
221  <customwidget>
222   <class>QGBA::TilePainter</class>
223   <extends>QWidget</extends>
224   <header>TilePainter.h</header>
225   <container>1</container>
226   <slots>
227    <slot>setTileMagnification(int)</slot>
228   </slots>
229  </customwidget>
230  <customwidget>
231   <class>QGBA::Swatch</class>
232   <extends>QWidget</extends>
233   <header>Swatch.h</header>
234   <container>1</container>
235  </customwidget>
236 </customwidgets>
237 <resources/>
238 <connections>
239  <connection>
240   <sender>palette256</sender>
241   <signal>toggled(bool)</signal>
242   <receiver>paletteId</receiver>
243   <slot>setDisabled(bool)</slot>
244   <hints>
245    <hint type="sourcelabel">
246     <x>100</x>
247     <y>54</y>
248    </hint>
249    <hint type="destinationlabel">
250     <x>96</x>
251     <y>22</y>
252    </hint>
253   </hints>
254  </connection>
255  <connection>
256   <sender>magnification</sender>
257   <signal>valueChanged(int)</signal>
258   <receiver>tiles</receiver>
259   <slot>setTileMagnification(int)</slot>
260   <hints>
261    <hint type="sourcelabel">
262     <x>36</x>
263     <y>83</y>
264    </hint>
265    <hint type="destinationlabel">
266     <x>339</x>
267     <y>396</y>
268    </hint>
269   </hints>
270  </connection>
271 </connections>
272</ui>