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

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

English language should always be in language menu.

File size: 17.6 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">
[27]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>
156           </widget>
157          </item>
158          <item>
[17]159           <widget class="QPushButton" name="buttonSolve">
160            <property name="cursor">
[1]161             <cursorShape>PointingHandCursor</cursorShape>
162            </property>
[17]163            <property name="statusTip">
[27]164             <string>Solve current task</string>
[1]165            </property>
[17]166            <property name="text">
[27]167             <string>Solve</string>
[1]168            </property>
[17]169            <property name="icon">
170             <iconset resource="../resources/tspsg.qrc">
171              <normaloff>:/images/buttons/buttons/OK.png</normaloff>:/images/buttons/buttons/OK.png</iconset>
[1]172            </property>
173           </widget>
174          </item>
175         </layout>
176        </item>
177       </layout>
178      </widget>
[17]179      <widget class="QWidget" name="tabSolution">
180       <attribute name="title">
[27]181        <string>Solution</string>
[1]182       </attribute>
[17]183       <layout class="QVBoxLayout">
[1]184        <item>
[17]185         <layout class="QHBoxLayout">
186          <property name="spacing">
[1]187           <number>0</number>
188          </property>
189          <item>
[17]190           <widget class="QTextEdit" name="textEdit">
191            <property name="sizePolicy">
192             <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
[1]193              <horstretch>0</horstretch>
194              <verstretch>0</verstretch>
195             </sizepolicy>
196            </property>
[17]197            <property name="statusTip">
[27]198             <string>Solution steps</string>
[7]199            </property>
[17]200            <property name="readOnly">
[1]201             <bool>true</bool>
202            </property>
203           </widget>
204          </item>
205          <item>
[17]206           <widget class="QGraphicsView" name="graphicsView">
207            <property name="statusTip">
[27]208             <string>Solution graph</string>
[7]209            </property>
210           </widget>
[1]211          </item>
212         </layout>
213        </item>
214       </layout>
215      </widget>
216     </widget>
217    </item>
218   </layout>
219  </widget>
[17]220  <widget class="QMenuBar" name="menubar">
221   <property name="geometry">
[1]222    <rect>
223     <x>0</x>
224     <y>0</y>
[7]225     <width>640</width>
[17]226     <height>22</height>
[1]227    </rect>
228   </property>
[17]229   <widget class="QMenu" name="menuFile">
230    <property name="windowIcon">
231     <iconset>
232      <normaloff/>
233     </iconset>
[1]234    </property>
[17]235    <property name="title">
[27]236     <string>&amp;File</string>
[1]237    </property>
[17]238    <widget class="QMenu" name="menuFileSave">
239     <property name="title">
[27]240      <string>&amp;Save</string>
[1]241     </property>
[17]242     <property name="icon">
243      <iconset resource="../resources/tspsg.qrc">
244       <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset>
[1]245     </property>
[17]246     <addaction name="actionFileSaveTask"/>
247     <addaction name="separator"/>
[29]248     <addaction name="actionFileSaveSolutionAll"/>
249     <addaction name="actionFileSaveSolutionMatrices"/>
250     <addaction name="actionFileSaveSolutionGraph"/>
[1]251    </widget>
[17]252    <addaction name="actionFileNew"/>
253    <addaction name="actionFileOpen"/>
254    <addaction name="menuFileSave"/>
255    <addaction name="separator"/>
256    <addaction name="actionFilePrintSetup"/>
257    <addaction name="actionFilePrint"/>
258    <addaction name="separator"/>
259    <addaction name="actionFileExit"/>
[1]260   </widget>
[17]261   <widget class="QMenu" name="menuSettings">
262    <property name="title">
[27]263     <string>&amp;Settings</string>
[1]264    </property>
[29]265    <widget class="QMenu" name="menuSettingsLanguage">
266     <property name="toolTip">
267      <string>Select language</string>
268     </property>
269     <property name="statusTip">
270      <string>Select application language</string>
271     </property>
272     <property name="title">
273      <string extracomment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
274     </property>
[30]275     <property name="icon">
276      <iconset resource="../resources/tspsg.qrc">
277       <normaloff>:/images/buttons/buttons/Web.png</normaloff>:/images/buttons/buttons/Web.png</iconset>
278     </property>
[29]279     <addaction name="actionSettingsLanguageAutodetect"/>
[30]280     <addaction name="separator"/>
281     <addaction name="actionSettingsLanguageEnglish"/>
[29]282    </widget>
283    <addaction name="menuSettingsLanguage"/>
284    <addaction name="separator"/>
285    <addaction name="actionSettingsPreferences"/>
[1]286   </widget>
[17]287   <widget class="QMenu" name="menuHelp">
288    <property name="title">
[27]289     <string>&amp;Help</string>
[1]290    </property>
[17]291    <addaction name="actionHelpContents"/>
292    <addaction name="actionHelpContextual"/>
293    <addaction name="separator"/>
294    <addaction name="actionHelpAbout"/>
[1]295   </widget>
[17]296   <addaction name="menuFile"/>
297   <addaction name="menuSettings"/>
298   <addaction name="menuHelp"/>
[1]299  </widget>
[17]300  <widget class="QStatusBar" name="statusbar"/>
301  <widget class="QToolBar" name="toolBar">
302   <property name="cursor">
[1]303    <cursorShape>ArrowCursor</cursorShape>
304   </property>
[17]305   <property name="iconSize">
[1]306    <size>
307     <width>17</width>
308     <height>18</height>
309    </size>
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"/>
319   <addaction name="actionFileSaveTask"/>
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">
329     <normaloff>:/images/buttons/buttons/PrintSetup.png</normaloff>:/images/buttons/buttons/PrintSetup.png</iconset>
[1]330   </property>
[17]331   <property name="text">
[27]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">
344     <normaloff>:/images/buttons/buttons/Print.png</normaloff>:/images/buttons/buttons/Print.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">
[27]361    <string>Solution st&amp;eps</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">
[27]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">
401     <normaloff>:/images/buttons/buttons/Document.png</normaloff>:/images/buttons/buttons/Document.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">
[27]420   <property name="enabled">
421    <bool>false</bool>
422   </property>
[17]423   <property name="icon">
424    <iconset resource="../resources/tspsg.qrc">
425     <normaloff>:/images/buttons/buttons/OpenFolder.png</normaloff>:/images/buttons/buttons/OpenFolder.png</iconset>
[1]426   </property>
[17]427   <property name="text">
[27]428    <string>&amp;Open...</string>
[1]429   </property>
[27]430   <property name="iconText">
431    <string>Open...</string>
432   </property>
[17]433   <property name="toolTip">
[27]434    <string>Open task</string>
[7]435   </property>
[17]436   <property name="statusTip">
[27]437    <string>Open saved task</string>
[7]438   </property>
[17]439   <property name="shortcut">
[1]440    <string>Ctrl+O</string>
441   </property>
442  </action>
[29]443  <action name="actionSettingsPreferences">
[17]444   <property name="icon">
445    <iconset resource="../resources/tspsg.qrc">
446     <normaloff>:/images/buttons/buttons/Properties.png</normaloff>:/images/buttons/buttons/Properties.png</iconset>
[1]447   </property>
[17]448   <property name="text">
[27]449    <string>&amp;Preferences...</string>
[1]450   </property>
[27]451   <property name="iconText">
452    <string>Preferences...</string>
453   </property>
[17]454   <property name="statusTip">
[27]455    <string>Application preferences</string>
[7]456   </property>
[1]457  </action>
[17]458  <action name="actionHelpContents">
[27]459   <property name="enabled">
460    <bool>false</bool>
461   </property>
[17]462   <property name="icon">
463    <iconset resource="../resources/tspsg.qrc">
464     <normaloff>:/images/buttons/buttons/book_open.png</normaloff>:/images/buttons/buttons/book_open.png</iconset>
[1]465   </property>
[17]466   <property name="text">
[27]467    <string>&amp;Contents</string>
[1]468   </property>
[17]469   <property name="statusTip">
[27]470    <string>Open help contents</string>
[7]471   </property>
[1]472  </action>
[17]473  <action name="actionHelpContextual">
[27]474   <property name="enabled">
475    <bool>false</bool>
476   </property>
[17]477   <property name="icon">
478    <iconset resource="../resources/tspsg.qrc">
479     <normaloff>:/images/buttons/buttons/Help.png</normaloff>:/images/buttons/buttons/Help.png</iconset>
[1]480   </property>
[17]481   <property name="text">
[27]482    <string>&amp;Context help</string>
[1]483   </property>
[17]484   <property name="statusTip">
[27]485    <string>Open context help</string>
[7]486   </property>
[1]487  </action>
[17]488  <action name="actionHelpAbout">
489   <property name="icon">
490    <iconset resource="../resources/tspsg.qrc">
491     <normaloff>:/images/buttons/buttons/infoBubble.png</normaloff>:/images/buttons/buttons/infoBubble.png</iconset>
[1]492   </property>
[17]493   <property name="text">
[27]494    <string>&amp;About...</string>
[1]495   </property>
[27]496   <property name="iconText">
497    <string>About...</string>
498   </property>
[17]499   <property name="statusTip">
[27]500    <string>About application</string>
[11]501   </property>
[1]502  </action>
[17]503  <action name="actionFileExit">
504   <property name="icon">
505    <iconset resource="../resources/tspsg.qrc">
506     <normaloff>:/images/buttons/buttons/NoAction.png</normaloff>:/images/buttons/buttons/NoAction.png</iconset>
[1]507   </property>
[17]508   <property name="text">
[27]509    <string>E&amp;xit</string>
[1]510   </property>
[17]511   <property name="statusTip">
[27]512    <string>Exit application</string>
[1]513   </property>
514  </action>
[17]515  <action name="actionFileSaveTask">
[27]516   <property name="enabled">
517    <bool>false</bool>
518   </property>
[17]519   <property name="icon">
520    <iconset resource="../resources/tspsg.qrc">
521     <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset>
[7]522   </property>
[17]523   <property name="text">
[27]524    <string>&amp;Task...</string>
[7]525   </property>
[17]526   <property name="iconText">
[27]527    <string>Task...</string>
[7]528   </property>
[17]529   <property name="toolTip">
[27]530    <string>Save task</string>
[7]531   </property>
[17]532   <property name="statusTip">
[27]533    <string>Save task to file</string>
[7]534   </property>
[17]535   <property name="shortcut">
[7]536    <string>Ctrl+S</string>
537   </property>
538  </action>
[29]539  <action name="actionSettingsLanguageAutodetect">
540   <property name="checkable">
541    <bool>true</bool>
542   </property>
543   <property name="checked">
544    <bool>true</bool>
545   </property>
546   <property name="text">
547    <string>&amp;Autodetect</string>
548   </property>
549   <property name="toolTip">
550    <string>Detect language automatically</string>
551   </property>
552   <property name="statusTip">
553    <string>Detect language automatically based on regional settings</string>
554   </property>
555  </action>
[30]556  <action name="actionSettingsLanguageEnglish">
557   <property name="checkable">
558    <bool>true</bool>
559   </property>
560   <property name="checked">
561    <bool>true</bool>
562   </property>
563   <property name="text">
564    <string notr="true">English</string>
565   </property>
566  </action>
[1]567 </widget>
568 <resources>
[17]569  <include location="../resources/tspsg.qrc"/>
[1]570 </resources>
571 <connections>
572  <connection>
573   <sender>actionFileExit</sender>
574   <signal>triggered()</signal>
575   <receiver>MainWindow</receiver>
576   <slot>close()</slot>
577   <hints>
[17]578    <hint type="sourcelabel">
[1]579     <x>-1</x>
580     <y>-1</y>
581    </hint>
[17]582    <hint type="destinationlabel">
[1]583     <x>294</x>
584     <y>229</y>
585    </hint>
586   </hints>
587  </connection>
588 </connections>
589</ui>
Note: See TracBrowser for help on using the repository browser.