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