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

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

+ Added README file.

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