source: tspsg/ui/settingsdialog.ui @ 94cd045fad

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

+ Started adding a toolbar customization with the ude of QtToolbarDialog? (http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qttoolbardialog/).

  • Property mode set to 100644
File size: 20.0 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="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            <property name="buddy">
169             <cstring>spinFractionalAccuracy</cstring>
170            </property>
171           </widget>
172          </item>
173          <item row="0" column="1">
174           <widget class="QSpinBox" name="spinFractionalAccuracy">
175            <property name="cursor">
176             <cursorShape>PointingHandCursor</cursorShape>
177            </property>
178            <property name="statusTip">
179             <string>Accuracy of the fractional values (in decimal places)</string>
180            </property>
181            <property name="maximum">
182             <number>6</number>
183            </property>
184           </widget>
185          </item>
186         </layout>
187        </item>
188        <item>
189         <widget class="QCheckBox" name="cbSymmetricMode">
190          <property name="cursor">
191           <cursorShape>PointingHandCursor</cursorShape>
192          </property>
193          <property name="statusTip">
194           <string>In this mode the cost of travel from city 1 to city 2 and vice versa is the same</string>
195          </property>
196          <property name="text">
197           <string>Symmetric mode</string>
198          </property>
199         </widget>
200        </item>
201        <item>
202         <widget class="QGroupBox" name="gbTaskGeneration">
203          <property name="title">
204           <string>Task generation</string>
205          </property>
206          <layout class="QVBoxLayout" name="_7">
207           <item>
208            <layout class="QFormLayout" name="_8">
209             <property name="fieldGrowthPolicy">
210              <enum>QFormLayout::ExpandingFieldsGrow</enum>
211             </property>
212             <item row="0" column="0">
213              <widget class="QLabel" name="labelRandMin">
214               <property name="text">
215                <string>Minimal random:</string>
216               </property>
217               <property name="buddy">
218                <cstring>spinRandMin</cstring>
219               </property>
220              </widget>
221             </item>
222             <item row="0" column="1">
223              <widget class="QSpinBox" name="spinRandMin">
224               <property name="cursor">
225                <cursorShape>PointingHandCursor</cursorShape>
226               </property>
227               <property name="statusTip">
228                <string>Minimum for random number generation</string>
229               </property>
230              </widget>
231             </item>
232             <item row="1" column="0">
233              <widget class="QLabel" name="labelRandMax">
234               <property name="text">
235                <string>Maximal random:</string>
236               </property>
237               <property name="buddy">
238                <cstring>spinRandMax</cstring>
239               </property>
240              </widget>
241             </item>
242             <item row="1" column="1">
243              <widget class="QSpinBox" name="spinRandMax">
244               <property name="cursor">
245                <cursorShape>PointingHandCursor</cursorShape>
246               </property>
247               <property name="statusTip">
248                <string>Maximum for random number generation</string>
249               </property>
250              </widget>
251             </item>
252            </layout>
253           </item>
254           <item>
255            <widget class="QCheckBox" name="cbFractionalRandom">
256             <property name="cursor">
257              <cursorShape>PointingHandCursor</cursorShape>
258             </property>
259             <property name="statusTip">
260              <string>Generate fractional random values with the Fractional accuracy</string>
261             </property>
262             <property name="text">
263              <string>Fractional random values</string>
264             </property>
265            </widget>
266           </item>
267          </layout>
268         </widget>
269        </item>
270        <item>
271         <spacer name="spacer_2">
272          <property name="orientation">
273           <enum>Qt::Vertical</enum>
274          </property>
275          <property name="sizeHint" stdset="0">
276           <size>
277            <width>10</width>
278            <height>0</height>
279           </size>
280          </property>
281         </spacer>
282        </item>
283       </layout>
284      </widget>
285      <widget class="QWidget" name="tabOutput">
286       <attribute name="title">
287        <string>Output</string>
288       </attribute>
289       <attribute name="toolTip">
290        <string>Solution output settings</string>
291       </attribute>
292       <layout class="QVBoxLayout" name="_6">
293        <item>
294         <widget class="QCheckBox" name="cbShowGraph">
295          <property name="cursor">
296           <cursorShape>PointingHandCursor</cursorShape>
297          </property>
298          <property name="statusTip">
299           <string>Show graphical representation of the solution</string>
300          </property>
301          <property name="text">
302           <string>Show solution graph</string>
303          </property>
304         </widget>
305        </item>
306        <item>
307         <layout class="QHBoxLayout" name="_10">
308          <property name="spacing">
309           <number>5</number>
310          </property>
311          <item>
312           <spacer name="spacer_7">
313            <property name="orientation">
314             <enum>Qt::Horizontal</enum>
315            </property>
316            <property name="sizeType">
317             <enum>QSizePolicy::Fixed</enum>
318            </property>
319            <property name="sizeHint" stdset="0">
320             <size>
321              <width>10</width>
322              <height>0</height>
323             </size>
324            </property>
325           </spacer>
326          </item>
327          <item>
328           <widget class="QLabel" name="labelGraphImageFormat">
329            <property name="text">
330             <string>Save solution graph as</string>
331            </property>
332            <property name="buddy">
333             <cstring>comboGraphImageFormat</cstring>
334            </property>
335           </widget>
336          </item>
337          <item>
338           <widget class="QComboBox" name="comboGraphImageFormat">
339            <property name="cursor">
340             <cursorShape>PointingHandCursor</cursorShape>
341            </property>
342            <property name="statusTip">
343             <string>What image format to use for graph when saving solution as HTML</string>
344            </property>
345           </widget>
346          </item>
347          <item>
348           <spacer name="horizontalSpacer">
349            <property name="orientation">
350             <enum>Qt::Horizontal</enum>
351            </property>
352            <property name="sizeHint" stdset="0">
353             <size>
354              <width>0</width>
355              <height>0</height>
356             </size>
357            </property>
358           </spacer>
359          </item>
360         </layout>
361        </item>
362        <item>
363         <widget class="QCheckBox" name="cbShowMatrix">
364          <property name="cursor">
365           <cursorShape>PointingHandCursor</cursorShape>
366          </property>
367          <property name="statusTip">
368           <string>Show solution steps' matrices for every solution step</string>
369          </property>
370          <property name="text">
371           <string>Show solution steps' matrices</string>
372          </property>
373         </widget>
374        </item>
375        <item>
376         <layout class="QHBoxLayout" name="_12">
377          <property name="spacing">
378           <number>0</number>
379          </property>
380          <item>
381           <spacer name="spacer_3">
382            <property name="orientation">
383             <enum>Qt::Horizontal</enum>
384            </property>
385            <property name="sizeType">
386             <enum>QSizePolicy::Fixed</enum>
387            </property>
388            <property name="sizeHint" stdset="0">
389             <size>
390              <width>10</width>
391              <height>0</height>
392             </size>
393            </property>
394           </spacer>
395          </item>
396          <item>
397           <widget class="QCheckBox" name="cbCitiesLimit">
398            <property name="cursor">
399             <cursorShape>PointingHandCursor</cursorShape>
400            </property>
401            <property name="statusTip">
402             <string>Show or hide solution steps' matrices based on number of cities in the task</string>
403            </property>
404            <property name="text">
405             <string>Only when &lt;=</string>
406            </property>
407           </widget>
408          </item>
409          <item>
410           <widget class="QSpinBox" name="spinCitiesLimit">
411            <property name="cursor">
412             <cursorShape>PointingHandCursor</cursorShape>
413            </property>
414            <property name="statusTip">
415             <string>Maximum number of cities to show solution steps' matrices</string>
416            </property>
417            <property name="suffix">
418             <string comment="Don't forget a space at the beginning!"> cities</string>
419            </property>
420            <property name="minimum">
421             <number>1</number>
422            </property>
423           </widget>
424          </item>
425          <item>
426           <spacer name="spacer_4">
427            <property name="orientation">
428             <enum>Qt::Horizontal</enum>
429            </property>
430            <property name="sizeHint" stdset="0">
431             <size>
432              <width>0</width>
433              <height>0</height>
434             </size>
435            </property>
436           </spacer>
437          </item>
438         </layout>
439        </item>
440        <item>
441         <widget class="QCheckBox" name="cbScrollToEnd">
442          <property name="cursor">
443           <cursorShape>PointingHandCursor</cursorShape>
444          </property>
445          <property name="statusTip">
446           <string>Scroll to the end of solution output after solving</string>
447          </property>
448          <property name="text">
449           <string>Scroll to solution end</string>
450          </property>
451         </widget>
452        </item>
453        <item>
454         <layout class="QHBoxLayout" name="_11">
455          <item>
456           <widget class="QGroupBox" name="groupOutput">
457            <property name="title">
458             <string>Output font settings</string>
459            </property>
460            <layout class="QHBoxLayout" name="_13">
461             <item>
462              <widget class="QPushButton" name="buttonFont">
463               <property name="cursor">
464                <cursorShape>PointingHandCursor</cursorShape>
465               </property>
466               <property name="statusTip">
467                <string>Font face for solution output</string>
468               </property>
469               <property name="text">
470                <string>&amp;Font...</string>
471               </property>
472               <property name="icon">
473                <iconset resource="../resources/tspsg.qrc">
474                 <normaloff>:/images/icons/preferences-desktop-font.png</normaloff>:/images/icons/preferences-desktop-font.png</iconset>
475               </property>
476              </widget>
477             </item>
478             <item>
479              <widget class="QPushButton" name="buttonColor">
480               <property name="cursor">
481                <cursorShape>PointingHandCursor</cursorShape>
482               </property>
483               <property name="statusTip">
484                <string>Font color for solution output</string>
485               </property>
486               <property name="text">
487                <string>&amp;Color...</string>
488               </property>
489               <property name="icon">
490                <iconset resource="../resources/tspsg.qrc">
491                 <normaloff>:/images/icons/format-text-color.png</normaloff>:/images/icons/format-text-color.png</iconset>
492               </property>
493              </widget>
494             </item>
495             <item>
496              <spacer name="spacer_5">
497               <property name="orientation">
498                <enum>Qt::Horizontal</enum>
499               </property>
500               <property name="sizeHint" stdset="0">
501                <size>
502                 <width>0</width>
503                 <height>0</height>
504                </size>
505               </property>
506              </spacer>
507             </item>
508            </layout>
509           </widget>
510          </item>
511         </layout>
512        </item>
513        <item>
514         <spacer name="spacer_6">
515          <property name="orientation">
516           <enum>Qt::Vertical</enum>
517          </property>
518          <property name="sizeHint" stdset="0">
519           <size>
520            <width>0</width>
521            <height>0</height>
522           </size>
523          </property>
524         </spacer>
525        </item>
526       </layout>
527      </widget>
528     </widget>
529    </item>
530   </layout>
531  </widget>
532 </widget>
533 <resources>
534  <include location="../resources/tspsg.qrc"/>
535 </resources>
536 <connections>
537  <connection>
538   <sender>buttonBox</sender>
539   <signal>accepted()</signal>
540   <receiver>SettingsDialog</receiver>
541   <slot>accept()</slot>
542   <hints>
543    <hint type="sourcelabel">
544     <x>190</x>
545     <y>30</y>
546    </hint>
547    <hint type="destinationlabel">
548     <x>306</x>
549     <y>231</y>
550    </hint>
551   </hints>
552  </connection>
553  <connection>
554   <sender>buttonBox</sender>
555   <signal>rejected()</signal>
556   <receiver>SettingsDialog</receiver>
557   <slot>reject()</slot>
558   <hints>
559    <hint type="sourcelabel">
560     <x>190</x>
561     <y>30</y>
562    </hint>
563    <hint type="destinationlabel">
564     <x>262</x>
565     <y>245</y>
566    </hint>
567   </hints>
568  </connection>
569  <connection>
570   <sender>cbShowMatrix</sender>
571   <signal>toggled(bool)</signal>
572   <receiver>cbCitiesLimit</receiver>
573   <slot>setEnabled(bool)</slot>
574   <hints>
575    <hint type="sourcelabel">
576     <x>91</x>
577     <y>107</y>
578    </hint>
579    <hint type="destinationlabel">
580     <x>113</x>
581     <y>132</y>
582    </hint>
583   </hints>
584  </connection>
585  <connection>
586   <sender>cbShowMatrix</sender>
587   <signal>toggled(bool)</signal>
588   <receiver>cbCitiesLimit</receiver>
589   <slot>setChecked(bool)</slot>
590   <hints>
591    <hint type="sourcelabel">
592     <x>91</x>
593     <y>107</y>
594    </hint>
595    <hint type="destinationlabel">
596     <x>113</x>
597     <y>132</y>
598    </hint>
599   </hints>
600  </connection>
601  <connection>
602   <sender>cbCitiesLimit</sender>
603   <signal>toggled(bool)</signal>
604   <receiver>spinCitiesLimit</receiver>
605   <slot>setEnabled(bool)</slot>
606   <hints>
607    <hint type="sourcelabel">
608     <x>113</x>
609     <y>132</y>
610    </hint>
611    <hint type="destinationlabel">
612     <x>183</x>
613     <y>134</y>
614    </hint>
615   </hints>
616  </connection>
617  <connection>
618   <sender>cbShowGraph</sender>
619   <signal>toggled(bool)</signal>
620   <receiver>labelGraphImageFormat</receiver>
621   <slot>setEnabled(bool)</slot>
622   <hints>
623    <hint type="sourcelabel">
624     <x>113</x>
625     <y>48</y>
626    </hint>
627    <hint type="destinationlabel">
628     <x>72</x>
629     <y>73</y>
630    </hint>
631   </hints>
632  </connection>
633  <connection>
634   <sender>cbShowGraph</sender>
635   <signal>toggled(bool)</signal>
636   <receiver>comboGraphImageFormat</receiver>
637   <slot>setEnabled(bool)</slot>
638   <hints>
639    <hint type="sourcelabel">
640     <x>113</x>
641     <y>48</y>
642    </hint>
643    <hint type="destinationlabel">
644     <x>149</x>
645     <y>73</y>
646    </hint>
647   </hints>
648  </connection>
649 </connections>
650</ui>
Note: See TracBrowser for help on using the repository browser.