source: tspsg-svn/trunk/ui/settingsdialog.ui @ 128

Last change on this file since 128 was 128, checked in by laleppa, 14 years ago

+ Added an option to remember last used directory when saving and opening.

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