source: tspsg/ui/mainwindow.ui @ f0464480db

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

+ CTSPSolver class now deletes all solution tree on cleanup and delete to avoid memory leaks.
+ List of alternate candidates for branching is now saved in every solution step and displayed on output.
+ New struct TCandidate that represents a candidate for branching.

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