source: tspsg/ui/mainwindow.ui @ 993d5af6f6

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

+ Opening task file
+ Saving task file

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