1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <ui version="4.0"> |
---|
3 | <author>Lёppa: $Id: settingsdialog.ui 104 2010-04-19 20:33:02Z laleppa $</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="QWidget" name="bgGrey" native="true"> |
---|
14 | <property name="sizePolicy"> |
---|
15 | <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> |
---|
16 | <horstretch>0</horstretch> |
---|
17 | <verstretch>0</verstretch> |
---|
18 | </sizepolicy> |
---|
19 | </property> |
---|
20 | <property name="autoFillBackground"> |
---|
21 | <bool>true</bool> |
---|
22 | </property> |
---|
23 | <layout class="QVBoxLayout" name="_2"> |
---|
24 | <property name="spacing"> |
---|
25 | <number>0</number> |
---|
26 | </property> |
---|
27 | <property name="margin"> |
---|
28 | <number>0</number> |
---|
29 | </property> |
---|
30 | <item> |
---|
31 | <widget class="Line" name="lineHorizontal"> |
---|
32 | <property name="maximumSize"> |
---|
33 | <size> |
---|
34 | <width>16777215</width> |
---|
35 | <height>2</height> |
---|
36 | </size> |
---|
37 | </property> |
---|
38 | <property name="frameShadow"> |
---|
39 | <enum>QFrame::Plain</enum> |
---|
40 | </property> |
---|
41 | <property name="lineWidth"> |
---|
42 | <number>2</number> |
---|
43 | </property> |
---|
44 | <property name="orientation"> |
---|
45 | <enum>Qt::Horizontal</enum> |
---|
46 | </property> |
---|
47 | </widget> |
---|
48 | </item> |
---|
49 | <item> |
---|
50 | <layout class="QHBoxLayout" name="buttons"> |
---|
51 | <property name="spacing"> |
---|
52 | <number>6</number> |
---|
53 | </property> |
---|
54 | <property name="margin"> |
---|
55 | <number>6</number> |
---|
56 | </property> |
---|
57 | <item> |
---|
58 | <widget class="QToolButton" name="buttonHelp"> |
---|
59 | <property name="enabled"> |
---|
60 | <bool>false</bool> |
---|
61 | </property> |
---|
62 | <property name="cursor"> |
---|
63 | <cursorShape>PointingHandCursor</cursorShape> |
---|
64 | </property> |
---|
65 | <property name="toolTip"> |
---|
66 | <string>Help</string> |
---|
67 | </property> |
---|
68 | <property name="statusTip"> |
---|
69 | <string>Get preferences help</string> |
---|
70 | </property> |
---|
71 | <property name="text"> |
---|
72 | <string>Help</string> |
---|
73 | </property> |
---|
74 | <property name="icon"> |
---|
75 | <iconset resource="../resources/tspsg.qrc"> |
---|
76 | <normaloff>:/images/icons/help_hint.png</normaloff>:/images/icons/help_hint.png</iconset> |
---|
77 | </property> |
---|
78 | <property name="autoRaise"> |
---|
79 | <bool>true</bool> |
---|
80 | </property> |
---|
81 | </widget> |
---|
82 | </item> |
---|
83 | <item> |
---|
84 | <widget class="QDialogButtonBox" name="buttonBox"> |
---|
85 | <property name="standardButtons"> |
---|
86 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set> |
---|
87 | </property> |
---|
88 | </widget> |
---|
89 | </item> |
---|
90 | </layout> |
---|
91 | </item> |
---|
92 | </layout> |
---|
93 | </widget> |
---|
94 | <widget class="QWidget" name="bgWhite" native="true"> |
---|
95 | <property name="autoFillBackground"> |
---|
96 | <bool>true</bool> |
---|
97 | </property> |
---|
98 | <layout class="QHBoxLayout" name="_3"> |
---|
99 | <item> |
---|
100 | <widget class="QTabWidget" name="tabWidget"> |
---|
101 | <widget class="QWidget" name="tabGeneral"> |
---|
102 | <attribute name="title"> |
---|
103 | <string>General</string> |
---|
104 | </attribute> |
---|
105 | <attribute name="toolTip"> |
---|
106 | <string>General TSPSG settings</string> |
---|
107 | </attribute> |
---|
108 | <layout class="QVBoxLayout" name="_4"> |
---|
109 | <item> |
---|
110 | <widget class="QCheckBox" name="cbAutosize"> |
---|
111 | <property name="cursor"> |
---|
112 | <cursorShape>PointingHandCursor</cursorShape> |
---|
113 | </property> |
---|
114 | <property name="statusTip"> |
---|
115 | <string>Automatically resize rows and columns to their contents</string> |
---|
116 | </property> |
---|
117 | <property name="text"> |
---|
118 | <string>Autosize of rows and columns</string> |
---|
119 | </property> |
---|
120 | </widget> |
---|
121 | </item> |
---|
122 | <item> |
---|
123 | <widget class="QCheckBox" name="cbUseNativeDialogs"> |
---|
124 | <property name="cursor"> |
---|
125 | <cursorShape>PointingHandCursor</cursorShape> |
---|
126 | </property> |
---|
127 | <property name="statusTip"> |
---|
128 | <string>Use native File Open and File Save dialogs (uncheck to use Qt's Dialogs)</string> |
---|
129 | </property> |
---|
130 | <property name="text"> |
---|
131 | <string>Use native file dialogs</string> |
---|
132 | </property> |
---|
133 | </widget> |
---|
134 | </item> |
---|
135 | <item> |
---|
136 | <spacer name="spacer"> |
---|
137 | <property name="orientation"> |
---|
138 | <enum>Qt::Vertical</enum> |
---|
139 | </property> |
---|
140 | <property name="sizeHint" stdset="0"> |
---|
141 | <size> |
---|
142 | <width>0</width> |
---|
143 | <height>0</height> |
---|
144 | </size> |
---|
145 | </property> |
---|
146 | </spacer> |
---|
147 | </item> |
---|
148 | </layout> |
---|
149 | </widget> |
---|
150 | <widget class="QWidget" name="tabTask"> |
---|
151 | <attribute name="title"> |
---|
152 | <string>Task</string> |
---|
153 | </attribute> |
---|
154 | <attribute name="toolTip"> |
---|
155 | <string>Task generation and solving settings</string> |
---|
156 | </attribute> |
---|
157 | <layout class="QVBoxLayout" name="_9"> |
---|
158 | <item> |
---|
159 | <layout class="QFormLayout" name="_5"> |
---|
160 | <property name="fieldGrowthPolicy"> |
---|
161 | <enum>QFormLayout::ExpandingFieldsGrow</enum> |
---|
162 | </property> |
---|
163 | <item row="0" column="0"> |
---|
164 | <widget class="QLabel" name="labelFractionalAccuracy"> |
---|
165 | <property name="text"> |
---|
166 | <string>Fractional accuracy:</string> |
---|
167 | </property> |
---|
168 | </widget> |
---|
169 | </item> |
---|
170 | <item row="0" column="1"> |
---|
171 | <widget class="QSpinBox" name="spinFractionalAccuracy"> |
---|
172 | <property name="cursor"> |
---|
173 | <cursorShape>PointingHandCursor</cursorShape> |
---|
174 | </property> |
---|
175 | <property name="statusTip"> |
---|
176 | <string>Accuracy of the fractional values (in decimal places)</string> |
---|
177 | </property> |
---|
178 | <property name="maximum"> |
---|
179 | <number>6</number> |
---|
180 | </property> |
---|
181 | </widget> |
---|
182 | </item> |
---|
183 | </layout> |
---|
184 | </item> |
---|
185 | <item> |
---|
186 | <widget class="QCheckBox" name="cbSymmetricMode"> |
---|
187 | <property name="cursor"> |
---|
188 | <cursorShape>PointingHandCursor</cursorShape> |
---|
189 | </property> |
---|
190 | <property name="statusTip"> |
---|
191 | <string>In this mode the cost of travel from city 1 to city 2 and vice versa is the same</string> |
---|
192 | </property> |
---|
193 | <property name="text"> |
---|
194 | <string>Symmetric mode</string> |
---|
195 | </property> |
---|
196 | </widget> |
---|
197 | </item> |
---|
198 | <item> |
---|
199 | <widget class="QGroupBox" name="gbTaskGeneration"> |
---|
200 | <property name="title"> |
---|
201 | <string>Task generation</string> |
---|
202 | </property> |
---|
203 | <layout class="QVBoxLayout" name="_7"> |
---|
204 | <item> |
---|
205 | <layout class="QFormLayout" name="_8"> |
---|
206 | <property name="fieldGrowthPolicy"> |
---|
207 | <enum>QFormLayout::ExpandingFieldsGrow</enum> |
---|
208 | </property> |
---|
209 | <item row="0" column="0"> |
---|
210 | <widget class="QLabel" name="labelRandMin"> |
---|
211 | <property name="text"> |
---|
212 | <string>Minimal random:</string> |
---|
213 | </property> |
---|
214 | <property name="buddy"> |
---|
215 | <cstring>spinRandMin</cstring> |
---|
216 | </property> |
---|
217 | </widget> |
---|
218 | </item> |
---|
219 | <item row="0" column="1"> |
---|
220 | <widget class="QSpinBox" name="spinRandMin"> |
---|
221 | <property name="cursor"> |
---|
222 | <cursorShape>PointingHandCursor</cursorShape> |
---|
223 | </property> |
---|
224 | <property name="statusTip"> |
---|
225 | <string>Minimum for random number generation</string> |
---|
226 | </property> |
---|
227 | </widget> |
---|
228 | </item> |
---|
229 | <item row="1" column="0"> |
---|
230 | <widget class="QLabel" name="labelRandMax"> |
---|
231 | <property name="text"> |
---|
232 | <string>Maximal random:</string> |
---|
233 | </property> |
---|
234 | <property name="buddy"> |
---|
235 | <cstring>spinRandMax</cstring> |
---|
236 | </property> |
---|
237 | </widget> |
---|
238 | </item> |
---|
239 | <item row="1" column="1"> |
---|
240 | <widget class="QSpinBox" name="spinRandMax"> |
---|
241 | <property name="cursor"> |
---|
242 | <cursorShape>PointingHandCursor</cursorShape> |
---|
243 | </property> |
---|
244 | <property name="statusTip"> |
---|
245 | <string>Maximum for random number generation</string> |
---|
246 | </property> |
---|
247 | </widget> |
---|
248 | </item> |
---|
249 | </layout> |
---|
250 | </item> |
---|
251 | <item> |
---|
252 | <widget class="QCheckBox" name="cbFractionalRandom"> |
---|
253 | <property name="cursor"> |
---|
254 | <cursorShape>PointingHandCursor</cursorShape> |
---|
255 | </property> |
---|
256 | <property name="statusTip"> |
---|
257 | <string>Generate fractional random values with the Fractional accuracy</string> |
---|
258 | </property> |
---|
259 | <property name="text"> |
---|
260 | <string>Fractional random values</string> |
---|
261 | </property> |
---|
262 | </widget> |
---|
263 | </item> |
---|
264 | </layout> |
---|
265 | </widget> |
---|
266 | </item> |
---|
267 | <item> |
---|
268 | <spacer name="spacer_2"> |
---|
269 | <property name="orientation"> |
---|
270 | <enum>Qt::Vertical</enum> |
---|
271 | </property> |
---|
272 | <property name="sizeHint" stdset="0"> |
---|
273 | <size> |
---|
274 | <width>10</width> |
---|
275 | <height>0</height> |
---|
276 | </size> |
---|
277 | </property> |
---|
278 | </spacer> |
---|
279 | </item> |
---|
280 | </layout> |
---|
281 | </widget> |
---|
282 | <widget class="QWidget" name="tabOutput"> |
---|
283 | <attribute name="title"> |
---|
284 | <string>Output</string> |
---|
285 | </attribute> |
---|
286 | <attribute name="toolTip"> |
---|
287 | <string>Solution output settings</string> |
---|
288 | </attribute> |
---|
289 | <layout class="QVBoxLayout" name="_6"> |
---|
290 | <item> |
---|
291 | <widget class="QCheckBox" name="cbShowMatrix"> |
---|
292 | <property name="cursor"> |
---|
293 | <cursorShape>PointingHandCursor</cursorShape> |
---|
294 | </property> |
---|
295 | <property name="statusTip"> |
---|
296 | <string>Show solution steps' matrices for every solution step</string> |
---|
297 | </property> |
---|
298 | <property name="text"> |
---|
299 | <string>Show solution steps' matrices</string> |
---|
300 | </property> |
---|
301 | </widget> |
---|
302 | </item> |
---|
303 | <item> |
---|
304 | <layout class="QHBoxLayout" name="layoutCititesLimit"> |
---|
305 | <property name="spacing"> |
---|
306 | <number>0</number> |
---|
307 | </property> |
---|
308 | <item> |
---|
309 | <spacer name="spacer_3"> |
---|
310 | <property name="orientation"> |
---|
311 | <enum>Qt::Horizontal</enum> |
---|
312 | </property> |
---|
313 | <property name="sizeType"> |
---|
314 | <enum>QSizePolicy::Fixed</enum> |
---|
315 | </property> |
---|
316 | <property name="sizeHint" stdset="0"> |
---|
317 | <size> |
---|
318 | <width>10</width> |
---|
319 | <height>0</height> |
---|
320 | </size> |
---|
321 | </property> |
---|
322 | </spacer> |
---|
323 | </item> |
---|
324 | <item> |
---|
325 | <widget class="QCheckBox" name="cbCitiesLimit"> |
---|
326 | <property name="cursor"> |
---|
327 | <cursorShape>PointingHandCursor</cursorShape> |
---|
328 | </property> |
---|
329 | <property name="statusTip"> |
---|
330 | <string>Show or hide solution steps' matrices based on number of cities in the task</string> |
---|
331 | </property> |
---|
332 | <property name="text"> |
---|
333 | <string>Only when <=</string> |
---|
334 | </property> |
---|
335 | </widget> |
---|
336 | </item> |
---|
337 | <item> |
---|
338 | <widget class="QSpinBox" name="spinCitiesLimit"> |
---|
339 | <property name="statusTip"> |
---|
340 | <string>Maximum number of cities to show solution steps' matrices</string> |
---|
341 | </property> |
---|
342 | <property name="suffix"> |
---|
343 | <string comment="Don't forget a space at the beginning!"> cities</string> |
---|
344 | </property> |
---|
345 | <property name="minimum"> |
---|
346 | <number>1</number> |
---|
347 | </property> |
---|
348 | </widget> |
---|
349 | </item> |
---|
350 | <item> |
---|
351 | <spacer name="spacer_4"> |
---|
352 | <property name="orientation"> |
---|
353 | <enum>Qt::Horizontal</enum> |
---|
354 | </property> |
---|
355 | <property name="sizeHint" stdset="0"> |
---|
356 | <size> |
---|
357 | <width>0</width> |
---|
358 | <height>0</height> |
---|
359 | </size> |
---|
360 | </property> |
---|
361 | </spacer> |
---|
362 | </item> |
---|
363 | </layout> |
---|
364 | </item> |
---|
365 | <item> |
---|
366 | <widget class="QCheckBox" name="cbScrollToEnd"> |
---|
367 | <property name="cursor"> |
---|
368 | <cursorShape>PointingHandCursor</cursorShape> |
---|
369 | </property> |
---|
370 | <property name="statusTip"> |
---|
371 | <string>Scroll to the end of solution output after solving</string> |
---|
372 | </property> |
---|
373 | <property name="text"> |
---|
374 | <string>Scroll to solution end</string> |
---|
375 | </property> |
---|
376 | </widget> |
---|
377 | </item> |
---|
378 | <item> |
---|
379 | <layout class="QHBoxLayout" name="_11"> |
---|
380 | <item> |
---|
381 | <widget class="QGroupBox" name="groupOutput"> |
---|
382 | <property name="title"> |
---|
383 | <string>Output font settings</string> |
---|
384 | </property> |
---|
385 | <layout class="QHBoxLayout" name="_13"> |
---|
386 | <item> |
---|
387 | <widget class="QPushButton" name="buttonFont"> |
---|
388 | <property name="cursor"> |
---|
389 | <cursorShape>PointingHandCursor</cursorShape> |
---|
390 | </property> |
---|
391 | <property name="statusTip"> |
---|
392 | <string>Font face for solution output</string> |
---|
393 | </property> |
---|
394 | <property name="text"> |
---|
395 | <string>&Font...</string> |
---|
396 | </property> |
---|
397 | <property name="icon"> |
---|
398 | <iconset resource="../resources/tspsg.qrc"> |
---|
399 | <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset> |
---|
400 | </property> |
---|
401 | </widget> |
---|
402 | </item> |
---|
403 | <item> |
---|
404 | <widget class="QPushButton" name="buttonColor"> |
---|
405 | <property name="cursor"> |
---|
406 | <cursorShape>PointingHandCursor</cursorShape> |
---|
407 | </property> |
---|
408 | <property name="statusTip"> |
---|
409 | <string>Font color for solution output</string> |
---|
410 | </property> |
---|
411 | <property name="text"> |
---|
412 | <string>&Color...</string> |
---|
413 | </property> |
---|
414 | <property name="icon"> |
---|
415 | <iconset resource="../resources/tspsg.qrc"> |
---|
416 | <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset> |
---|
417 | </property> |
---|
418 | </widget> |
---|
419 | </item> |
---|
420 | <item> |
---|
421 | <spacer name="spacer_5"> |
---|
422 | <property name="orientation"> |
---|
423 | <enum>Qt::Horizontal</enum> |
---|
424 | </property> |
---|
425 | <property name="sizeHint" stdset="0"> |
---|
426 | <size> |
---|
427 | <width>0</width> |
---|
428 | <height>0</height> |
---|
429 | </size> |
---|
430 | </property> |
---|
431 | </spacer> |
---|
432 | </item> |
---|
433 | </layout> |
---|
434 | </widget> |
---|
435 | </item> |
---|
436 | </layout> |
---|
437 | </item> |
---|
438 | <item> |
---|
439 | <spacer name="spacer_6"> |
---|
440 | <property name="orientation"> |
---|
441 | <enum>Qt::Vertical</enum> |
---|
442 | </property> |
---|
443 | <property name="sizeHint" stdset="0"> |
---|
444 | <size> |
---|
445 | <width>0</width> |
---|
446 | <height>0</height> |
---|
447 | </size> |
---|
448 | </property> |
---|
449 | </spacer> |
---|
450 | </item> |
---|
451 | </layout> |
---|
452 | </widget> |
---|
453 | </widget> |
---|
454 | </item> |
---|
455 | </layout> |
---|
456 | </widget> |
---|
457 | </widget> |
---|
458 | <resources> |
---|
459 | <include location="../resources/tspsg.qrc"/> |
---|
460 | </resources> |
---|
461 | <connections> |
---|
462 | <connection> |
---|
463 | <sender>buttonBox</sender> |
---|
464 | <signal>accepted()</signal> |
---|
465 | <receiver>SettingsDialog</receiver> |
---|
466 | <slot>accept()</slot> |
---|
467 | <hints> |
---|
468 | <hint type="sourcelabel"> |
---|
469 | <x>190</x> |
---|
470 | <y>30</y> |
---|
471 | </hint> |
---|
472 | <hint type="destinationlabel"> |
---|
473 | <x>306</x> |
---|
474 | <y>231</y> |
---|
475 | </hint> |
---|
476 | </hints> |
---|
477 | </connection> |
---|
478 | <connection> |
---|
479 | <sender>buttonBox</sender> |
---|
480 | <signal>rejected()</signal> |
---|
481 | <receiver>SettingsDialog</receiver> |
---|
482 | <slot>reject()</slot> |
---|
483 | <hints> |
---|
484 | <hint type="sourcelabel"> |
---|
485 | <x>190</x> |
---|
486 | <y>30</y> |
---|
487 | </hint> |
---|
488 | <hint type="destinationlabel"> |
---|
489 | <x>262</x> |
---|
490 | <y>245</y> |
---|
491 | </hint> |
---|
492 | </hints> |
---|
493 | </connection> |
---|
494 | <connection> |
---|
495 | <sender>cbShowMatrix</sender> |
---|
496 | <signal>toggled(bool)</signal> |
---|
497 | <receiver>cbCitiesLimit</receiver> |
---|
498 | <slot>setEnabled(bool)</slot> |
---|
499 | <hints> |
---|
500 | <hint type="sourcelabel"> |
---|
501 | <x>80</x> |
---|
502 | <y>150</y> |
---|
503 | </hint> |
---|
504 | <hint type="destinationlabel"> |
---|
505 | <x>91</x> |
---|
506 | <y>175</y> |
---|
507 | </hint> |
---|
508 | </hints> |
---|
509 | </connection> |
---|
510 | <connection> |
---|
511 | <sender>cbShowMatrix</sender> |
---|
512 | <signal>toggled(bool)</signal> |
---|
513 | <receiver>cbCitiesLimit</receiver> |
---|
514 | <slot>setChecked(bool)</slot> |
---|
515 | <hints> |
---|
516 | <hint type="sourcelabel"> |
---|
517 | <x>80</x> |
---|
518 | <y>150</y> |
---|
519 | </hint> |
---|
520 | <hint type="destinationlabel"> |
---|
521 | <x>91</x> |
---|
522 | <y>175</y> |
---|
523 | </hint> |
---|
524 | </hints> |
---|
525 | </connection> |
---|
526 | <connection> |
---|
527 | <sender>cbCitiesLimit</sender> |
---|
528 | <signal>toggled(bool)</signal> |
---|
529 | <receiver>spinCitiesLimit</receiver> |
---|
530 | <slot>setEnabled(bool)</slot> |
---|
531 | <hints> |
---|
532 | <hint type="sourcelabel"> |
---|
533 | <x>91</x> |
---|
534 | <y>175</y> |
---|
535 | </hint> |
---|
536 | <hint type="destinationlabel"> |
---|
537 | <x>184</x> |
---|
538 | <y>174</y> |
---|
539 | </hint> |
---|
540 | </hints> |
---|
541 | </connection> |
---|
542 | </connections> |
---|
543 | </ui> |
---|