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