source: tspsg-svn/trunk/ui/mainwindow.ui @ 74

Last change on this file since 74 was 74, checked in by laleppa, 15 years ago

+ CTSPSolver class now deletes all solution tree on cleanup and delete to avoid memory leaks.
+ List of alternate candidates for branching is now saved in every solution step and displayed on output.
+ New struct TCandidate that represents a candidate for branching.

  • Renamed sStep to SStep and tMatrix to TMatrix.
  • Made a better and more readable About window.
  • English translation is now loaded too. This is needed to support plurals (e.g., 1 candidate, 4 candidates).
  • Property svn:keywords set to Id
File size: 19.5 KB
RevLine 
[17]1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
[73]3 <author>Lёppa: $Id: mainwindow.ui 74 2009-12-16 22:22:05Z laleppa $</author>
[1]4 <class>MainWindow</class>
[17]5 <widget class="QMainWindow" name="MainWindow">
6  <property name="geometry">
[1]7   <rect>
8    <x>0</x>
9    <y>0</y>
[71]10    <width>503</width>
11    <height>387</height>
[1]12   </rect>
13  </property>
[17]14  <property name="windowTitle">
[47]15   <string>Travelling Salesman Problem</string>
[1]16  </property>
[17]17  <property name="windowIcon">
[54]18   <iconset resource="../resources/tspsg.qrc">
[62]19    <normaloff>:/images/tspsg.png</normaloff>:/images/tspsg.png</iconset>
[1]20  </property>
[17]21  <widget class="QWidget" name="centralwidget">
[42]22   <widget class="QTabWidget" name="tabWidget">
23    <property name="geometry">
24     <rect>
25      <x>0</x>
26      <y>0</y>
[50]27      <width>287</width>
28      <height>298</height>
[42]29     </rect>
30    </property>
31    <property name="sizePolicy">
32     <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
33      <horstretch>0</horstretch>
34      <verstretch>0</verstretch>
35     </sizepolicy>
36    </property>
[54]37    <property name="tabPosition">
38     <enum>QTabWidget::North</enum>
39    </property>
[42]40    <property name="currentIndex">
41     <number>0</number>
42    </property>
43    <widget class="QWidget" name="tabTask">
44     <attribute name="title">
45      <string>Task</string>
46     </attribute>
47     <layout class="QVBoxLayout">
48      <item>
49       <layout class="QHBoxLayout">
[1]50        <item>
[42]51         <spacer>
52          <property name="orientation">
53           <enum>Qt::Horizontal</enum>
54          </property>
55          <property name="sizeHint" stdset="0">
56           <size>
57            <width>40</width>
58            <height>20</height>
59           </size>
60          </property>
61         </spacer>
[1]62        </item>
63        <item>
[42]64         <widget class="QLabel" name="labelVariant">
65          <property name="text">
66           <string>&amp;Variant:</string>
67          </property>
68          <property name="buddy">
69           <cstring>spinVariant</cstring>
70          </property>
71         </widget>
72        </item>
73        <item>
74         <widget class="QSpinBox" name="spinVariant">
75          <property name="cursor">
76           <cursorShape>PointingHandCursor</cursorShape>
77          </property>
[17]78          <property name="statusTip">
[42]79           <string>Number of variant</string>
[7]80          </property>
[42]81          <property name="minimum">
82           <number>1</number>
[4]83          </property>
84         </widget>
[1]85        </item>
86        <item>
[42]87         <widget class="QLabel" name="labelCities">
88          <property name="text">
89           <string>&amp;Cities:</string>
90          </property>
91          <property name="buddy">
92           <cstring>spinCities</cstring>
93          </property>
94         </widget>
[1]95        </item>
[42]96        <item>
97         <widget class="QSpinBox" name="spinCities">
98          <property name="cursor">
99           <cursorShape>PointingHandCursor</cursorShape>
100          </property>
101          <property name="statusTip">
102           <string>Number of cities</string>
103          </property>
104          <property name="minimum">
105           <number>3</number>
106          </property>
107          <property name="value">
108           <number>5</number>
109          </property>
110         </widget>
111        </item>
112        <item>
113         <spacer>
114          <property name="orientation">
115           <enum>Qt::Horizontal</enum>
116          </property>
117          <property name="sizeHint" stdset="0">
118           <size>
119            <width>40</width>
120            <height>20</height>
121           </size>
122          </property>
123         </spacer>
124        </item>
[1]125       </layout>
[42]126      </item>
127      <item>
128       <widget class="QTableView" name="taskView">
129        <property name="statusTip">
130         <string>Cost of travel from city to city</string>
131        </property>
132        <property name="selectionMode">
133         <enum>QAbstractItemView::NoSelection</enum>
134        </property>
135       </widget>
136      </item>
137      <item>
138       <layout class="QHBoxLayout">
[1]139        <item>
[42]140         <spacer>
141          <property name="orientation">
142           <enum>Qt::Horizontal</enum>
[1]143          </property>
[42]144          <property name="sizeHint" stdset="0">
145           <size>
146            <width>40</width>
147            <height>20</height>
148           </size>
149          </property>
150         </spacer>
[1]151        </item>
[42]152        <item>
153         <widget class="QPushButton" name="buttonRandom">
154          <property name="cursor">
155           <cursorShape>PointingHandCursor</cursorShape>
156          </property>
157          <property name="statusTip">
158           <string>Fill table with random numbers</string>
159          </property>
160          <property name="text">
161           <string>Random</string>
162          </property>
163          <property name="icon">
164           <iconset resource="../resources/tspsg.qrc">
165            <normaloff>:/images/icons/roll.png</normaloff>:/images/icons/roll.png</iconset>
166          </property>
167         </widget>
168        </item>
169        <item>
170         <widget class="QPushButton" name="buttonSolve">
171          <property name="cursor">
172           <cursorShape>PointingHandCursor</cursorShape>
173          </property>
174          <property name="statusTip">
175           <string>Solve current task</string>
176          </property>
177          <property name="text">
178           <string>Solve</string>
179          </property>
180          <property name="icon">
181           <iconset resource="../resources/tspsg.qrc">
182            <normaloff>:/images/icons/button_ok.png</normaloff>:/images/icons/button_ok.png</iconset>
183          </property>
184         </widget>
185        </item>
[1]186       </layout>
[42]187      </item>
188     </layout>
189    </widget>
190    <widget class="QWidget" name="tabSolution">
191     <attribute name="title">
192      <string>Solution</string>
193     </attribute>
194     <layout class="QVBoxLayout" name="verticalLayout">
195      <item>
196       <widget class="QTextEdit" name="solutionText">
197        <property name="enabled">
198         <bool>false</bool>
199        </property>
200        <property name="statusTip">
201         <string>Solution steps</string>
202        </property>
203        <property name="readOnly">
204         <bool>true</bool>
205        </property>
206        <property name="textInteractionFlags">
207         <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
208        </property>
209       </widget>
210      </item>
[50]211      <item>
212       <layout class="QHBoxLayout" name="horizontalLayout">
213        <item>
214         <widget class="QPushButton" name="buttonSaveSolution">
215          <property name="enabled">
216           <bool>false</bool>
217          </property>
218          <property name="cursor">
219           <cursorShape>PointingHandCursor</cursorShape>
220          </property>
221          <property name="statusTip">
222           <string>Save solution to a file</string>
223          </property>
224          <property name="text">
225           <string>Save Solution</string>
226          </property>
227          <property name="icon">
228           <iconset resource="../resources/tspsg.qrc">
229            <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
230          </property>
231         </widget>
232        </item>
233        <item>
234         <spacer name="horizontalSpacer">
235          <property name="orientation">
236           <enum>Qt::Horizontal</enum>
237          </property>
238          <property name="sizeHint" stdset="0">
239           <size>
240            <width>40</width>
241            <height>20</height>
242           </size>
243          </property>
244         </spacer>
245        </item>
246        <item>
247         <widget class="QPushButton" name="buttonBackToTask">
248          <property name="cursor">
249           <cursorShape>PointingHandCursor</cursorShape>
250          </property>
251          <property name="statusTip">
252           <string>Go back to Task tab</string>
253          </property>
254          <property name="text">
255           <string>Back to Task</string>
256          </property>
257          <property name="icon">
258           <iconset resource="../resources/tspsg.qrc">
259            <normaloff>:/images/icons/back.png</normaloff>:/images/icons/back.png</iconset>
260          </property>
261         </widget>
262        </item>
263       </layout>
264      </item>
[42]265     </layout>
266    </widget>
267   </widget>
[1]268  </widget>
[17]269  <widget class="QMenuBar" name="menubar">
270   <property name="geometry">
[1]271    <rect>
272     <x>0</x>
273     <y>0</y>
[71]274     <width>503</width>
275     <height>21</height>
[1]276    </rect>
277   </property>
[17]278   <widget class="QMenu" name="menuFile">
279    <property name="windowIcon">
280     <iconset>
281      <normaloff/>
282     </iconset>
[1]283    </property>
[17]284    <property name="title">
[27]285     <string>&amp;File</string>
[1]286    </property>
[31]287    <widget class="QMenu" name="menuFileSaveAs">
[17]288     <property name="title">
[50]289      <string>Save &amp;As</string>
[1]290     </property>
[17]291     <property name="icon">
292      <iconset resource="../resources/tspsg.qrc">
[38]293       <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
[1]294     </property>
[42]295     <addaction name="actionFileSaveAsTask"/>
296     <addaction name="actionFileSaveAsSolution"/>
[1]297    </widget>
[17]298    <addaction name="actionFileNew"/>
299    <addaction name="actionFileOpen"/>
[31]300    <addaction name="actionFileSave"/>
301    <addaction name="menuFileSaveAs"/>
[17]302    <addaction name="separator"/>
303    <addaction name="actionFileExit"/>
[1]304   </widget>
[17]305   <widget class="QMenu" name="menuSettings">
306    <property name="title">
[27]307     <string>&amp;Settings</string>
[1]308    </property>
[29]309    <widget class="QMenu" name="menuSettingsLanguage">
310     <property name="toolTip">
311      <string>Select language</string>
312     </property>
313     <property name="statusTip">
314      <string>Select application language</string>
315     </property>
316     <property name="title">
[42]317      <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
[29]318     </property>
[30]319     <property name="icon">
320      <iconset resource="../resources/tspsg.qrc">
[38]321       <normaloff>:/images/icons/locale.png</normaloff>:/images/icons/locale.png</iconset>
[30]322     </property>
[29]323     <addaction name="actionSettingsLanguageAutodetect"/>
[30]324     <addaction name="separator"/>
325     <addaction name="actionSettingsLanguageEnglish"/>
[29]326    </widget>
327    <addaction name="menuSettingsLanguage"/>
328    <addaction name="separator"/>
329    <addaction name="actionSettingsPreferences"/>
[1]330   </widget>
[17]331   <widget class="QMenu" name="menuHelp">
332    <property name="title">
[27]333     <string>&amp;Help</string>
[1]334    </property>
[17]335    <addaction name="actionHelpContents"/>
336    <addaction name="actionHelpContextual"/>
337    <addaction name="separator"/>
[37]338    <addaction name="actionHelpAboutQt"/>
[17]339    <addaction name="actionHelpAbout"/>
[1]340   </widget>
[17]341   <addaction name="menuFile"/>
342   <addaction name="menuSettings"/>
343   <addaction name="menuHelp"/>
[1]344  </widget>
[17]345  <widget class="QToolBar" name="toolBar">
346   <property name="cursor">
[1]347    <cursorShape>ArrowCursor</cursorShape>
348   </property>
[54]349   <property name="windowTitle">
350    <string>Toolbar</string>
351   </property>
[17]352   <attribute name="toolBarArea">
[1]353    <enum>TopToolBarArea</enum>
354   </attribute>
[17]355   <attribute name="toolBarBreak">
[1]356    <bool>false</bool>
357   </attribute>
[17]358   <addaction name="actionFileNew"/>
359   <addaction name="actionFileOpen"/>
[39]360   <addaction name="actionFileSave"/>
[17]361   <addaction name="separator"/>
[29]362   <addaction name="actionSettingsPreferences"/>
[17]363   <addaction name="separator"/>
364   <addaction name="actionFileExit"/>
[1]365  </widget>
[52]366  <action name="actionFilePrintPreview">
[42]367   <property name="enabled">
368    <bool>false</bool>
369   </property>
[17]370   <property name="icon">
371    <iconset resource="../resources/tspsg.qrc">
[52]372     <normaloff>:/images/icons/document_preview.png</normaloff>:/images/icons/document_preview.png</iconset>
[1]373   </property>
[17]374   <property name="text">
[52]375    <string>P&amp;rint Preview...</string>
[1]376   </property>
[52]377   <property name="iconText">
378    <string>Print Preview...</string>
379   </property>
380   <property name="toolTip">
381    <string>Preview solution results</string>
382   </property>
[17]383   <property name="statusTip">
[52]384    <string>Preview current solution results before printing</string>
[7]385   </property>
[1]386  </action>
[17]387  <action name="actionFilePrint">
388   <property name="enabled">
[7]389    <bool>false</bool>
390   </property>
[17]391   <property name="icon">
392    <iconset resource="../resources/tspsg.qrc">
[38]393     <normaloff>:/images/icons/fileprint.png</normaloff>:/images/icons/fileprint.png</iconset>
[1]394   </property>
[17]395   <property name="text">
[27]396    <string>&amp;Print...</string>
[1]397   </property>
[52]398   <property name="iconText">
399    <string>Print...</string>
400   </property>
401   <property name="toolTip">
402    <string>Print solution</string>
403   </property>
[17]404   <property name="statusTip">
[52]405    <string>Print current solution results</string>
[7]406   </property>
[17]407   <property name="shortcut">
[1]408    <string>Ctrl+P</string>
409   </property>
410  </action>
[42]411  <action name="actionFileSaveAsSolution">
[17]412   <property name="enabled">
[7]413    <bool>false</bool>
[1]414   </property>
[17]415   <property name="text">
[42]416    <string>&amp;Solution...</string>
[1]417   </property>
[50]418   <property name="iconText">
419    <string>Solution...</string>
420   </property>
[27]421   <property name="toolTip">
422    <string>Save solution</string>
423   </property>
[17]424   <property name="statusTip">
[50]425    <string>Save solution to a file</string>
[7]426   </property>
[1]427  </action>
[17]428  <action name="actionFileNew">
429   <property name="icon">
430    <iconset resource="../resources/tspsg.qrc">
[38]431     <normaloff>:/images/icons/filenew.png</normaloff>:/images/icons/filenew.png</iconset>
[1]432   </property>
[17]433   <property name="text">
[27]434    <string>&amp;New</string>
[1]435   </property>
[27]436   <property name="iconText">
437    <string>New</string>
438   </property>
439   <property name="toolTip">
440    <string>New task</string>
441   </property>
[17]442   <property name="statusTip">
[27]443    <string>Create new task</string>
[7]444   </property>
[17]445   <property name="shortcut">
[1]446    <string>Ctrl+N</string>
447   </property>
448  </action>
[17]449  <action name="actionFileOpen">
450   <property name="icon">
451    <iconset resource="../resources/tspsg.qrc">
[38]452     <normaloff>:/images/icons/fileopen.png</normaloff>:/images/icons/fileopen.png</iconset>
[1]453   </property>
[17]454   <property name="text">
[27]455    <string>&amp;Open...</string>
[1]456   </property>
[27]457   <property name="iconText">
458    <string>Open...</string>
459   </property>
[17]460   <property name="toolTip">
[27]461    <string>Open task</string>
[7]462   </property>
[17]463   <property name="statusTip">
[27]464    <string>Open saved task</string>
[7]465   </property>
[17]466   <property name="shortcut">
[1]467    <string>Ctrl+O</string>
468   </property>
469  </action>
[29]470  <action name="actionSettingsPreferences">
[17]471   <property name="icon">
472    <iconset resource="../resources/tspsg.qrc">
[38]473     <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
[1]474   </property>
[17]475   <property name="text">
[27]476    <string>&amp;Preferences...</string>
[1]477   </property>
[27]478   <property name="iconText">
479    <string>Preferences...</string>
480   </property>
[17]481   <property name="statusTip">
[27]482    <string>Application preferences</string>
[7]483   </property>
[1]484  </action>
[17]485  <action name="actionHelpContents">
[27]486   <property name="enabled">
487    <bool>false</bool>
488   </property>
[17]489   <property name="icon">
490    <iconset resource="../resources/tspsg.qrc">
[38]491     <normaloff>:/images/icons/contents.png</normaloff>:/images/icons/contents.png</iconset>
[1]492   </property>
[17]493   <property name="text">
[27]494    <string>&amp;Contents</string>
[1]495   </property>
[17]496   <property name="statusTip">
[27]497    <string>Open help contents</string>
[7]498   </property>
[50]499   <property name="shortcut">
500    <string>Ctrl+F1</string>
501   </property>
[1]502  </action>
[17]503  <action name="actionHelpContextual">
[27]504   <property name="enabled">
505    <bool>false</bool>
506   </property>
[17]507   <property name="icon">
508    <iconset resource="../resources/tspsg.qrc">
[38]509     <normaloff>:/images/icons/help_browser.png</normaloff>:/images/icons/help_browser.png</iconset>
[1]510   </property>
[17]511   <property name="text">
[38]512    <string>Context &amp;Help</string>
[1]513   </property>
[17]514   <property name="statusTip">
[27]515    <string>Open context help</string>
[7]516   </property>
[50]517   <property name="shortcut">
518    <string>F1</string>
519   </property>
[1]520  </action>
[17]521  <action name="actionHelpAbout">
522   <property name="icon">
523    <iconset resource="../resources/tspsg.qrc">
[38]524     <normaloff>:/images/icons/help_about.png</normaloff>:/images/icons/help_about.png</iconset>
[1]525   </property>
[17]526   <property name="text">
[74]527    <string>&amp;About TSPSG...</string>
[1]528   </property>
[27]529   <property name="iconText">
[74]530    <string>About TSPSG...</string>
[27]531   </property>
[17]532   <property name="statusTip">
[27]533    <string>About application</string>
[11]534   </property>
[1]535  </action>
[17]536  <action name="actionFileExit">
537   <property name="icon">
538    <iconset resource="../resources/tspsg.qrc">
[38]539     <normaloff>:/images/icons/exit.png</normaloff>:/images/icons/exit.png</iconset>
[1]540   </property>
[17]541   <property name="text">
[27]542    <string>E&amp;xit</string>
[1]543   </property>
[17]544   <property name="statusTip">
[27]545    <string>Exit application</string>
[1]546   </property>
547  </action>
[42]548  <action name="actionFileSaveAsTask">
[17]549   <property name="text">
[27]550    <string>&amp;Task...</string>
[7]551   </property>
[17]552   <property name="iconText">
[27]553    <string>Task...</string>
[7]554   </property>
[17]555   <property name="toolTip">
[27]556    <string>Save task</string>
[7]557   </property>
[17]558   <property name="statusTip">
[27]559    <string>Save task to file</string>
[7]560   </property>
561  </action>
[29]562  <action name="actionSettingsLanguageAutodetect">
563   <property name="checkable">
564    <bool>true</bool>
565   </property>
566   <property name="checked">
567    <bool>true</bool>
568   </property>
569   <property name="text">
570    <string>&amp;Autodetect</string>
571   </property>
572   <property name="toolTip">
573    <string>Detect language automatically</string>
574   </property>
575   <property name="statusTip">
576    <string>Detect language automatically based on regional settings</string>
577   </property>
578  </action>
[30]579  <action name="actionSettingsLanguageEnglish">
580   <property name="checkable">
581    <bool>true</bool>
582   </property>
583   <property name="checked">
584    <bool>true</bool>
585   </property>
586   <property name="text">
[50]587    <string notr="true">&amp;English</string>
[30]588   </property>
[48]589   <property name="iconText">
590    <string notr="true">English</string>
591   </property>
[30]592  </action>
[31]593  <action name="actionFileSave">
594   <property name="icon">
595    <iconset resource="../resources/tspsg.qrc">
[38]596     <normaloff>:/images/icons/filesave.png</normaloff>:/images/icons/filesave.png</iconset>
[31]597   </property>
598   <property name="text">
599    <string>&amp;Save</string>
600   </property>
601   <property name="iconText">
602    <string>Save</string>
603   </property>
604   <property name="toolTip">
605    <string>Save task</string>
606   </property>
607   <property name="statusTip">
608    <string>Save current task</string>
609   </property>
[50]610   <property name="shortcut">
611    <string>Ctrl+S</string>
612   </property>
[31]613  </action>
[37]614  <action name="actionHelpAboutQt">
615   <property name="icon">
616    <iconset resource="../resources/tspsg.qrc">
[42]617     <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
[37]618   </property>
619   <property name="text">
620    <string>About &amp;Qt...</string>
621   </property>
622   <property name="iconText">
623    <string>About Qt...</string>
624   </property>
625   <property name="statusTip">
626    <string>About Qt library</string>
627   </property>
628  </action>
[1]629 </widget>
630 <resources>
[17]631  <include location="../resources/tspsg.qrc"/>
[1]632 </resources>
633 <connections>
634  <connection>
635   <sender>actionFileExit</sender>
636   <signal>triggered()</signal>
637   <receiver>MainWindow</receiver>
638   <slot>close()</slot>
639   <hints>
[17]640    <hint type="sourcelabel">
[1]641     <x>-1</x>
642     <y>-1</y>
643    </hint>
[17]644    <hint type="destinationlabel">
[1]645     <x>294</x>
646     <y>229</y>
647    </hint>
648   </hints>
649  </connection>
[50]650  <connection>
651   <sender>buttonSaveSolution</sender>
652   <signal>clicked()</signal>
653   <receiver>actionFileSaveAsSolution</receiver>
654   <slot>trigger()</slot>
655   <hints>
656    <hint type="sourcelabel">
657     <x>58</x>
658     <y>327</y>
659    </hint>
660    <hint type="destinationlabel">
661     <x>-1</x>
662     <y>-1</y>
663    </hint>
664   </hints>
665  </connection>
[1]666 </connections>
667</ui>
Note: See TracBrowser for help on using the repository browser.