source: tspsg/ui/settingsdialog.ui @ 278bc7818f

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 278bc7818f was 278bc7818f, checked in by Oleksii Serdiuk, 14 years ago

+ Added Symmetric mode: in this mode the cost of travel from city 1 to city 2 and vice versa is the same.
+ Added the ability to reset all settings to their defaults: hold Shift while clicking Save button in Settings Dialog.

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