source: tspsg/ui/settingsdialog.ui @ ff8d0488a0

appveyorimgbotreadme
Last change on this file since ff8d0488a0 was ff8d0488a0, checked in by Oleksii Serdiuk, 12 years ago

Prepared settings dialog for adding more output options.

  • Property mode set to 100644
File size: 22.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <author>Oleksii Serdiuk: $Id: $Format:%h %ai %an$ $</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>1</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>0</width>
283            <height>1</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="verticalLayout_2">
298        <item>
299         <widget class="QTabWidget" name="outputTabWidget">
300          <widget class="QWidget" name="tabOutputGeneral">
301           <attribute name="title">
302            <string>General</string>
303           </attribute>
304           <layout class="QVBoxLayout" name="_6">
305            <item>
306             <widget class="QCheckBox" name="cbGenerateGraph">
307              <property name="cursor">
308               <cursorShape>PointingHandCursor</cursorShape>
309              </property>
310              <property name="statusTip">
311               <string>Generate graphical representation of the solution</string>
312              </property>
313              <property name="text">
314               <string>Generate solution graph</string>
315              </property>
316             </widget>
317            </item>
318            <item>
319             <layout class="QHBoxLayout" name="_10">
320              <property name="spacing">
321               <number>5</number>
322              </property>
323              <item>
324               <spacer name="spacer_7">
325                <property name="orientation">
326                 <enum>Qt::Horizontal</enum>
327                </property>
328                <property name="sizeType">
329                 <enum>QSizePolicy::Fixed</enum>
330                </property>
331                <property name="sizeHint" stdset="0">
332                 <size>
333                  <width>10</width>
334                  <height>0</height>
335                 </size>
336                </property>
337               </spacer>
338              </item>
339              <item>
340               <widget class="QLabel" name="labelGraphImageFormat">
341                <property name="text">
342                 <string>Save solution graph as</string>
343                </property>
344                <property name="buddy">
345                 <cstring>comboGraphImageFormat</cstring>
346                </property>
347               </widget>
348              </item>
349              <item>
350               <widget class="QComboBox" name="comboGraphImageFormat">
351                <property name="cursor">
352                 <cursorShape>PointingHandCursor</cursorShape>
353                </property>
354                <property name="statusTip">
355                 <string>What image format to use for graph when saving solution as HTML</string>
356                </property>
357               </widget>
358              </item>
359              <item>
360               <spacer name="spacer_11">
361                <property name="orientation">
362                 <enum>Qt::Horizontal</enum>
363                </property>
364                <property name="sizeHint" stdset="0">
365                 <size>
366                  <width>1</width>
367                  <height>0</height>
368                 </size>
369                </property>
370               </spacer>
371              </item>
372             </layout>
373            </item>
374            <item>
375             <layout class="QHBoxLayout" name="_14">
376              <item>
377               <spacer name="spacer_8">
378                <property name="orientation">
379                 <enum>Qt::Horizontal</enum>
380                </property>
381                <property name="sizeType">
382                 <enum>QSizePolicy::Fixed</enum>
383                </property>
384                <property name="sizeHint" stdset="0">
385                 <size>
386                  <width>10</width>
387                  <height>0</height>
388                 </size>
389                </property>
390               </spacer>
391              </item>
392              <item>
393               <widget class="QCheckBox" name="cbEmbedGraphIntoHTML">
394                <property name="cursor">
395                 <cursorShape>PointingHandCursor</cursorShape>
396                </property>
397                <property name="statusTip">
398                 <string>Save solution graph inside HTML using data URI scheme (not supported by IE 7 and lower)</string>
399                </property>
400                <property name="text">
401                 <string>Embed solution graph into HTML</string>
402                </property>
403               </widget>
404              </item>
405             </layout>
406            </item>
407            <item>
408             <widget class="QCheckBox" name="cbShowMatrix">
409              <property name="cursor">
410               <cursorShape>PointingHandCursor</cursorShape>
411              </property>
412              <property name="statusTip">
413               <string>Show solution steps' matrices for every solution step</string>
414              </property>
415              <property name="text">
416               <string>Show solution steps' matrices</string>
417              </property>
418             </widget>
419            </item>
420            <item>
421             <layout class="QHBoxLayout" name="_12">
422              <property name="spacing">
423               <number>0</number>
424              </property>
425              <item>
426               <spacer name="spacer_3">
427                <property name="orientation">
428                 <enum>Qt::Horizontal</enum>
429                </property>
430                <property name="sizeType">
431                 <enum>QSizePolicy::Fixed</enum>
432                </property>
433                <property name="sizeHint" stdset="0">
434                 <size>
435                  <width>10</width>
436                  <height>0</height>
437                 </size>
438                </property>
439               </spacer>
440              </item>
441              <item>
442               <widget class="QCheckBox" name="cbCitiesLimit">
443                <property name="cursor">
444                 <cursorShape>PointingHandCursor</cursorShape>
445                </property>
446                <property name="statusTip">
447                 <string>Show or hide solution steps' matrices based on number of cities in the task</string>
448                </property>
449                <property name="text">
450                 <string>Only when &lt;=</string>
451                </property>
452               </widget>
453              </item>
454              <item>
455               <widget class="QSpinBox" name="spinCitiesLimit">
456                <property name="cursor">
457                 <cursorShape>PointingHandCursor</cursorShape>
458                </property>
459                <property name="statusTip">
460                 <string>Maximum number of cities to show solution steps' matrices</string>
461                </property>
462                <property name="suffix">
463                 <string comment="Don't forget a space at the beginning!"> cities</string>
464                </property>
465                <property name="minimum">
466                 <number>1</number>
467                </property>
468               </widget>
469              </item>
470              <item>
471               <spacer name="spacer_4">
472                <property name="orientation">
473                 <enum>Qt::Horizontal</enum>
474                </property>
475                <property name="sizeHint" stdset="0">
476                 <size>
477                  <width>1</width>
478                  <height>0</height>
479                 </size>
480                </property>
481               </spacer>
482              </item>
483             </layout>
484            </item>
485            <item>
486             <widget class="QCheckBox" name="cbScrollToEnd">
487              <property name="cursor">
488               <cursorShape>PointingHandCursor</cursorShape>
489              </property>
490              <property name="statusTip">
491               <string>Scroll to the end of solution output after solving</string>
492              </property>
493              <property name="text">
494               <string>Scroll to solution end</string>
495              </property>
496             </widget>
497            </item>
498            <item>
499             <spacer name="spacer_6">
500              <property name="orientation">
501               <enum>Qt::Vertical</enum>
502              </property>
503              <property name="sizeHint" stdset="0">
504               <size>
505                <width>0</width>
506                <height>1</height>
507               </size>
508              </property>
509             </spacer>
510            </item>
511           </layout>
512          </widget>
513          <widget class="QWidget" name="tabOutputColors">
514           <attribute name="title">
515            <string comment="Needs double &amp; or it won't be displayed!">Font &amp;&amp; Colors</string>
516           </attribute>
517           <layout class="QVBoxLayout" name="_11">
518            <item>
519             <layout class="QHBoxLayout" name="_13">
520              <item>
521               <widget class="QPushButton" name="buttonFont">
522                <property name="cursor">
523                 <cursorShape>PointingHandCursor</cursorShape>
524                </property>
525                <property name="statusTip">
526                 <string>Font face for solution output</string>
527                </property>
528                <property name="text">
529                 <string>&amp;Font...</string>
530                </property>
531               </widget>
532              </item>
533              <item>
534               <widget class="QPushButton" name="buttonColor">
535                <property name="cursor">
536                 <cursorShape>PointingHandCursor</cursorShape>
537                </property>
538                <property name="statusTip">
539                 <string>Font color for solution output</string>
540                </property>
541                <property name="text">
542                 <string>&amp;Color...</string>
543                </property>
544               </widget>
545              </item>
546              <item>
547               <spacer name="spacer_5">
548                <property name="orientation">
549                 <enum>Qt::Horizontal</enum>
550                </property>
551                <property name="sizeHint" stdset="0">
552                 <size>
553                  <width>1</width>
554                  <height>0</height>
555                 </size>
556                </property>
557               </spacer>
558              </item>
559             </layout>
560            </item>
561            <item>
562             <spacer name="spacer_9">
563              <property name="orientation">
564               <enum>Qt::Vertical</enum>
565              </property>
566              <property name="sizeHint" stdset="0">
567               <size>
568                <width>0</width>
569                <height>1</height>
570               </size>
571              </property>
572             </spacer>
573            </item>
574           </layout>
575          </widget>
576         </widget>
577        </item>
578       </layout>
579      </widget>
580     </widget>
581    </item>
582   </layout>
583  </widget>
584 </widget>
585 <resources/>
586 <connections>
587  <connection>
588   <sender>buttonBox</sender>
589   <signal>accepted()</signal>
590   <receiver>SettingsDialog</receiver>
591   <slot>accept()</slot>
592   <hints>
593    <hint type="sourcelabel">
594     <x>190</x>
595     <y>30</y>
596    </hint>
597    <hint type="destinationlabel">
598     <x>306</x>
599     <y>231</y>
600    </hint>
601   </hints>
602  </connection>
603  <connection>
604   <sender>buttonBox</sender>
605   <signal>rejected()</signal>
606   <receiver>SettingsDialog</receiver>
607   <slot>reject()</slot>
608   <hints>
609    <hint type="sourcelabel">
610     <x>190</x>
611     <y>30</y>
612    </hint>
613    <hint type="destinationlabel">
614     <x>262</x>
615     <y>245</y>
616    </hint>
617   </hints>
618  </connection>
619  <connection>
620   <sender>cbShowMatrix</sender>
621   <signal>toggled(bool)</signal>
622   <receiver>cbCitiesLimit</receiver>
623   <slot>setEnabled(bool)</slot>
624   <hints>
625    <hint type="sourcelabel">
626     <x>91</x>
627     <y>107</y>
628    </hint>
629    <hint type="destinationlabel">
630     <x>113</x>
631     <y>132</y>
632    </hint>
633   </hints>
634  </connection>
635  <connection>
636   <sender>cbShowMatrix</sender>
637   <signal>toggled(bool)</signal>
638   <receiver>cbCitiesLimit</receiver>
639   <slot>setChecked(bool)</slot>
640   <hints>
641    <hint type="sourcelabel">
642     <x>91</x>
643     <y>107</y>
644    </hint>
645    <hint type="destinationlabel">
646     <x>113</x>
647     <y>132</y>
648    </hint>
649   </hints>
650  </connection>
651  <connection>
652   <sender>cbCitiesLimit</sender>
653   <signal>toggled(bool)</signal>
654   <receiver>spinCitiesLimit</receiver>
655   <slot>setEnabled(bool)</slot>
656   <hints>
657    <hint type="sourcelabel">
658     <x>113</x>
659     <y>132</y>
660    </hint>
661    <hint type="destinationlabel">
662     <x>183</x>
663     <y>134</y>
664    </hint>
665   </hints>
666  </connection>
667  <connection>
668   <sender>cbGenerateGraph</sender>
669   <signal>toggled(bool)</signal>
670   <receiver>labelGraphImageFormat</receiver>
671   <slot>setEnabled(bool)</slot>
672   <hints>
673    <hint type="sourcelabel">
674     <x>113</x>
675     <y>48</y>
676    </hint>
677    <hint type="destinationlabel">
678     <x>72</x>
679     <y>73</y>
680    </hint>
681   </hints>
682  </connection>
683  <connection>
684   <sender>cbGenerateGraph</sender>
685   <signal>toggled(bool)</signal>
686   <receiver>comboGraphImageFormat</receiver>
687   <slot>setEnabled(bool)</slot>
688   <hints>
689    <hint type="sourcelabel">
690     <x>113</x>
691     <y>48</y>
692    </hint>
693    <hint type="destinationlabel">
694     <x>149</x>
695     <y>73</y>
696    </hint>
697   </hints>
698  </connection>
699  <connection>
700   <sender>cbGenerateGraph</sender>
701   <signal>toggled(bool)</signal>
702   <receiver>cbEmbedGraphIntoHTML</receiver>
703   <slot>setEnabled(bool)</slot>
704   <hints>
705    <hint type="sourcelabel">
706     <x>128</x>
707     <y>45</y>
708    </hint>
709    <hint type="destinationlabel">
710     <x>136</x>
711     <y>103</y>
712    </hint>
713   </hints>
714  </connection>
715 </connections>
716</ui>
Note: See TracBrowser for help on using the repository browser.