source: tspsg-svn/trunk/ui/mainwindow.ce.ui @ 47

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

+ Current file name is displayed in main application window header.

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