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

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

Implemented printing of solution results (not supported under wince).

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