all repos — mgba @ 28151ee65c2e1189b6093cb5f36d4ab46f8a4ae0

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>693</width>
 10    <height>467</height>
 11   </rect>
 12  </property>
 13  <property name="windowTitle">
 14   <string>Tiles</string>
 15  </property>
 16  <layout class="QGridLayout" name="gridLayout" columnstretch="0,1">
 17   <item row="0" column="0">
 18    <layout class="QFormLayout" name="formLayout">
 19     <item row="0" column="0">
 20      <widget class="QSpinBox" name="paletteId">
 21       <property name="maximum">
 22        <number>15</number>
 23       </property>
 24      </widget>
 25     </item>
 26     <item row="0" column="1">
 27      <widget class="QCheckBox" name="palette256">
 28       <property name="text">
 29        <string>256 colors</string>
 30       </property>
 31      </widget>
 32     </item>
 33     <item row="1" column="0">
 34      <widget class="QSpinBox" name="magnification">
 35       <property name="sizePolicy">
 36        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 37         <horstretch>0</horstretch>
 38         <verstretch>0</verstretch>
 39        </sizepolicy>
 40       </property>
 41       <property name="suffix">
 42        <string>×</string>
 43       </property>
 44       <property name="minimum">
 45        <number>1</number>
 46       </property>
 47       <property name="maximum">
 48        <number>8</number>
 49       </property>
 50      </widget>
 51     </item>
 52     <item row="1" column="1">
 53      <widget class="QLabel" name="label_2">
 54       <property name="text">
 55        <string>Magnification</string>
 56       </property>
 57      </widget>
 58     </item>
 59     <item row="2" column="0">
 60      <widget class="QSpinBox" name="tilesPerRow">
 61       <property name="enabled">
 62        <bool>false</bool>
 63       </property>
 64       <property name="minimum">
 65        <number>1</number>
 66       </property>
 67       <property name="maximum">
 68        <number>64</number>
 69       </property>
 70       <property name="value">
 71        <number>32</number>
 72       </property>
 73      </widget>
 74     </item>
 75     <item row="2" column="1">
 76      <widget class="QLabel" name="label">
 77       <property name="text">
 78        <string>Tiles per row</string>
 79       </property>
 80      </widget>
 81     </item>
 82     <item row="3" column="1">
 83      <widget class="QCheckBox" name="tileFit">
 84       <property name="text">
 85        <string>Fit to window</string>
 86       </property>
 87       <property name="checked">
 88        <bool>true</bool>
 89       </property>
 90      </widget>
 91     </item>
 92    </layout>
 93   </item>
 94   <item row="3" 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>0</width>
102       <height>0</height>
103      </size>
104     </property>
105    </spacer>
106   </item>
107   <item row="1" column="0">
108    <widget class="QGBA::AssetTile" name="tile"/>
109   </item>
110   <item row="4" column="0">
111    <widget class="QPushButton" name="exportButton">
112     <property name="text">
113      <string>Export</string>
114     </property>
115    </widget>
116   </item>
117   <item row="0" column="1" rowspan="5">
118    <widget class="QScrollArea" name="scrollArea">
119     <property name="sizePolicy">
120      <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
121       <horstretch>0</horstretch>
122       <verstretch>0</verstretch>
123      </sizepolicy>
124     </property>
125     <property name="widgetResizable">
126      <bool>true</bool>
127     </property>
128     <property name="alignment">
129      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
130     </property>
131     <widget class="QWidget" name="scrollAreaWidgetContents">
132      <property name="geometry">
133       <rect>
134        <x>0</x>
135        <y>0</y>
136        <width>405</width>
137        <height>768</height>
138       </rect>
139      </property>
140      <property name="sizePolicy">
141       <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
142        <horstretch>0</horstretch>
143        <verstretch>0</verstretch>
144       </sizepolicy>
145      </property>
146      <layout class="QVBoxLayout" name="verticalLayout">
147       <property name="spacing">
148        <number>0</number>
149       </property>
150       <property name="leftMargin">
151        <number>0</number>
152       </property>
153       <property name="topMargin">
154        <number>0</number>
155       </property>
156       <property name="rightMargin">
157        <number>0</number>
158       </property>
159       <property name="bottomMargin">
160        <number>0</number>
161       </property>
162       <item>
163        <widget class="QGBA::TilePainter" name="tiles" native="true">
164         <property name="sizePolicy">
165          <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
166           <horstretch>0</horstretch>
167           <verstretch>0</verstretch>
168          </sizepolicy>
169         </property>
170         <property name="minimumSize">
171          <size>
172           <width>256</width>
173           <height>768</height>
174          </size>
175         </property>
176        </widget>
177       </item>
178      </layout>
179     </widget>
180    </widget>
181   </item>
182  </layout>
183 </widget>
184 <customwidgets>
185  <customwidget>
186   <class>QGBA::TilePainter</class>
187   <extends>QWidget</extends>
188   <header>TilePainter.h</header>
189   <container>1</container>
190   <slots>
191    <slot>setTileMagnification(int)</slot>
192   </slots>
193  </customwidget>
194  <customwidget>
195   <class>QGBA::AssetTile</class>
196   <extends>QGroupBox</extends>
197   <header>AssetTile.h</header>
198   <container>1</container>
199  </customwidget>
200 </customwidgets>
201 <resources/>
202 <connections>
203  <connection>
204   <sender>tileFit</sender>
205   <signal>toggled(bool)</signal>
206   <receiver>tilesPerRow</receiver>
207   <slot>setDisabled(bool)</slot>
208   <hints>
209    <hint type="sourcelabel">
210     <x>162</x>
211     <y>180</y>
212    </hint>
213    <hint type="destinationlabel">
214     <x>39</x>
215     <y>133</y>
216    </hint>
217   </hints>
218  </connection>
219  <connection>
220   <sender>magnification</sender>
221   <signal>valueChanged(int)</signal>
222   <receiver>tiles</receiver>
223   <slot>setTileMagnification(int)</slot>
224   <hints>
225    <hint type="sourcelabel">
226     <x>39</x>
227     <y>81</y>
228    </hint>
229    <hint type="destinationlabel">
230     <x>462</x>
231     <y>391</y>
232    </hint>
233   </hints>
234  </connection>
235  <connection>
236   <sender>palette256</sender>
237   <signal>toggled(bool)</signal>
238   <receiver>paletteId</receiver>
239   <slot>setDisabled(bool)</slot>
240   <hints>
241    <hint type="sourcelabel">
242     <x>148</x>
243     <y>24</y>
244    </hint>
245    <hint type="destinationlabel">
246     <x>39</x>
247     <y>29</y>
248    </hint>
249   </hints>
250  </connection>
251 </connections>
252</ui>