all repos — mgba @ 67905d281bfecbb06f51f2ca5ac939df378734a5

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="2" 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="3" 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="4">
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>271</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  </layout>
189 </widget>
190 <customwidgets>
191  <customwidget>
192   <class>QGBA::TilePainter</class>
193   <extends>QWidget</extends>
194   <header>TilePainter.h</header>
195   <container>1</container>
196  </customwidget>
197  <customwidget>
198   <class>QGBA::Swatch</class>
199   <extends>QWidget</extends>
200   <header>Swatch.h</header>
201   <container>1</container>
202  </customwidget>
203 </customwidgets>
204 <resources/>
205 <connections>
206  <connection>
207   <sender>palette256</sender>
208   <signal>toggled(bool)</signal>
209   <receiver>paletteId</receiver>
210   <slot>setDisabled(bool)</slot>
211   <hints>
212    <hint type="sourcelabel">
213     <x>100</x>
214     <y>54</y>
215    </hint>
216    <hint type="destinationlabel">
217     <x>96</x>
218     <y>22</y>
219    </hint>
220   </hints>
221  </connection>
222 </connections>
223</ui>