source: tspsg/ui/settingsdialog.ui @ 20015b41e7

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

+ Added the ability to select in what format to save the graph when saving solution as HTML.

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