1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <ui version="4.0"> |
---|
3 | <author>Lёppa: $Id$</author> |
---|
4 | <class>SettingsDialog</class> |
---|
5 | <widget class="QDialog" name="SettingsDialog"> |
---|
6 | <property name="windowTitle"> |
---|
7 | <string>Preferences</string> |
---|
8 | </property> |
---|
9 | <property name="windowIcon"> |
---|
10 | <iconset resource="../resources/tspsg.qrc"> |
---|
11 | <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset> |
---|
12 | </property> |
---|
13 | <widget class="Line" name="lineHorizontal"> |
---|
14 | <property name="maximumSize"> |
---|
15 | <size> |
---|
16 | <width>16777215</width> |
---|
17 | <height>2</height> |
---|
18 | </size> |
---|
19 | </property> |
---|
20 | <property name="frameShadow"> |
---|
21 | <enum>QFrame::Plain</enum> |
---|
22 | </property> |
---|
23 | <property name="lineWidth"> |
---|
24 | <number>2</number> |
---|
25 | </property> |
---|
26 | <property name="orientation"> |
---|
27 | <enum>Qt::Horizontal</enum> |
---|
28 | </property> |
---|
29 | </widget> |
---|
30 | <widget class="QWidget" name="bgGrey" native="true"> |
---|
31 | <property name="sizePolicy"> |
---|
32 | <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> |
---|
33 | <horstretch>0</horstretch> |
---|
34 | <verstretch>0</verstretch> |
---|
35 | </sizepolicy> |
---|
36 | </property> |
---|
37 | <property name="palette"> |
---|
38 | <palette> |
---|
39 | <active> |
---|
40 | <colorrole role="Window"> |
---|
41 | <brush brushstyle="SolidPattern"> |
---|
42 | <color alpha="255"> |
---|
43 | <red>240</red> |
---|
44 | <green>240</green> |
---|
45 | <blue>240</blue> |
---|
46 | </color> |
---|
47 | </brush> |
---|
48 | </colorrole> |
---|
49 | </active> |
---|
50 | <inactive> |
---|
51 | <colorrole role="Window"> |
---|
52 | <brush brushstyle="SolidPattern"> |
---|
53 | <color alpha="255"> |
---|
54 | <red>240</red> |
---|
55 | <green>240</green> |
---|
56 | <blue>240</blue> |
---|
57 | </color> |
---|
58 | </brush> |
---|
59 | </colorrole> |
---|
60 | </inactive> |
---|
61 | <disabled> |
---|
62 | <colorrole role="Window"> |
---|
63 | <brush brushstyle="SolidPattern"> |
---|
64 | <color alpha="255"> |
---|
65 | <red>240</red> |
---|
66 | <green>240</green> |
---|
67 | <blue>240</blue> |
---|
68 | </color> |
---|
69 | </brush> |
---|
70 | </colorrole> |
---|
71 | </disabled> |
---|
72 | </palette> |
---|
73 | </property> |
---|
74 | <property name="autoFillBackground"> |
---|
75 | <bool>true</bool> |
---|
76 | </property> |
---|
77 | <widget class="QToolButton" name="buttonHelp"> |
---|
78 | <property name="enabled"> |
---|
79 | <bool>false</bool> |
---|
80 | </property> |
---|
81 | <property name="cursor"> |
---|
82 | <cursorShape>PointingHandCursor</cursorShape> |
---|
83 | </property> |
---|
84 | <property name="toolTip"> |
---|
85 | <string>Help</string> |
---|
86 | </property> |
---|
87 | <property name="statusTip"> |
---|
88 | <string>Get preferences help</string> |
---|
89 | </property> |
---|
90 | <property name="text"> |
---|
91 | <string>Help</string> |
---|
92 | </property> |
---|
93 | <property name="icon"> |
---|
94 | <iconset resource="../resources/tspsg.qrc"> |
---|
95 | <normaloff>:/images/icons/help_hint.png</normaloff>:/images/icons/help_hint.png</iconset> |
---|
96 | </property> |
---|
97 | <property name="autoRaise"> |
---|
98 | <bool>true</bool> |
---|
99 | </property> |
---|
100 | </widget> |
---|
101 | <widget class="QDialogButtonBox" name="buttonBox"> |
---|
102 | <property name="sizePolicy"> |
---|
103 | <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> |
---|
104 | <horstretch>0</horstretch> |
---|
105 | <verstretch>0</verstretch> |
---|
106 | </sizepolicy> |
---|
107 | </property> |
---|
108 | <property name="standardButtons"> |
---|
109 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set> |
---|
110 | </property> |
---|
111 | </widget> |
---|
112 | </widget> |
---|
113 | <widget class="QWidget" name="bgWhite" native="true"> |
---|
114 | <property name="palette"> |
---|
115 | <palette> |
---|
116 | <active> |
---|
117 | <colorrole role="Window"> |
---|
118 | <brush brushstyle="SolidPattern"> |
---|
119 | <color alpha="255"> |
---|
120 | <red>255</red> |
---|
121 | <green>255</green> |
---|
122 | <blue>255</blue> |
---|
123 | </color> |
---|
124 | </brush> |
---|
125 | </colorrole> |
---|
126 | </active> |
---|
127 | <inactive> |
---|
128 | <colorrole role="Window"> |
---|
129 | <brush brushstyle="SolidPattern"> |
---|
130 | <color alpha="255"> |
---|
131 | <red>255</red> |
---|
132 | <green>255</green> |
---|
133 | <blue>255</blue> |
---|
134 | </color> |
---|
135 | </brush> |
---|
136 | </colorrole> |
---|
137 | </inactive> |
---|
138 | <disabled> |
---|
139 | <colorrole role="Window"> |
---|
140 | <brush brushstyle="SolidPattern"> |
---|
141 | <color alpha="255"> |
---|
142 | <red>255</red> |
---|
143 | <green>255</green> |
---|
144 | <blue>255</blue> |
---|
145 | </color> |
---|
146 | </brush> |
---|
147 | </colorrole> |
---|
148 | </disabled> |
---|
149 | </palette> |
---|
150 | </property> |
---|
151 | <property name="autoFillBackground"> |
---|
152 | <bool>true</bool> |
---|
153 | </property> |
---|
154 | <widget class="QGroupBox" name="groupRandomSettings"> |
---|
155 | <property name="title"> |
---|
156 | <string>Random values:</string> |
---|
157 | </property> |
---|
158 | <layout class="QVBoxLayout"> |
---|
159 | <item> |
---|
160 | <layout class="QHBoxLayout" name="_2"> |
---|
161 | <item> |
---|
162 | <widget class="QLabel" name="labelRandMin"> |
---|
163 | <property name="text"> |
---|
164 | <string>&Minimal:</string> |
---|
165 | </property> |
---|
166 | <property name="buddy"> |
---|
167 | <cstring>spinRandMin</cstring> |
---|
168 | </property> |
---|
169 | </widget> |
---|
170 | </item> |
---|
171 | <item> |
---|
172 | <widget class="QSpinBox" name="spinRandMin"> |
---|
173 | <property name="sizePolicy"> |
---|
174 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
---|
175 | <horstretch>0</horstretch> |
---|
176 | <verstretch>0</verstretch> |
---|
177 | </sizepolicy> |
---|
178 | </property> |
---|
179 | <property name="cursor"> |
---|
180 | <cursorShape>PointingHandCursor</cursorShape> |
---|
181 | </property> |
---|
182 | <property name="statusTip"> |
---|
183 | <string>Minimum for random number generation</string> |
---|
184 | </property> |
---|
185 | </widget> |
---|
186 | </item> |
---|
187 | </layout> |
---|
188 | </item> |
---|
189 | <item> |
---|
190 | <layout class="QHBoxLayout" name="_3"> |
---|
191 | <item> |
---|
192 | <widget class="QLabel" name="labelRandMax"> |
---|
193 | <property name="text"> |
---|
194 | <string>Ma&ximal:</string> |
---|
195 | </property> |
---|
196 | <property name="buddy"> |
---|
197 | <cstring>spinRandMax</cstring> |
---|
198 | </property> |
---|
199 | </widget> |
---|
200 | </item> |
---|
201 | <item> |
---|
202 | <widget class="QSpinBox" name="spinRandMax"> |
---|
203 | <property name="sizePolicy"> |
---|
204 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
---|
205 | <horstretch>0</horstretch> |
---|
206 | <verstretch>0</verstretch> |
---|
207 | </sizepolicy> |
---|
208 | </property> |
---|
209 | <property name="cursor"> |
---|
210 | <cursorShape>PointingHandCursor</cursorShape> |
---|
211 | </property> |
---|
212 | <property name="statusTip"> |
---|
213 | <string>Maximum for random number generation</string> |
---|
214 | </property> |
---|
215 | </widget> |
---|
216 | </item> |
---|
217 | </layout> |
---|
218 | </item> |
---|
219 | </layout> |
---|
220 | </widget> |
---|
221 | <widget class="QGroupBox" name="groupOutputSettings"> |
---|
222 | <property name="title"> |
---|
223 | <string>Output settings:</string> |
---|
224 | </property> |
---|
225 | <widget class="QPushButton" name="buttonFont"> |
---|
226 | <property name="cursor"> |
---|
227 | <cursorShape>PointingHandCursor</cursorShape> |
---|
228 | </property> |
---|
229 | <property name="statusTip"> |
---|
230 | <string>Font face for printing</string> |
---|
231 | </property> |
---|
232 | <property name="text"> |
---|
233 | <string>&Font...</string> |
---|
234 | </property> |
---|
235 | <property name="icon"> |
---|
236 | <iconset resource="../resources/tspsg.qrc"> |
---|
237 | <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset> |
---|
238 | </property> |
---|
239 | </widget> |
---|
240 | <widget class="QPushButton" name="buttonColor"> |
---|
241 | <property name="cursor"> |
---|
242 | <cursorShape>PointingHandCursor</cursorShape> |
---|
243 | </property> |
---|
244 | <property name="statusTip"> |
---|
245 | <string>Font color for printing</string> |
---|
246 | </property> |
---|
247 | <property name="text"> |
---|
248 | <string>&Color...</string> |
---|
249 | </property> |
---|
250 | <property name="icon"> |
---|
251 | <iconset resource="../resources/tspsg.qrc"> |
---|
252 | <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset> |
---|
253 | </property> |
---|
254 | </widget> |
---|
255 | </widget> |
---|
256 | <widget class="QCheckBox" name="cbAutosize"> |
---|
257 | <property name="cursor"> |
---|
258 | <cursorShape>PointingHandCursor</cursorShape> |
---|
259 | </property> |
---|
260 | <property name="statusTip"> |
---|
261 | <string>Automatically resize rows and columns to their contents</string> |
---|
262 | </property> |
---|
263 | <property name="text"> |
---|
264 | <string>Autosize of rows and columns</string> |
---|
265 | </property> |
---|
266 | </widget> |
---|
267 | <widget class="QCheckBox" name="cbShowMatrix"> |
---|
268 | <property name="cursor"> |
---|
269 | <cursorShape>PointingHandCursor</cursorShape> |
---|
270 | </property> |
---|
271 | <property name="statusTip"> |
---|
272 | <string>Show solution steps' matrices for every solution step</string> |
---|
273 | </property> |
---|
274 | <property name="text"> |
---|
275 | <string>Show solution steps' matrices</string> |
---|
276 | </property> |
---|
277 | </widget> |
---|
278 | <widget class="QCheckBox" name="cbCitiesLimit"> |
---|
279 | <property name="cursor"> |
---|
280 | <cursorShape>PointingHandCursor</cursorShape> |
---|
281 | </property> |
---|
282 | <property name="statusTip"> |
---|
283 | <string>Use the number of cities in task to determine whether to show solution steps' matrices</string> |
---|
284 | </property> |
---|
285 | <property name="text"> |
---|
286 | <string>Only when <=</string> |
---|
287 | </property> |
---|
288 | </widget> |
---|
289 | <widget class="QSpinBox" name="spinCitiesLimit"> |
---|
290 | <property name="statusTip"> |
---|
291 | <string>Maximum number of cities for showing solution steps' matrices</string> |
---|
292 | </property> |
---|
293 | <property name="suffix"> |
---|
294 | <string comment="Don't forget a space at the beginning!"> cities</string> |
---|
295 | </property> |
---|
296 | <property name="minimum"> |
---|
297 | <number>1</number> |
---|
298 | </property> |
---|
299 | </widget> |
---|
300 | </widget> |
---|
301 | </widget> |
---|
302 | <resources> |
---|
303 | <include location="../resources/tspsg.qrc"/> |
---|
304 | </resources> |
---|
305 | <connections> |
---|
306 | <connection> |
---|
307 | <sender>buttonBox</sender> |
---|
308 | <signal>accepted()</signal> |
---|
309 | <receiver>SettingsDialog</receiver> |
---|
310 | <slot>accept()</slot> |
---|
311 | <hints> |
---|
312 | <hint type="sourcelabel"> |
---|
313 | <x>155</x> |
---|
314 | <y>252</y> |
---|
315 | </hint> |
---|
316 | <hint type="destinationlabel"> |
---|
317 | <x>306</x> |
---|
318 | <y>231</y> |
---|
319 | </hint> |
---|
320 | </hints> |
---|
321 | </connection> |
---|
322 | <connection> |
---|
323 | <sender>buttonBox</sender> |
---|
324 | <signal>rejected()</signal> |
---|
325 | <receiver>SettingsDialog</receiver> |
---|
326 | <slot>reject()</slot> |
---|
327 | <hints> |
---|
328 | <hint type="sourcelabel"> |
---|
329 | <x>155</x> |
---|
330 | <y>252</y> |
---|
331 | </hint> |
---|
332 | <hint type="destinationlabel"> |
---|
333 | <x>262</x> |
---|
334 | <y>245</y> |
---|
335 | </hint> |
---|
336 | </hints> |
---|
337 | </connection> |
---|
338 | <connection> |
---|
339 | <sender>cbShowMatrix</sender> |
---|
340 | <signal>toggled(bool)</signal> |
---|
341 | <receiver>cbCitiesLimit</receiver> |
---|
342 | <slot>setEnabled(bool)</slot> |
---|
343 | <hints> |
---|
344 | <hint type="sourcelabel"> |
---|
345 | <x>81</x> |
---|
346 | <y>8</y> |
---|
347 | </hint> |
---|
348 | <hint type="destinationlabel"> |
---|
349 | <x>46</x> |
---|
350 | <y>8</y> |
---|
351 | </hint> |
---|
352 | </hints> |
---|
353 | </connection> |
---|
354 | <connection> |
---|
355 | <sender>cbShowMatrix</sender> |
---|
356 | <signal>toggled(bool)</signal> |
---|
357 | <receiver>cbCitiesLimit</receiver> |
---|
358 | <slot>setChecked(bool)</slot> |
---|
359 | <hints> |
---|
360 | <hint type="sourcelabel"> |
---|
361 | <x>81</x> |
---|
362 | <y>8</y> |
---|
363 | </hint> |
---|
364 | <hint type="destinationlabel"> |
---|
365 | <x>46</x> |
---|
366 | <y>8</y> |
---|
367 | </hint> |
---|
368 | </hints> |
---|
369 | </connection> |
---|
370 | <connection> |
---|
371 | <sender>cbCitiesLimit</sender> |
---|
372 | <signal>toggled(bool)</signal> |
---|
373 | <receiver>spinCitiesLimit</receiver> |
---|
374 | <slot>setEnabled(bool)</slot> |
---|
375 | <hints> |
---|
376 | <hint type="sourcelabel"> |
---|
377 | <x>46</x> |
---|
378 | <y>8</y> |
---|
379 | </hint> |
---|
380 | <hint type="destinationlabel"> |
---|
381 | <x>29</x> |
---|
382 | <y>9</y> |
---|
383 | </hint> |
---|
384 | </hints> |
---|
385 | </connection> |
---|
386 | </connections> |
---|
387 | </ui> |
---|