source: tspsg/ui/settingsdialog.ui @ 11086c2def

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

+ Added Fractional accuracy (in decimail places) to settings.
+ Created defaults.h file. Moved all default defines there.

  • Replaced all double types with qreal.
  • Replaced all calls to trUtf8() with tr() as we use setCodecForTr() to set UTF-8 encoding as default and tr() is enough.
  • Replaced all 2009 with 2010 in copyrights.
  • Fixed an error when loading .zkt file with less than 5 cities.
  • Property mode set to 100644
File size: 18.6 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="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   <layout class="QVBoxLayout" name="verticalLayout_3">
155    <item>
156     <widget class="QTabWidget" name="tabWidget">
157      <widget class="QWidget" name="tabGeneral">
158       <attribute name="title">
159        <string>General</string>
160       </attribute>
161       <attribute name="toolTip">
162        <string>General TSPSG settings</string>
163       </attribute>
164       <layout class="QVBoxLayout" name="verticalLayout_2">
165        <item>
166         <widget class="QCheckBox" name="cbAutosize">
167          <property name="cursor">
168           <cursorShape>PointingHandCursor</cursorShape>
169          </property>
170          <property name="statusTip">
171           <string>Automatically resize rows and columns to their contents</string>
172          </property>
173          <property name="text">
174           <string>Autosize of rows and columns</string>
175          </property>
176         </widget>
177        </item>
178        <item>
179         <widget class="QCheckBox" name="cbUseNativeDialogs">
180          <property name="cursor">
181           <cursorShape>PointingHandCursor</cursorShape>
182          </property>
183          <property name="statusTip">
184           <string>Use native File Open and File Save dialogs (uncheck to use Qt's Dialogs)</string>
185          </property>
186          <property name="text">
187           <string>Use native file dialogs</string>
188          </property>
189         </widget>
190        </item>
191        <item>
192         <spacer name="verticalSpacer_2">
193          <property name="orientation">
194           <enum>Qt::Vertical</enum>
195          </property>
196          <property name="sizeHint" stdset="0">
197           <size>
198            <width>0</width>
199            <height>0</height>
200           </size>
201          </property>
202         </spacer>
203        </item>
204       </layout>
205      </widget>
206      <widget class="QWidget" name="tabTask">
207       <attribute name="title">
208        <string>Task</string>
209       </attribute>
210       <attribute name="toolTip">
211        <string>Task generation and solving settings</string>
212       </attribute>
213       <layout class="QVBoxLayout" name="verticalLayout_4">
214        <item>
215         <layout class="QHBoxLayout" name="horizontalLayout_3">
216          <item>
217           <widget class="QLabel" name="labelFractionalAccuracy">
218            <property name="text">
219             <string>Fractional accuracy:</string>
220            </property>
221            <property name="buddy">
222             <cstring>spinFractionalAccuracy</cstring>
223            </property>
224           </widget>
225          </item>
226          <item>
227           <widget class="QSpinBox" name="spinFractionalAccuracy">
228            <property name="cursor">
229             <cursorShape>PointingHandCursor</cursorShape>
230            </property>
231            <property name="statusTip">
232             <string>Accuracy of the fractional values (in decimal places)</string>
233            </property>
234            <property name="maximum">
235             <number>6</number>
236            </property>
237           </widget>
238          </item>
239          <item>
240           <spacer name="horizontalSpacer_5">
241            <property name="orientation">
242             <enum>Qt::Horizontal</enum>
243            </property>
244            <property name="sizeHint" stdset="0">
245             <size>
246              <width>0</width>
247              <height>0</height>
248             </size>
249            </property>
250           </spacer>
251          </item>
252         </layout>
253        </item>
254        <item>
255         <layout class="QHBoxLayout" name="horizontalLayout_2">
256          <item>
257           <widget class="QGroupBox" name="groupBox">
258            <property name="title">
259             <string>Random numbers</string>
260            </property>
261            <layout class="QVBoxLayout" name="verticalLayout_5">
262             <item>
263              <layout class="QFormLayout" name="formLayout">
264               <property name="fieldGrowthPolicy">
265                <enum>QFormLayout::ExpandingFieldsGrow</enum>
266               </property>
267               <item row="0" column="0">
268                <widget class="QLabel" name="labelRandMin">
269                 <property name="text">
270                  <string>&amp;Minimal:</string>
271                 </property>
272                 <property name="buddy">
273                  <cstring>spinRandMin</cstring>
274                 </property>
275                </widget>
276               </item>
277               <item row="0" column="1">
278                <widget class="QSpinBox" name="spinRandMin">
279                 <property name="cursor">
280                  <cursorShape>PointingHandCursor</cursorShape>
281                 </property>
282                 <property name="statusTip">
283                  <string>Minimum for random number generation</string>
284                 </property>
285                </widget>
286               </item>
287               <item row="1" column="0">
288                <widget class="QLabel" name="labelRandMax">
289                 <property name="text">
290                  <string>Ma&amp;ximal:</string>
291                 </property>
292                 <property name="buddy">
293                  <cstring>spinRandMax</cstring>
294                 </property>
295                </widget>
296               </item>
297               <item row="1" column="1">
298                <widget class="QSpinBox" name="spinRandMax">
299                 <property name="cursor">
300                  <cursorShape>PointingHandCursor</cursorShape>
301                 </property>
302                 <property name="statusTip">
303                  <string>Maximum for random number generation</string>
304                 </property>
305                </widget>
306               </item>
307              </layout>
308             </item>
309             <item>
310              <widget class="QCheckBox" name="cbFractionalRandom">
311               <property name="cursor">
312                <cursorShape>PointingHandCursor</cursorShape>
313               </property>
314               <property name="statusTip">
315                <string>Generate fractional random values with the Fractional accuracy</string>
316               </property>
317               <property name="text">
318                <string>Fractional random values</string>
319               </property>
320              </widget>
321             </item>
322            </layout>
323           </widget>
324          </item>
325          <item>
326           <spacer name="horizontalSpacer">
327            <property name="orientation">
328             <enum>Qt::Horizontal</enum>
329            </property>
330            <property name="sizeHint" stdset="0">
331             <size>
332              <width>0</width>
333              <height>0</height>
334             </size>
335            </property>
336           </spacer>
337          </item>
338         </layout>
339        </item>
340        <item>
341         <spacer name="verticalSpacer_3">
342          <property name="orientation">
343           <enum>Qt::Vertical</enum>
344          </property>
345          <property name="sizeHint" stdset="0">
346           <size>
347            <width>0</width>
348            <height>1</height>
349           </size>
350          </property>
351         </spacer>
352        </item>
353       </layout>
354      </widget>
355      <widget class="QWidget" name="tabOutput">
356       <attribute name="title">
357        <string>Output</string>
358       </attribute>
359       <attribute name="toolTip">
360        <string>Solution output settings</string>
361       </attribute>
362       <layout class="QVBoxLayout" name="verticalLayout">
363        <item>
364         <widget class="QCheckBox" name="cbShowMatrix">
365          <property name="cursor">
366           <cursorShape>PointingHandCursor</cursorShape>
367          </property>
368          <property name="statusTip">
369           <string>Show solution steps' matrices for every solution step</string>
370          </property>
371          <property name="text">
372           <string>Show solution steps' matrices</string>
373          </property>
374         </widget>
375        </item>
376        <item>
377         <layout class="QHBoxLayout" name="layoutCititesLimit">
378          <property name="spacing">
379           <number>0</number>
380          </property>
381          <item>
382           <spacer name="horizontalSpacer_3">
383            <property name="orientation">
384             <enum>Qt::Horizontal</enum>
385            </property>
386            <property name="sizeType">
387             <enum>QSizePolicy::Fixed</enum>
388            </property>
389            <property name="sizeHint" stdset="0">
390             <size>
391              <width>10</width>
392              <height>0</height>
393             </size>
394            </property>
395           </spacer>
396          </item>
397          <item>
398           <widget class="QCheckBox" name="cbCitiesLimit">
399            <property name="cursor">
400             <cursorShape>PointingHandCursor</cursorShape>
401            </property>
402            <property name="statusTip">
403             <string>Show or hide solution steps' matrices based on number of cities in the task</string>
404            </property>
405            <property name="text">
406             <string>Only when &lt;=</string>
407            </property>
408           </widget>
409          </item>
410          <item>
411           <widget class="QSpinBox" name="spinCitiesLimit">
412            <property name="statusTip">
413             <string>Maximum number of cities to show solution steps' matrices</string>
414            </property>
415            <property name="suffix">
416             <string comment="Don't forget a space at the beginning!"> cities</string>
417            </property>
418            <property name="minimum">
419             <number>1</number>
420            </property>
421           </widget>
422          </item>
423          <item>
424           <spacer name="horizontalSpacer_4">
425            <property name="orientation">
426             <enum>Qt::Horizontal</enum>
427            </property>
428            <property name="sizeHint" stdset="0">
429             <size>
430              <width>0</width>
431              <height>0</height>
432             </size>
433            </property>
434           </spacer>
435          </item>
436         </layout>
437        </item>
438        <item>
439         <widget class="QCheckBox" name="cbScrollToEnd">
440          <property name="cursor">
441           <cursorShape>PointingHandCursor</cursorShape>
442          </property>
443          <property name="statusTip">
444           <string>Scroll to the end of solution output after solving</string>
445          </property>
446          <property name="text">
447           <string>Scroll to solution end</string>
448          </property>
449         </widget>
450        </item>
451        <item>
452         <layout class="QHBoxLayout" name="horizontalLayout_4">
453          <item>
454           <widget class="QGroupBox" name="groupBox_2">
455            <property name="title">
456             <string>Output font settings</string>
457            </property>
458            <layout class="QHBoxLayout" name="horizontalLayout">
459             <item>
460              <widget class="QPushButton" name="buttonFont">
461               <property name="cursor">
462                <cursorShape>PointingHandCursor</cursorShape>
463               </property>
464               <property name="statusTip">
465                <string>Font face for solution output</string>
466               </property>
467               <property name="text">
468                <string>&amp;Font...</string>
469               </property>
470               <property name="icon">
471                <iconset resource="../resources/tspsg.qrc">
472                 <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
473               </property>
474              </widget>
475             </item>
476             <item>
477              <widget class="QPushButton" name="buttonColor">
478               <property name="cursor">
479                <cursorShape>PointingHandCursor</cursorShape>
480               </property>
481               <property name="statusTip">
482                <string>Font color for solution output</string>
483               </property>
484               <property name="text">
485                <string>&amp;Color...</string>
486               </property>
487               <property name="icon">
488                <iconset resource="../resources/tspsg.qrc">
489                 <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
490               </property>
491              </widget>
492             </item>
493            </layout>
494           </widget>
495          </item>
496          <item>
497           <spacer name="horizontalSpacer_2">
498            <property name="orientation">
499             <enum>Qt::Horizontal</enum>
500            </property>
501            <property name="sizeHint" stdset="0">
502             <size>
503              <width>0</width>
504              <height>0</height>
505             </size>
506            </property>
507           </spacer>
508          </item>
509         </layout>
510        </item>
511        <item>
512         <spacer name="verticalSpacer">
513          <property name="orientation">
514           <enum>Qt::Vertical</enum>
515          </property>
516          <property name="sizeHint" stdset="0">
517           <size>
518            <width>0</width>
519            <height>0</height>
520           </size>
521          </property>
522         </spacer>
523        </item>
524       </layout>
525      </widget>
526     </widget>
527    </item>
528   </layout>
529  </widget>
530 </widget>
531 <resources>
532  <include location="../resources/tspsg.qrc"/>
533 </resources>
534 <connections>
535  <connection>
536   <sender>buttonBox</sender>
537   <signal>accepted()</signal>
538   <receiver>SettingsDialog</receiver>
539   <slot>accept()</slot>
540   <hints>
541    <hint type="sourcelabel">
542     <x>155</x>
543     <y>252</y>
544    </hint>
545    <hint type="destinationlabel">
546     <x>306</x>
547     <y>231</y>
548    </hint>
549   </hints>
550  </connection>
551  <connection>
552   <sender>buttonBox</sender>
553   <signal>rejected()</signal>
554   <receiver>SettingsDialog</receiver>
555   <slot>reject()</slot>
556   <hints>
557    <hint type="sourcelabel">
558     <x>155</x>
559     <y>252</y>
560    </hint>
561    <hint type="destinationlabel">
562     <x>262</x>
563     <y>245</y>
564    </hint>
565   </hints>
566  </connection>
567  <connection>
568   <sender>cbShowMatrix</sender>
569   <signal>toggled(bool)</signal>
570   <receiver>cbCitiesLimit</receiver>
571   <slot>setEnabled(bool)</slot>
572   <hints>
573    <hint type="sourcelabel">
574     <x>81</x>
575     <y>8</y>
576    </hint>
577    <hint type="destinationlabel">
578     <x>46</x>
579     <y>8</y>
580    </hint>
581   </hints>
582  </connection>
583  <connection>
584   <sender>cbShowMatrix</sender>
585   <signal>toggled(bool)</signal>
586   <receiver>cbCitiesLimit</receiver>
587   <slot>setChecked(bool)</slot>
588   <hints>
589    <hint type="sourcelabel">
590     <x>81</x>
591     <y>8</y>
592    </hint>
593    <hint type="destinationlabel">
594     <x>46</x>
595     <y>8</y>
596    </hint>
597   </hints>
598  </connection>
599  <connection>
600   <sender>cbCitiesLimit</sender>
601   <signal>toggled(bool)</signal>
602   <receiver>spinCitiesLimit</receiver>
603   <slot>setEnabled(bool)</slot>
604   <hints>
605    <hint type="sourcelabel">
606     <x>46</x>
607     <y>8</y>
608    </hint>
609    <hint type="destinationlabel">
610     <x>29</x>
611     <y>9</y>
612    </hint>
613   </hints>
614  </connection>
615 </connections>
616</ui>
Note: See TracBrowser for help on using the repository browser.