source: tspsg/ui/mainwindow.ui @ 56dca709c9

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

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

  • Property mode set to 100644
File size: 20.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <class>MainWindow</class>
4 <widget class="QMainWindow" name="MainWindow">
5  <property name="geometry">
6   <rect>
7    <x>0</x>
8    <y>0</y>
9    <width>502</width>
10    <height>407</height>
11   </rect>
12  </property>
13  <property name="windowTitle">
14   <string>Travelling Salesman Problem</string>
15  </property>
16  <property name="windowIcon">
17   <iconset>
18    <normaloff>:/images/icon.png</normaloff>:/images/icon.png</iconset>
19  </property>
20  <widget class="QWidget" name="centralwidget">
21   <widget class="QTabWidget" name="tabWidget">
22    <property name="geometry">
23     <rect>
24      <x>0</x>
25      <y>0</y>
26      <width>287</width>
27      <height>298</height>
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">
46        <item>
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>
58        </item>
59        <item>
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>
74          <property name="statusTip">
75           <string>Number of variant</string>
76          </property>
77          <property name="minimum">
78           <number>1</number>
79          </property>
80         </widget>
81        </item>
82        <item>
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>
91        </item>
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>
121       </layout>
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">
135        <item>
136         <spacer>
137          <property name="orientation">
138           <enum>Qt::Horizontal</enum>
139          </property>
140          <property name="sizeHint" stdset="0">
141           <size>
142            <width>40</width>
143            <height>20</height>
144           </size>
145          </property>
146         </spacer>
147        </item>
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>
182       </layout>
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>
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>
261     </layout>
262    </widget>
263   </widget>
264  </widget>
265  <widget class="QMenuBar" name="menubar">
266   <property name="geometry">
267    <rect>
268     <x>0</x>
269     <y>0</y>
270     <width>502</width>
271     <height>22</height>
272    </rect>
273   </property>
274   <widget class="QMenu" name="menuFile">
275    <property name="windowIcon">
276     <iconset>
277      <normaloff/>
278     </iconset>
279    </property>
280    <property name="title">
281     <string>&amp;File</string>
282    </property>
283    <widget class="QMenu" name="menuFileSaveAs">
284     <property name="title">
285      <string>Save &amp;As</string>
286     </property>
287     <property name="icon">
288      <iconset resource="../resources/tspsg.qrc">
289       <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
290     </property>
291     <addaction name="actionFileSaveAsTask"/>
292     <addaction name="actionFileSaveAsSolution"/>
293    </widget>
294    <addaction name="actionFileNew"/>
295    <addaction name="actionFileOpen"/>
296    <addaction name="actionFileSave"/>
297    <addaction name="menuFileSaveAs"/>
298    <addaction name="separator"/>
299    <addaction name="actionFilePrintPreview"/>
300    <addaction name="actionFilePrint"/>
301    <addaction name="separator"/>
302    <addaction name="actionFileExit"/>
303   </widget>
304   <widget class="QMenu" name="menuSettings">
305    <property name="title">
306     <string>&amp;Settings</string>
307    </property>
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">
316      <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
317     </property>
318     <property name="icon">
319      <iconset resource="../resources/tspsg.qrc">
320       <normaloff>:/images/icons/locale.png</normaloff>:/images/icons/locale.png</iconset>
321     </property>
322     <addaction name="actionSettingsLanguageAutodetect"/>
323     <addaction name="separator"/>
324     <addaction name="actionSettingsLanguageEnglish"/>
325    </widget>
326    <addaction name="menuSettingsLanguage"/>
327    <addaction name="separator"/>
328    <addaction name="actionSettingsPreferences"/>
329   </widget>
330   <widget class="QMenu" name="menuHelp">
331    <property name="title">
332     <string>&amp;Help</string>
333    </property>
334    <addaction name="actionHelpContents"/>
335    <addaction name="actionHelpContextual"/>
336    <addaction name="separator"/>
337    <addaction name="actionHelpAboutQt"/>
338    <addaction name="actionHelpAbout"/>
339   </widget>
340   <addaction name="menuFile"/>
341   <addaction name="menuSettings"/>
342   <addaction name="menuHelp"/>
343  </widget>
344  <widget class="QStatusBar" name="statusbar"/>
345  <widget class="QToolBar" name="toolBar">
346   <property name="cursor">
347    <cursorShape>ArrowCursor</cursorShape>
348   </property>
349   <attribute name="toolBarArea">
350    <enum>TopToolBarArea</enum>
351   </attribute>
352   <attribute name="toolBarBreak">
353    <bool>false</bool>
354   </attribute>
355   <addaction name="actionFileNew"/>
356   <addaction name="actionFileOpen"/>
357   <addaction name="actionFileSave"/>
358   <addaction name="separator"/>
359   <addaction name="actionFilePrint"/>
360   <addaction name="actionSettingsPreferences"/>
361   <addaction name="separator"/>
362   <addaction name="actionFileExit"/>
363  </widget>
364  <action name="actionFilePrintPreview">
365   <property name="enabled">
366    <bool>false</bool>
367   </property>
368   <property name="icon">
369    <iconset resource="../resources/tspsg.qrc">
370     <normaloff>:/images/icons/document_preview.png</normaloff>:/images/icons/document_preview.png</iconset>
371   </property>
372   <property name="text">
373    <string>P&amp;rint Preview...</string>
374   </property>
375   <property name="iconText">
376    <string>Print Preview...</string>
377   </property>
378   <property name="toolTip">
379    <string>Preview solution results</string>
380   </property>
381   <property name="statusTip">
382    <string>Preview current solution results before printing</string>
383   </property>
384  </action>
385  <action name="actionFilePrint">
386   <property name="enabled">
387    <bool>false</bool>
388   </property>
389   <property name="icon">
390    <iconset resource="../resources/tspsg.qrc">
391     <normaloff>:/images/icons/fileprint.png</normaloff>:/images/icons/fileprint.png</iconset>
392   </property>
393   <property name="text">
394    <string>&amp;Print...</string>
395   </property>
396   <property name="iconText">
397    <string>Print...</string>
398   </property>
399   <property name="toolTip">
400    <string>Print solution</string>
401   </property>
402   <property name="statusTip">
403    <string>Print current solution results</string>
404   </property>
405   <property name="shortcut">
406    <string>Ctrl+P</string>
407   </property>
408  </action>
409  <action name="actionFileSaveSolutionMatrices">
410   <property name="enabled">
411    <bool>false</bool>
412   </property>
413   <property name="text">
414    <string>Solution S&amp;teps</string>
415   </property>
416   <property name="toolTip">
417    <string>Save solution steps</string>
418   </property>
419   <property name="statusTip">
420    <string>Save solution steps only</string>
421   </property>
422  </action>
423  <action name="actionFileSaveSolutionGraph">
424   <property name="enabled">
425    <bool>false</bool>
426   </property>
427   <property name="text">
428    <string>Solution &amp;Graph</string>
429   </property>
430   <property name="toolTip">
431    <string>Save solution graph</string>
432   </property>
433   <property name="statusTip">
434    <string>Save solution graph only</string>
435   </property>
436  </action>
437  <action name="actionFileSaveAsSolution">
438   <property name="enabled">
439    <bool>false</bool>
440   </property>
441   <property name="text">
442    <string>&amp;Solution...</string>
443   </property>
444   <property name="iconText">
445    <string>Solution...</string>
446   </property>
447   <property name="toolTip">
448    <string>Save solution</string>
449   </property>
450   <property name="statusTip">
451    <string>Save solution to a file</string>
452   </property>
453  </action>
454  <action name="actionFileNew">
455   <property name="icon">
456    <iconset resource="../resources/tspsg.qrc">
457     <normaloff>:/images/icons/filenew.png</normaloff>:/images/icons/filenew.png</iconset>
458   </property>
459   <property name="text">
460    <string>&amp;New</string>
461   </property>
462   <property name="iconText">
463    <string>New</string>
464   </property>
465   <property name="toolTip">
466    <string>New task</string>
467   </property>
468   <property name="statusTip">
469    <string>Create new task</string>
470   </property>
471   <property name="shortcut">
472    <string>Ctrl+N</string>
473   </property>
474  </action>
475  <action name="actionFileOpen">
476   <property name="icon">
477    <iconset resource="../resources/tspsg.qrc">
478     <normaloff>:/images/icons/fileopen.png</normaloff>:/images/icons/fileopen.png</iconset>
479   </property>
480   <property name="text">
481    <string>&amp;Open...</string>
482   </property>
483   <property name="iconText">
484    <string>Open...</string>
485   </property>
486   <property name="toolTip">
487    <string>Open task</string>
488   </property>
489   <property name="statusTip">
490    <string>Open saved task</string>
491   </property>
492   <property name="shortcut">
493    <string>Ctrl+O</string>
494   </property>
495  </action>
496  <action name="actionSettingsPreferences">
497   <property name="icon">
498    <iconset resource="../resources/tspsg.qrc">
499     <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
500   </property>
501   <property name="text">
502    <string>&amp;Preferences...</string>
503   </property>
504   <property name="iconText">
505    <string>Preferences...</string>
506   </property>
507   <property name="statusTip">
508    <string>Application preferences</string>
509   </property>
510  </action>
511  <action name="actionHelpContents">
512   <property name="enabled">
513    <bool>false</bool>
514   </property>
515   <property name="icon">
516    <iconset resource="../resources/tspsg.qrc">
517     <normaloff>:/images/icons/contents.png</normaloff>:/images/icons/contents.png</iconset>
518   </property>
519   <property name="text">
520    <string>&amp;Contents</string>
521   </property>
522   <property name="statusTip">
523    <string>Open help contents</string>
524   </property>
525   <property name="shortcut">
526    <string>Ctrl+F1</string>
527   </property>
528  </action>
529  <action name="actionHelpContextual">
530   <property name="enabled">
531    <bool>false</bool>
532   </property>
533   <property name="icon">
534    <iconset resource="../resources/tspsg.qrc">
535     <normaloff>:/images/icons/help_browser.png</normaloff>:/images/icons/help_browser.png</iconset>
536   </property>
537   <property name="text">
538    <string>Context &amp;Help</string>
539   </property>
540   <property name="statusTip">
541    <string>Open context help</string>
542   </property>
543   <property name="shortcut">
544    <string>F1</string>
545   </property>
546  </action>
547  <action name="actionHelpAbout">
548   <property name="icon">
549    <iconset resource="../resources/tspsg.qrc">
550     <normaloff>:/images/icons/help_about.png</normaloff>:/images/icons/help_about.png</iconset>
551   </property>
552   <property name="text">
553    <string>&amp;About...</string>
554   </property>
555   <property name="iconText">
556    <string>About...</string>
557   </property>
558   <property name="statusTip">
559    <string>About application</string>
560   </property>
561  </action>
562  <action name="actionFileExit">
563   <property name="icon">
564    <iconset resource="../resources/tspsg.qrc">
565     <normaloff>:/images/icons/exit.png</normaloff>:/images/icons/exit.png</iconset>
566   </property>
567   <property name="text">
568    <string>E&amp;xit</string>
569   </property>
570   <property name="statusTip">
571    <string>Exit application</string>
572   </property>
573  </action>
574  <action name="actionFileSaveAsTask">
575   <property name="text">
576    <string>&amp;Task...</string>
577   </property>
578   <property name="iconText">
579    <string>Task...</string>
580   </property>
581   <property name="toolTip">
582    <string>Save task</string>
583   </property>
584   <property name="statusTip">
585    <string>Save task to file</string>
586   </property>
587  </action>
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>
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">
613    <string notr="true">&amp;English</string>
614   </property>
615   <property name="iconText">
616    <string notr="true">English</string>
617   </property>
618  </action>
619  <action name="actionFileSave">
620   <property name="icon">
621    <iconset resource="../resources/tspsg.qrc">
622     <normaloff>:/images/icons/filesave.png</normaloff>:/images/icons/filesave.png</iconset>
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>
636   <property name="shortcut">
637    <string>Ctrl+S</string>
638   </property>
639  </action>
640  <action name="actionHelpAboutQt">
641   <property name="icon">
642    <iconset resource="../resources/tspsg.qrc">
643     <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
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>
655 </widget>
656 <resources>
657  <include location="../resources/tspsg.qrc"/>
658 </resources>
659 <connections>
660  <connection>
661   <sender>actionFileExit</sender>
662   <signal>triggered()</signal>
663   <receiver>MainWindow</receiver>
664   <slot>close()</slot>
665   <hints>
666    <hint type="sourcelabel">
667     <x>-1</x>
668     <y>-1</y>
669    </hint>
670    <hint type="destinationlabel">
671     <x>294</x>
672     <y>229</y>
673    </hint>
674   </hints>
675  </connection>
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>
692 </connections>
693</ui>
Note: See TracBrowser for help on using the repository browser.