source: tspsg/ui/mainwindow.ui @ ac4cb71650

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

English language should always be in language menu.

  • Property mode set to 100644
File size: 17.6 KB
RevLine 
[5354a01311]1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
[5515c2c2a7]3 <class>MainWindow</class>
[5354a01311]4 <widget class="QMainWindow" name="MainWindow">
5  <property name="geometry">
[5515c2c2a7]6   <rect>
7    <x>0</x>
8    <y>0</y>
[7177744fc7]9    <width>640</width>
10    <height>480</height>
[5515c2c2a7]11   </rect>
12  </property>
[5354a01311]13  <property name="windowTitle">
[5587b87fac]14   <string>Travelling salesman problem</string>
[5515c2c2a7]15  </property>
[5354a01311]16  <property name="windowIcon">
17   <iconset resource="../resources/tspsg.qrc">
18    <normaloff>:/images/Icon.png</normaloff>:/images/Icon.png</iconset>
[5515c2c2a7]19  </property>
[5354a01311]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">
[5515c2c2a7]26        <horstretch>0</horstretch>
27        <verstretch>0</verstretch>
28       </sizepolicy>
29      </property>
[5354a01311]30      <property name="currentIndex">
[5515c2c2a7]31       <number>0</number>
32      </property>
[5354a01311]33      <widget class="QWidget" name="tabTask">
34       <attribute name="title">
[5587b87fac]35        <string>Task</string>
[5515c2c2a7]36       </attribute>
[5354a01311]37       <layout class="QVBoxLayout">
[5515c2c2a7]38        <item>
[5354a01311]39         <layout class="QHBoxLayout">
[5515c2c2a7]40          <item>
41           <spacer>
[5354a01311]42            <property name="orientation">
[5515c2c2a7]43             <enum>Qt::Horizontal</enum>
44            </property>
[5354a01311]45            <property name="sizeHint" stdset="0">
[5515c2c2a7]46             <size>
47              <width>40</width>
48              <height>20</height>
49             </size>
50            </property>
51           </spacer>
52          </item>
53          <item>
[5354a01311]54           <widget class="QLabel" name="labelVariant">
55            <property name="text">
[5587b87fac]56             <string>&amp;Variant:</string>
[5515c2c2a7]57            </property>
[5354a01311]58            <property name="buddy">
[5515c2c2a7]59             <cstring>spinVariant</cstring>
60            </property>
61           </widget>
62          </item>
63          <item>
[5354a01311]64           <widget class="QSpinBox" name="spinVariant">
65            <property name="cursor">
[5515c2c2a7]66             <cursorShape>PointingHandCursor</cursorShape>
67            </property>
[5354a01311]68            <property name="statusTip">
[5587b87fac]69             <string>Number of variant</string>
[7177744fc7]70            </property>
[5354a01311]71            <property name="minimum">
[5515c2c2a7]72             <number>1</number>
73            </property>
74           </widget>
75          </item>
76          <item>
[5354a01311]77           <widget class="QLabel" name="labelCities">
78            <property name="text">
[5587b87fac]79             <string>&amp;Cities:</string>
[5515c2c2a7]80            </property>
[5354a01311]81            <property name="buddy">
[5515c2c2a7]82             <cstring>spinCities</cstring>
83            </property>
84           </widget>
85          </item>
86          <item>
[5354a01311]87           <widget class="QSpinBox" name="spinCities">
88            <property name="cursor">
[5515c2c2a7]89             <cursorShape>PointingHandCursor</cursorShape>
90            </property>
[5354a01311]91            <property name="statusTip">
[5587b87fac]92             <string>Number of cities</string>
[7177744fc7]93            </property>
[5354a01311]94            <property name="minimum">
[5515c2c2a7]95             <number>3</number>
96            </property>
[5354a01311]97            <property name="maximum">
[003e4193be]98             <number>5</number>
99            </property>
[5354a01311]100            <property name="value">
[003e4193be]101             <number>5</number>
102            </property>
[5515c2c2a7]103           </widget>
104          </item>
105          <item>
106           <spacer>
[5354a01311]107            <property name="orientation">
[5515c2c2a7]108             <enum>Qt::Horizontal</enum>
109            </property>
[5354a01311]110            <property name="sizeHint" stdset="0">
[5515c2c2a7]111             <size>
112              <width>40</width>
113              <height>20</height>
114             </size>
115            </property>
116           </spacer>
117          </item>
118         </layout>
119        </item>
120        <item>
[5354a01311]121         <widget class="QTableView" name="taskView">
122          <property name="statusTip">
[5587b87fac]123           <string>Cost of travel from city to city</string>
[7177744fc7]124          </property>
[5354a01311]125          <property name="selectionMode">
[003e4193be]126           <enum>QAbstractItemView::NoSelection</enum>
127          </property>
128         </widget>
[5515c2c2a7]129        </item>
130        <item>
[5354a01311]131         <layout class="QHBoxLayout">
[5515c2c2a7]132          <item>
133           <spacer>
[5354a01311]134            <property name="orientation">
[5515c2c2a7]135             <enum>Qt::Horizontal</enum>
136            </property>
[5354a01311]137            <property name="sizeHint" stdset="0">
[5515c2c2a7]138             <size>
139              <width>40</width>
140              <height>20</height>
141             </size>
142            </property>
143           </spacer>
144          </item>
145          <item>
[5354a01311]146           <widget class="QPushButton" name="buttonRandom">
147            <property name="cursor">
[5515c2c2a7]148             <cursorShape>PointingHandCursor</cursorShape>
149            </property>
[5354a01311]150            <property name="statusTip">
[5587b87fac]151             <string>Fill table with random numbers</string>
[5515c2c2a7]152            </property>
[5354a01311]153            <property name="text">
[5587b87fac]154             <string>Random</string>
[5515c2c2a7]155            </property>
156           </widget>
157          </item>
158          <item>
[5354a01311]159           <widget class="QPushButton" name="buttonSolve">
160            <property name="cursor">
[5515c2c2a7]161             <cursorShape>PointingHandCursor</cursorShape>
162            </property>
[5354a01311]163            <property name="statusTip">
[5587b87fac]164             <string>Solve current task</string>
[5515c2c2a7]165            </property>
[5354a01311]166            <property name="text">
[5587b87fac]167             <string>Solve</string>
[5515c2c2a7]168            </property>
[5354a01311]169            <property name="icon">
170             <iconset resource="../resources/tspsg.qrc">
171              <normaloff>:/images/buttons/buttons/OK.png</normaloff>:/images/buttons/buttons/OK.png</iconset>
[5515c2c2a7]172            </property>
173           </widget>
174          </item>
175         </layout>
176        </item>
177       </layout>
178      </widget>
[5354a01311]179      <widget class="QWidget" name="tabSolution">
180       <attribute name="title">
[5587b87fac]181        <string>Solution</string>
[5515c2c2a7]182       </attribute>
[5354a01311]183       <layout class="QVBoxLayout">
[5515c2c2a7]184        <item>
[5354a01311]185         <layout class="QHBoxLayout">
186          <property name="spacing">
[5515c2c2a7]187           <number>0</number>
188          </property>
189          <item>
[5354a01311]190           <widget class="QTextEdit" name="textEdit">
191            <property name="sizePolicy">
192             <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
[5515c2c2a7]193              <horstretch>0</horstretch>
194              <verstretch>0</verstretch>
195             </sizepolicy>
196            </property>
[5354a01311]197            <property name="statusTip">
[5587b87fac]198             <string>Solution steps</string>
[7177744fc7]199            </property>
[5354a01311]200            <property name="readOnly">
[5515c2c2a7]201             <bool>true</bool>
202            </property>
203           </widget>
204          </item>
205          <item>
[5354a01311]206           <widget class="QGraphicsView" name="graphicsView">
207            <property name="statusTip">
[5587b87fac]208             <string>Solution graph</string>
[7177744fc7]209            </property>
210           </widget>
[5515c2c2a7]211          </item>
212         </layout>
213        </item>
214       </layout>
215      </widget>
216     </widget>
217    </item>
218   </layout>
219  </widget>
[5354a01311]220  <widget class="QMenuBar" name="menubar">
221   <property name="geometry">
[5515c2c2a7]222    <rect>
223     <x>0</x>
224     <y>0</y>
[7177744fc7]225     <width>640</width>
[5354a01311]226     <height>22</height>
[5515c2c2a7]227    </rect>
228   </property>
[5354a01311]229   <widget class="QMenu" name="menuFile">
230    <property name="windowIcon">
231     <iconset>
232      <normaloff/>
233     </iconset>
[5515c2c2a7]234    </property>
[5354a01311]235    <property name="title">
[5587b87fac]236     <string>&amp;File</string>
[5515c2c2a7]237    </property>
[5354a01311]238    <widget class="QMenu" name="menuFileSave">
239     <property name="title">
[5587b87fac]240      <string>&amp;Save</string>
[5515c2c2a7]241     </property>
[5354a01311]242     <property name="icon">
243      <iconset resource="../resources/tspsg.qrc">
244       <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset>
[5515c2c2a7]245     </property>
[5354a01311]246     <addaction name="actionFileSaveTask"/>
247     <addaction name="separator"/>
[899d1b8e15]248     <addaction name="actionFileSaveSolutionAll"/>
249     <addaction name="actionFileSaveSolutionMatrices"/>
250     <addaction name="actionFileSaveSolutionGraph"/>
[5515c2c2a7]251    </widget>
[5354a01311]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"/>
[5515c2c2a7]260   </widget>
[5354a01311]261   <widget class="QMenu" name="menuSettings">
262    <property name="title">
[5587b87fac]263     <string>&amp;Settings</string>
[5515c2c2a7]264    </property>
[899d1b8e15]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>
[ac4cb71650]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>
[899d1b8e15]279     <addaction name="actionSettingsLanguageAutodetect"/>
[ac4cb71650]280     <addaction name="separator"/>
281     <addaction name="actionSettingsLanguageEnglish"/>
[899d1b8e15]282    </widget>
283    <addaction name="menuSettingsLanguage"/>
284    <addaction name="separator"/>
285    <addaction name="actionSettingsPreferences"/>
[5515c2c2a7]286   </widget>
[5354a01311]287   <widget class="QMenu" name="menuHelp">
288    <property name="title">
[5587b87fac]289     <string>&amp;Help</string>
[5515c2c2a7]290    </property>
[5354a01311]291    <addaction name="actionHelpContents"/>
292    <addaction name="actionHelpContextual"/>
293    <addaction name="separator"/>
294    <addaction name="actionHelpAbout"/>
[5515c2c2a7]295   </widget>
[5354a01311]296   <addaction name="menuFile"/>
297   <addaction name="menuSettings"/>
298   <addaction name="menuHelp"/>
[5515c2c2a7]299  </widget>
[5354a01311]300  <widget class="QStatusBar" name="statusbar"/>
301  <widget class="QToolBar" name="toolBar">
302   <property name="cursor">
[5515c2c2a7]303    <cursorShape>ArrowCursor</cursorShape>
304   </property>
[5354a01311]305   <property name="iconSize">
[5515c2c2a7]306    <size>
307     <width>17</width>
308     <height>18</height>
309    </size>
310   </property>
[5354a01311]311   <attribute name="toolBarArea">
[5515c2c2a7]312    <enum>TopToolBarArea</enum>
313   </attribute>
[5354a01311]314   <attribute name="toolBarBreak">
[5515c2c2a7]315    <bool>false</bool>
316   </attribute>
[5354a01311]317   <addaction name="actionFileNew"/>
318   <addaction name="actionFileOpen"/>
319   <addaction name="actionFileSaveTask"/>
320   <addaction name="separator"/>
321   <addaction name="actionFilePrint"/>
[899d1b8e15]322   <addaction name="actionSettingsPreferences"/>
[5354a01311]323   <addaction name="separator"/>
324   <addaction name="actionFileExit"/>
[5515c2c2a7]325  </widget>
[5354a01311]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>
[5515c2c2a7]330   </property>
[5354a01311]331   <property name="text">
[5587b87fac]332    <string>P&amp;rint setup...</string>
[5515c2c2a7]333   </property>
[5354a01311]334   <property name="statusTip">
[5587b87fac]335    <string>Setup printing</string>
[7177744fc7]336   </property>
[5515c2c2a7]337  </action>
[5354a01311]338  <action name="actionFilePrint">
339   <property name="enabled">
[7177744fc7]340    <bool>false</bool>
341   </property>
[5354a01311]342   <property name="icon">
343    <iconset resource="../resources/tspsg.qrc">
344     <normaloff>:/images/buttons/buttons/Print.png</normaloff>:/images/buttons/buttons/Print.png</iconset>
[5515c2c2a7]345   </property>
[5354a01311]346   <property name="text">
[5587b87fac]347    <string>&amp;Print...</string>
[5515c2c2a7]348   </property>
[5354a01311]349   <property name="statusTip">
[5587b87fac]350    <string>Print solution results</string>
[7177744fc7]351   </property>
[5354a01311]352   <property name="shortcut">
[5515c2c2a7]353    <string>Ctrl+P</string>
354   </property>
355  </action>
[899d1b8e15]356  <action name="actionFileSaveSolutionMatrices">
[5354a01311]357   <property name="enabled">
[7177744fc7]358    <bool>false</bool>
359   </property>
[5354a01311]360   <property name="text">
[5587b87fac]361    <string>Solution st&amp;eps</string>
362   </property>
363   <property name="toolTip">
364    <string>Save solution steps</string>
[5515c2c2a7]365   </property>
[5354a01311]366   <property name="statusTip">
[5587b87fac]367    <string>Save solution steps only</string>
[7177744fc7]368   </property>
[5515c2c2a7]369  </action>
[899d1b8e15]370  <action name="actionFileSaveSolutionGraph">
[5354a01311]371   <property name="enabled">
[7177744fc7]372    <bool>false</bool>
373   </property>
[5354a01311]374   <property name="text">
[5587b87fac]375    <string>Solution &amp;graph</string>
376   </property>
377   <property name="toolTip">
378    <string>Save solution graph</string>
[5515c2c2a7]379   </property>
[5354a01311]380   <property name="statusTip">
[5587b87fac]381    <string>Save solution graph only</string>
[7177744fc7]382   </property>
[5515c2c2a7]383  </action>
[899d1b8e15]384  <action name="actionFileSaveSolutionAll">
[5354a01311]385   <property name="enabled">
[7177744fc7]386    <bool>false</bool>
[5515c2c2a7]387   </property>
[5354a01311]388   <property name="text">
[5587b87fac]389    <string>&amp;Solution</string>
390   </property>
391   <property name="toolTip">
392    <string>Save solution</string>
[7177744fc7]393   </property>
[5354a01311]394   <property name="statusTip">
[5587b87fac]395    <string>Save solution steps and graph</string>
[5515c2c2a7]396   </property>
397  </action>
[5354a01311]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>
[5515c2c2a7]402   </property>
[5354a01311]403   <property name="text">
[5587b87fac]404    <string>&amp;New</string>
405   </property>
406   <property name="iconText">
407    <string>New</string>
408   </property>
409   <property name="toolTip">
410    <string>New task</string>
[5515c2c2a7]411   </property>
[5354a01311]412   <property name="statusTip">
[5587b87fac]413    <string>Create new task</string>
[7177744fc7]414   </property>
[5354a01311]415   <property name="shortcut">
[5515c2c2a7]416    <string>Ctrl+N</string>
417   </property>
418  </action>
[5354a01311]419  <action name="actionFileOpen">
[5587b87fac]420   <property name="enabled">
421    <bool>false</bool>
422   </property>
[5354a01311]423   <property name="icon">
424    <iconset resource="../resources/tspsg.qrc">
425     <normaloff>:/images/buttons/buttons/OpenFolder.png</normaloff>:/images/buttons/buttons/OpenFolder.png</iconset>
[5515c2c2a7]426   </property>
[5354a01311]427   <property name="text">
[5587b87fac]428    <string>&amp;Open...</string>
429   </property>
430   <property name="iconText">
431    <string>Open...</string>
[5515c2c2a7]432   </property>
[5354a01311]433   <property name="toolTip">
[5587b87fac]434    <string>Open task</string>
[7177744fc7]435   </property>
[5354a01311]436   <property name="statusTip">
[5587b87fac]437    <string>Open saved task</string>
[7177744fc7]438   </property>
[5354a01311]439   <property name="shortcut">
[5515c2c2a7]440    <string>Ctrl+O</string>
441   </property>
442  </action>
[899d1b8e15]443  <action name="actionSettingsPreferences">
[5354a01311]444   <property name="icon">
445    <iconset resource="../resources/tspsg.qrc">
446     <normaloff>:/images/buttons/buttons/Properties.png</normaloff>:/images/buttons/buttons/Properties.png</iconset>
[5515c2c2a7]447   </property>
[5354a01311]448   <property name="text">
[5587b87fac]449    <string>&amp;Preferences...</string>
450   </property>
451   <property name="iconText">
452    <string>Preferences...</string>
[5515c2c2a7]453   </property>
[5354a01311]454   <property name="statusTip">
[5587b87fac]455    <string>Application preferences</string>
[7177744fc7]456   </property>
[5515c2c2a7]457  </action>
[5354a01311]458  <action name="actionHelpContents">
[5587b87fac]459   <property name="enabled">
460    <bool>false</bool>
461   </property>
[5354a01311]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>
[5515c2c2a7]465   </property>
[5354a01311]466   <property name="text">
[5587b87fac]467    <string>&amp;Contents</string>
[5515c2c2a7]468   </property>
[5354a01311]469   <property name="statusTip">
[5587b87fac]470    <string>Open help contents</string>
[7177744fc7]471   </property>
[5515c2c2a7]472  </action>
[5354a01311]473  <action name="actionHelpContextual">
[5587b87fac]474   <property name="enabled">
475    <bool>false</bool>
476   </property>
[5354a01311]477   <property name="icon">
478    <iconset resource="../resources/tspsg.qrc">
479     <normaloff>:/images/buttons/buttons/Help.png</normaloff>:/images/buttons/buttons/Help.png</iconset>
[5515c2c2a7]480   </property>
[5354a01311]481   <property name="text">
[5587b87fac]482    <string>&amp;Context help</string>
[5515c2c2a7]483   </property>
[5354a01311]484   <property name="statusTip">
[5587b87fac]485    <string>Open context help</string>
[7177744fc7]486   </property>
[5515c2c2a7]487  </action>
[5354a01311]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>
[5515c2c2a7]492   </property>
[5354a01311]493   <property name="text">
[5587b87fac]494    <string>&amp;About...</string>
495   </property>
496   <property name="iconText">
497    <string>About...</string>
[5515c2c2a7]498   </property>
[5354a01311]499   <property name="statusTip">
[5587b87fac]500    <string>About application</string>
[fc9f661ded]501   </property>
[5515c2c2a7]502  </action>
[5354a01311]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>
[5515c2c2a7]507   </property>
[5354a01311]508   <property name="text">
[5587b87fac]509    <string>E&amp;xit</string>
[5515c2c2a7]510   </property>
[5354a01311]511   <property name="statusTip">
[5587b87fac]512    <string>Exit application</string>
[5515c2c2a7]513   </property>
514  </action>
[5354a01311]515  <action name="actionFileSaveTask">
[5587b87fac]516   <property name="enabled">
517    <bool>false</bool>
518   </property>
[5354a01311]519   <property name="icon">
520    <iconset resource="../resources/tspsg.qrc">
521     <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset>
[7177744fc7]522   </property>
[5354a01311]523   <property name="text">
[5587b87fac]524    <string>&amp;Task...</string>
[7177744fc7]525   </property>
[5354a01311]526   <property name="iconText">
[5587b87fac]527    <string>Task...</string>
[7177744fc7]528   </property>
[5354a01311]529   <property name="toolTip">
[5587b87fac]530    <string>Save task</string>
[7177744fc7]531   </property>
[5354a01311]532   <property name="statusTip">
[5587b87fac]533    <string>Save task to file</string>
[7177744fc7]534   </property>
[5354a01311]535   <property name="shortcut">
[7177744fc7]536    <string>Ctrl+S</string>
537   </property>
538  </action>
[899d1b8e15]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>
[ac4cb71650]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>
[5515c2c2a7]567 </widget>
568 <resources>
[5354a01311]569  <include location="../resources/tspsg.qrc"/>
[5515c2c2a7]570 </resources>
571 <connections>
572  <connection>
573   <sender>actionFileExit</sender>
574   <signal>triggered()</signal>
575   <receiver>MainWindow</receiver>
576   <slot>close()</slot>
577   <hints>
[5354a01311]578    <hint type="sourcelabel">
[5515c2c2a7]579     <x>-1</x>
580     <y>-1</y>
581    </hint>
[5354a01311]582    <hint type="destinationlabel">
[5515c2c2a7]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.