source: tspsg/ui/settingsdialog.ui @ b2bf8e3b6b

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

+ Added SIP show/hide handling under wince.

  • Renamed translation files to follow common conventions.
  • Language name is now stored in the translation file. No need for language.ini anymore.
  • Updated translations.
  • Property mode set to 100644
File size: 18.8 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="_5">
232        <item>
233         <layout class="QHBoxLayout" name="_10">
234          <item>
235           <widget class="QLabel" name="labelFractionalAccuracy">
236            <property name="text">
237             <string>Fractional accuracy:</string>
238            </property>
239           </widget>
240          </item>
241          <item>
242           <widget class="QSpinBox" name="spinFractionalAccuracy">
243            <property name="cursor">
244             <cursorShape>PointingHandCursor</cursorShape>
245            </property>
246            <property name="statusTip">
247             <string>Accuracy of the fractional values (in decimal places)</string>
248            </property>
249            <property name="maximum">
250             <number>6</number>
251            </property>
252           </widget>
253          </item>
254          <item>
255           <spacer name="spacer_3">
256            <property name="orientation">
257             <enum>Qt::Horizontal</enum>
258            </property>
259            <property name="sizeHint" stdset="0">
260             <size>
261              <width>0</width>
262              <height>0</height>
263             </size>
264            </property>
265           </spacer>
266          </item>
267         </layout>
268        </item>
269        <item>
270         <layout class="QHBoxLayout" name="_7">
271          <item>
272           <widget class="QGroupBox" name="groupBox">
273            <property name="title">
274             <string>Random numbers</string>
275            </property>
276            <layout class="QVBoxLayout" name="_8">
277             <item>
278              <layout class="QFormLayout" name="_9">
279               <property name="fieldGrowthPolicy">
280                <enum>QFormLayout::ExpandingFieldsGrow</enum>
281               </property>
282               <item row="0" column="0">
283                <widget class="QLabel" name="labelRandMin">
284                 <property name="text">
285                  <string>&amp;Minimal:</string>
286                 </property>
287                 <property name="buddy">
288                  <cstring>spinRandMin</cstring>
289                 </property>
290                </widget>
291               </item>
292               <item row="0" column="1">
293                <widget class="QSpinBox" name="spinRandMin">
294                 <property name="cursor">
295                  <cursorShape>PointingHandCursor</cursorShape>
296                 </property>
297                 <property name="statusTip">
298                  <string>Minimum for random number generation</string>
299                 </property>
300                </widget>
301               </item>
302               <item row="1" column="0">
303                <widget class="QLabel" name="labelRandMax">
304                 <property name="text">
305                  <string>Ma&amp;ximal:</string>
306                 </property>
307                 <property name="buddy">
308                  <cstring>spinRandMax</cstring>
309                 </property>
310                </widget>
311               </item>
312               <item row="1" column="1">
313                <widget class="QSpinBox" name="spinRandMax">
314                 <property name="cursor">
315                  <cursorShape>PointingHandCursor</cursorShape>
316                 </property>
317                 <property name="statusTip">
318                  <string>Maximum for random number generation</string>
319                 </property>
320                </widget>
321               </item>
322              </layout>
323             </item>
324             <item>
325              <widget class="QCheckBox" name="cbFractionalRandom">
326               <property name="cursor">
327                <cursorShape>PointingHandCursor</cursorShape>
328               </property>
329               <property name="statusTip">
330                <string>Generate fractional random values with the Fractional accuracy</string>
331               </property>
332               <property name="text">
333                <string>Fractional random values</string>
334               </property>
335              </widget>
336             </item>
337            </layout>
338           </widget>
339          </item>
340          <item>
341           <spacer name="spacer_2">
342            <property name="orientation">
343             <enum>Qt::Horizontal</enum>
344            </property>
345            <property name="sizeHint" stdset="0">
346             <size>
347              <width>0</width>
348              <height>0</height>
349             </size>
350            </property>
351           </spacer>
352          </item>
353         </layout>
354        </item>
355        <item>
356         <spacer name="spacer_5">
357          <property name="orientation">
358           <enum>Qt::Vertical</enum>
359          </property>
360          <property name="sizeHint" stdset="0">
361           <size>
362            <width>0</width>
363            <height>0</height>
364           </size>
365          </property>
366         </spacer>
367        </item>
368       </layout>
369      </widget>
370      <widget class="QWidget" name="tabOutput">
371       <attribute name="title">
372        <string>Output</string>
373       </attribute>
374       <attribute name="toolTip">
375        <string>Solution output settings</string>
376       </attribute>
377       <layout class="QVBoxLayout" name="_6">
378        <item>
379         <widget class="QCheckBox" name="cbShowMatrix">
380          <property name="cursor">
381           <cursorShape>PointingHandCursor</cursorShape>
382          </property>
383          <property name="statusTip">
384           <string>Show solution steps' matrices for every solution step</string>
385          </property>
386          <property name="text">
387           <string>Show solution steps' matrices</string>
388          </property>
389         </widget>
390        </item>
391        <item>
392         <layout class="QHBoxLayout" name="layoutCititesLimit">
393          <property name="spacing">
394           <number>0</number>
395          </property>
396          <item>
397           <spacer name="spacer_4">
398            <property name="orientation">
399             <enum>Qt::Horizontal</enum>
400            </property>
401            <property name="sizeType">
402             <enum>QSizePolicy::Fixed</enum>
403            </property>
404            <property name="sizeHint" stdset="0">
405             <size>
406              <width>10</width>
407              <height>0</height>
408             </size>
409            </property>
410           </spacer>
411          </item>
412          <item>
413           <widget class="QCheckBox" name="cbCitiesLimit">
414            <property name="cursor">
415             <cursorShape>PointingHandCursor</cursorShape>
416            </property>
417            <property name="statusTip">
418             <string>Show or hide solution steps' matrices based on number of cities in the task</string>
419            </property>
420            <property name="text">
421             <string>Only when &lt;=</string>
422            </property>
423           </widget>
424          </item>
425          <item>
426           <widget class="QSpinBox" name="spinCitiesLimit">
427            <property name="statusTip">
428             <string>Maximum number of cities to show solution steps' matrices</string>
429            </property>
430            <property name="suffix">
431             <string comment="Don't forget a space at the beginning!"> cities</string>
432            </property>
433            <property name="minimum">
434             <number>1</number>
435            </property>
436           </widget>
437          </item>
438          <item>
439           <spacer name="spacer_6">
440            <property name="orientation">
441             <enum>Qt::Horizontal</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        </item>
453        <item>
454         <widget class="QCheckBox" name="cbScrollToEnd">
455          <property name="cursor">
456           <cursorShape>PointingHandCursor</cursorShape>
457          </property>
458          <property name="statusTip">
459           <string>Scroll to the end of solution output after solving</string>
460          </property>
461          <property name="text">
462           <string>Scroll to solution end</string>
463          </property>
464         </widget>
465        </item>
466        <item>
467         <layout class="QHBoxLayout" name="_11">
468          <item>
469           <widget class="QGroupBox" name="groupOutput">
470            <property name="title">
471             <string>Output font settings</string>
472            </property>
473            <layout class="QHBoxLayout" name="horizontalLayout">
474             <item>
475              <widget class="QPushButton" name="buttonFont">
476               <property name="cursor">
477                <cursorShape>PointingHandCursor</cursorShape>
478               </property>
479               <property name="statusTip">
480                <string>Font face for solution output</string>
481               </property>
482               <property name="text">
483                <string>&amp;Font...</string>
484               </property>
485               <property name="icon">
486                <iconset resource="../resources/tspsg.qrc">
487                 <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
488               </property>
489              </widget>
490             </item>
491             <item>
492              <widget class="QPushButton" name="buttonColor">
493               <property name="cursor">
494                <cursorShape>PointingHandCursor</cursorShape>
495               </property>
496               <property name="statusTip">
497                <string>Font color for solution output</string>
498               </property>
499               <property name="text">
500                <string>&amp;Color...</string>
501               </property>
502               <property name="icon">
503                <iconset resource="../resources/tspsg.qrc">
504                 <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
505               </property>
506              </widget>
507             </item>
508            </layout>
509           </widget>
510          </item>
511          <item>
512           <spacer name="spacer_7">
513            <property name="orientation">
514             <enum>Qt::Horizontal</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        </item>
526        <item>
527         <spacer name="verticalSpacer">
528          <property name="orientation">
529           <enum>Qt::Vertical</enum>
530          </property>
531          <property name="sizeHint" stdset="0">
532           <size>
533            <width>0</width>
534            <height>0</height>
535           </size>
536          </property>
537         </spacer>
538        </item>
539       </layout>
540      </widget>
541     </widget>
542    </item>
543   </layout>
544  </widget>
545 </widget>
546 <resources>
547  <include location="../resources/tspsg.qrc"/>
548 </resources>
549 <connections>
550  <connection>
551   <sender>buttonBox</sender>
552   <signal>accepted()</signal>
553   <receiver>SettingsDialog</receiver>
554   <slot>accept()</slot>
555   <hints>
556    <hint type="sourcelabel">
557     <x>190</x>
558     <y>30</y>
559    </hint>
560    <hint type="destinationlabel">
561     <x>306</x>
562     <y>231</y>
563    </hint>
564   </hints>
565  </connection>
566  <connection>
567   <sender>buttonBox</sender>
568   <signal>rejected()</signal>
569   <receiver>SettingsDialog</receiver>
570   <slot>reject()</slot>
571   <hints>
572    <hint type="sourcelabel">
573     <x>190</x>
574     <y>30</y>
575    </hint>
576    <hint type="destinationlabel">
577     <x>262</x>
578     <y>245</y>
579    </hint>
580   </hints>
581  </connection>
582  <connection>
583   <sender>cbShowMatrix</sender>
584   <signal>toggled(bool)</signal>
585   <receiver>cbCitiesLimit</receiver>
586   <slot>setEnabled(bool)</slot>
587   <hints>
588    <hint type="sourcelabel">
589     <x>80</x>
590     <y>150</y>
591    </hint>
592    <hint type="destinationlabel">
593     <x>91</x>
594     <y>175</y>
595    </hint>
596   </hints>
597  </connection>
598  <connection>
599   <sender>cbShowMatrix</sender>
600   <signal>toggled(bool)</signal>
601   <receiver>cbCitiesLimit</receiver>
602   <slot>setChecked(bool)</slot>
603   <hints>
604    <hint type="sourcelabel">
605     <x>80</x>
606     <y>150</y>
607    </hint>
608    <hint type="destinationlabel">
609     <x>91</x>
610     <y>175</y>
611    </hint>
612   </hints>
613  </connection>
614  <connection>
615   <sender>cbCitiesLimit</sender>
616   <signal>toggled(bool)</signal>
617   <receiver>spinCitiesLimit</receiver>
618   <slot>setEnabled(bool)</slot>
619   <hints>
620    <hint type="sourcelabel">
621     <x>91</x>
622     <y>175</y>
623    </hint>
624    <hint type="destinationlabel">
625     <x>184</x>
626     <y>174</y>
627    </hint>
628   </hints>
629  </connection>
630 </connections>
631</ui>
Note: See TracBrowser for help on using the repository browser.