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