source: tspsg/ui/settingsdialog.ui @ 9cda6e0f5d

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

+ Added SStep::next that indicates what branch was selected for the next step.
+ Added "Show solution graph" option.
+ New CTSPSolver::getTotalSteps() method that returns a total number of steps in the current solution.

  • Moved SCandidate declaration into SStep declaration.
  • Moved everything in tspsolver.h and tspsolver.cpp into TSPSolver namespace.
  • Force CopyAction? on file drop or it will be deleted after dropping in Windows if MoveAction? was selected.
  • Property mode set to 100644
File size: 14.2 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                   </widget>
169                  </item>
170                  <item row="0" column="1">
171                   <widget class="QSpinBox" name="spinFractionalAccuracy">
172                        <property name="cursor">
173                         <cursorShape>PointingHandCursor</cursorShape>
174                        </property>
175                        <property name="statusTip">
176                         <string>Accuracy of the fractional values (in decimal places)</string>
177                        </property>
178                        <property name="maximum">
179                         <number>6</number>
180                        </property>
181                   </widget>
182                  </item>
183                 </layout>
184                </item>
185                <item>
186                 <widget class="QCheckBox" name="cbSymmetricMode">
187                  <property name="cursor">
188                   <cursorShape>PointingHandCursor</cursorShape>
189                  </property>
190                  <property name="statusTip">
191                   <string>In this mode the cost of travel from city 1 to city 2 and vice versa is the same</string>
192                  </property>
193                  <property name="text">
194                   <string>Symmetric mode</string>
195                  </property>
196                 </widget>
197                </item>
198                <item>
199                 <widget class="QGroupBox" name="gbTaskGeneration">
200                  <property name="title">
201                   <string>Task generation</string>
202                  </property>
203                  <layout class="QVBoxLayout" name="_7">
204                   <item>
205                        <layout class="QFormLayout" name="_8">
206                         <property name="fieldGrowthPolicy">
207                          <enum>QFormLayout::ExpandingFieldsGrow</enum>
208                         </property>
209                         <item row="0" column="0">
210                          <widget class="QLabel" name="labelRandMin">
211                           <property name="text">
212                                <string>Minimal random:</string>
213                           </property>
214                           <property name="buddy">
215                                <cstring>spinRandMin</cstring>
216                           </property>
217                          </widget>
218                         </item>
219                         <item row="0" column="1">
220                          <widget class="QSpinBox" name="spinRandMin">
221                           <property name="cursor">
222                                <cursorShape>PointingHandCursor</cursorShape>
223                           </property>
224                           <property name="statusTip">
225                                <string>Minimum for random number generation</string>
226                           </property>
227                          </widget>
228                         </item>
229                         <item row="1" column="0">
230                          <widget class="QLabel" name="labelRandMax">
231                           <property name="text">
232                                <string>Maximal random:</string>
233                           </property>
234                           <property name="buddy">
235                                <cstring>spinRandMax</cstring>
236                           </property>
237                          </widget>
238                         </item>
239                         <item row="1" column="1">
240                          <widget class="QSpinBox" name="spinRandMax">
241                           <property name="cursor">
242                                <cursorShape>PointingHandCursor</cursorShape>
243                           </property>
244                           <property name="statusTip">
245                                <string>Maximum for random number generation</string>
246                           </property>
247                          </widget>
248                         </item>
249                        </layout>
250                   </item>
251                   <item>
252                        <widget class="QCheckBox" name="cbFractionalRandom">
253                         <property name="cursor">
254                          <cursorShape>PointingHandCursor</cursorShape>
255                         </property>
256                         <property name="statusTip">
257                          <string>Generate fractional random values with the Fractional accuracy</string>
258                         </property>
259                         <property name="text">
260                          <string>Fractional random values</string>
261                         </property>
262                        </widget>
263                   </item>
264                  </layout>
265                 </widget>
266                </item>
267                <item>
268                 <spacer name="spacer_2">
269                  <property name="orientation">
270                   <enum>Qt::Vertical</enum>
271                  </property>
272                  <property name="sizeHint" stdset="0">
273                   <size>
274                        <width>10</width>
275                        <height>0</height>
276                   </size>
277                  </property>
278                 </spacer>
279                </item>
280           </layout>
281          </widget>
282          <widget class="QWidget" name="tabOutput">
283           <attribute name="title">
284                <string>Output</string>
285           </attribute>
286           <attribute name="toolTip">
287                <string>Solution output settings</string>
288           </attribute>
289           <layout class="QVBoxLayout" name="_6">
290                <item>
291                 <widget class="QCheckBox" name="cbShowGraph">
292                  <property name="cursor">
293                   <cursorShape>PointingHandCursor</cursorShape>
294                  </property>
295                  <property name="statusTip">
296                   <string>Show graphical representation of the solution</string>
297                  </property>
298                  <property name="text">
299                   <string>Show solution graph</string>
300                  </property>
301                 </widget>
302                </item>
303                <item>
304                 <widget class="QCheckBox" name="cbShowMatrix">
305                  <property name="cursor">
306                   <cursorShape>PointingHandCursor</cursorShape>
307                  </property>
308                  <property name="statusTip">
309                   <string>Show solution steps' matrices for every solution step</string>
310                  </property>
311                  <property name="text">
312                   <string>Show solution steps' matrices</string>
313                  </property>
314                 </widget>
315                </item>
316                <item>
317                 <layout class="QHBoxLayout" name="layoutCititesLimit">
318                  <property name="spacing">
319                   <number>0</number>
320                  </property>
321                  <item>
322                   <spacer name="spacer_3">
323                        <property name="orientation">
324                         <enum>Qt::Horizontal</enum>
325                        </property>
326                        <property name="sizeType">
327                         <enum>QSizePolicy::Fixed</enum>
328                        </property>
329                        <property name="sizeHint" stdset="0">
330                         <size>
331                          <width>10</width>
332                          <height>0</height>
333                         </size>
334                        </property>
335                   </spacer>
336                  </item>
337                  <item>
338                   <widget class="QCheckBox" name="cbCitiesLimit">
339                        <property name="cursor">
340                         <cursorShape>PointingHandCursor</cursorShape>
341                        </property>
342                        <property name="statusTip">
343                         <string>Show or hide solution steps' matrices based on number of cities in the task</string>
344                        </property>
345                        <property name="text">
346                         <string>Only when &lt;=</string>
347                        </property>
348                   </widget>
349                  </item>
350                  <item>
351                   <widget class="QSpinBox" name="spinCitiesLimit">
352                        <property name="statusTip">
353                         <string>Maximum number of cities to show solution steps' matrices</string>
354                        </property>
355                        <property name="suffix">
356                         <string comment="Don't forget a space at the beginning!"> cities</string>
357                        </property>
358                        <property name="minimum">
359                         <number>1</number>
360                        </property>
361                   </widget>
362                  </item>
363                  <item>
364                   <spacer name="spacer_4">
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="cbScrollToEnd">
380                  <property name="cursor">
381                   <cursorShape>PointingHandCursor</cursorShape>
382                  </property>
383                  <property name="statusTip">
384                   <string>Scroll to the end of solution output after solving</string>
385                  </property>
386                  <property name="text">
387                   <string>Scroll to solution end</string>
388                  </property>
389                 </widget>
390                </item>
391                <item>
392                 <layout class="QHBoxLayout" name="_11">
393                  <item>
394                   <widget class="QGroupBox" name="groupOutput">
395                        <property name="title">
396                         <string>Output font settings</string>
397                        </property>
398                        <layout class="QHBoxLayout" name="_13">
399                         <item>
400                          <widget class="QPushButton" name="buttonFont">
401                           <property name="cursor">
402                                <cursorShape>PointingHandCursor</cursorShape>
403                           </property>
404                           <property name="statusTip">
405                                <string>Font face for solution output</string>
406                           </property>
407                           <property name="text">
408                                <string>&amp;Font...</string>
409                           </property>
410                           <property name="icon">
411                                <iconset resource="../resources/tspsg.qrc">
412                                 <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
413                           </property>
414                          </widget>
415                         </item>
416                         <item>
417                          <widget class="QPushButton" name="buttonColor">
418                           <property name="cursor">
419                                <cursorShape>PointingHandCursor</cursorShape>
420                           </property>
421                           <property name="statusTip">
422                                <string>Font color for solution output</string>
423                           </property>
424                           <property name="text">
425                                <string>&amp;Color...</string>
426                           </property>
427                           <property name="icon">
428                                <iconset resource="../resources/tspsg.qrc">
429                                 <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
430                           </property>
431                          </widget>
432                         </item>
433                         <item>
434                          <spacer name="spacer_5">
435                           <property name="orientation">
436                                <enum>Qt::Horizontal</enum>
437                           </property>
438                           <property name="sizeHint" stdset="0">
439                                <size>
440                                 <width>0</width>
441                                 <height>0</height>
442                                </size>
443                           </property>
444                          </spacer>
445                         </item>
446                        </layout>
447                   </widget>
448                  </item>
449                 </layout>
450                </item>
451                <item>
452                 <spacer name="spacer_6">
453                  <property name="orientation">
454                   <enum>Qt::Vertical</enum>
455                  </property>
456                  <property name="sizeHint" stdset="0">
457                   <size>
458                        <width>0</width>
459                        <height>0</height>
460                   </size>
461                  </property>
462                 </spacer>
463                </item>
464           </layout>
465          </widget>
466         </widget>
467        </item>
468   </layout>
469  </widget>
470 </widget>
471 <resources>
472  <include location="../resources/tspsg.qrc"/>
473 </resources>
474 <connections>
475  <connection>
476   <sender>buttonBox</sender>
477   <signal>accepted()</signal>
478   <receiver>SettingsDialog</receiver>
479   <slot>accept()</slot>
480   <hints>
481        <hint type="sourcelabel">
482         <x>190</x>
483         <y>30</y>
484        </hint>
485        <hint type="destinationlabel">
486         <x>306</x>
487         <y>231</y>
488        </hint>
489   </hints>
490  </connection>
491  <connection>
492   <sender>buttonBox</sender>
493   <signal>rejected()</signal>
494   <receiver>SettingsDialog</receiver>
495   <slot>reject()</slot>
496   <hints>
497        <hint type="sourcelabel">
498         <x>190</x>
499         <y>30</y>
500        </hint>
501        <hint type="destinationlabel">
502         <x>262</x>
503         <y>245</y>
504        </hint>
505   </hints>
506  </connection>
507  <connection>
508   <sender>cbShowMatrix</sender>
509   <signal>toggled(bool)</signal>
510   <receiver>cbCitiesLimit</receiver>
511   <slot>setEnabled(bool)</slot>
512   <hints>
513        <hint type="sourcelabel">
514         <x>80</x>
515         <y>150</y>
516        </hint>
517        <hint type="destinationlabel">
518         <x>91</x>
519         <y>175</y>
520        </hint>
521   </hints>
522  </connection>
523  <connection>
524   <sender>cbShowMatrix</sender>
525   <signal>toggled(bool)</signal>
526   <receiver>cbCitiesLimit</receiver>
527   <slot>setChecked(bool)</slot>
528   <hints>
529        <hint type="sourcelabel">
530         <x>80</x>
531         <y>150</y>
532        </hint>
533        <hint type="destinationlabel">
534         <x>91</x>
535         <y>175</y>
536        </hint>
537   </hints>
538  </connection>
539  <connection>
540   <sender>cbCitiesLimit</sender>
541   <signal>toggled(bool)</signal>
542   <receiver>spinCitiesLimit</receiver>
543   <slot>setEnabled(bool)</slot>
544   <hints>
545        <hint type="sourcelabel">
546         <x>91</x>
547         <y>175</y>
548        </hint>
549        <hint type="destinationlabel">
550         <x>184</x>
551         <y>174</y>
552        </hint>
553   </hints>
554  </connection>
555 </connections>
556</ui>
Note: See TracBrowser for help on using the repository browser.