all repos — mgba @ 3a3d01aedc384e24b2de40c403669cf337587039

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