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

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

Forgot to change icon name in mainwindow.ui...

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