source: tspsg/ui/mainwindow.ce.ui @ 690f6939a7

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

+ Task save prompt before creating or opening task and closing application if current task was modified.

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