source: tspsg/ui/mainwindow.ui @ 6b3d3c1bbb

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

English language in languages list should not be translatable.

  • Property mode set to 100644
File size: 17.7 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>491</width>
10    <height>400</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   <widget class="QTabWidget" name="tabWidget">
22    <property name="geometry">
23     <rect>
24      <x>0</x>
25      <y>0</y>
26      <width>481</width>
27      <height>311</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="maximum">
104           <number>5</number>
105          </property>
106          <property name="value">
107           <number>5</number>
108          </property>
109         </widget>
110        </item>
111        <item>
112         <spacer>
113          <property name="orientation">
114           <enum>Qt::Horizontal</enum>
115          </property>
116          <property name="sizeHint" stdset="0">
117           <size>
118            <width>40</width>
119            <height>20</height>
120           </size>
121          </property>
122         </spacer>
123        </item>
124       </layout>
125      </item>
126      <item>
127       <widget class="QTableView" name="taskView">
128        <property name="statusTip">
129         <string>Cost of travel from city to city</string>
130        </property>
131        <property name="selectionMode">
132         <enum>QAbstractItemView::NoSelection</enum>
133        </property>
134       </widget>
135      </item>
136      <item>
137       <layout class="QHBoxLayout">
138        <item>
139         <spacer>
140          <property name="orientation">
141           <enum>Qt::Horizontal</enum>
142          </property>
143          <property name="sizeHint" stdset="0">
144           <size>
145            <width>40</width>
146            <height>20</height>
147           </size>
148          </property>
149         </spacer>
150        </item>
151        <item>
152         <widget class="QPushButton" name="buttonRandom">
153          <property name="cursor">
154           <cursorShape>PointingHandCursor</cursorShape>
155          </property>
156          <property name="statusTip">
157           <string>Fill table with random numbers</string>
158          </property>
159          <property name="text">
160           <string>Random</string>
161          </property>
162          <property name="icon">
163           <iconset resource="../resources/tspsg.qrc">
164            <normaloff>:/images/icons/roll.png</normaloff>:/images/icons/roll.png</iconset>
165          </property>
166         </widget>
167        </item>
168        <item>
169         <widget class="QPushButton" name="buttonSolve">
170          <property name="cursor">
171           <cursorShape>PointingHandCursor</cursorShape>
172          </property>
173          <property name="statusTip">
174           <string>Solve current task</string>
175          </property>
176          <property name="text">
177           <string>Solve</string>
178          </property>
179          <property name="icon">
180           <iconset resource="../resources/tspsg.qrc">
181            <normaloff>:/images/icons/button_ok.png</normaloff>:/images/icons/button_ok.png</iconset>
182          </property>
183         </widget>
184        </item>
185       </layout>
186      </item>
187     </layout>
188    </widget>
189    <widget class="QWidget" name="tabSolution">
190     <attribute name="title">
191      <string>Solution</string>
192     </attribute>
193     <layout class="QVBoxLayout" name="verticalLayout">
194      <item>
195       <widget class="QTextEdit" name="solutionText">
196        <property name="enabled">
197         <bool>false</bool>
198        </property>
199        <property name="statusTip">
200         <string>Solution steps</string>
201        </property>
202        <property name="readOnly">
203         <bool>true</bool>
204        </property>
205        <property name="textInteractionFlags">
206         <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
207        </property>
208       </widget>
209      </item>
210     </layout>
211    </widget>
212   </widget>
213  </widget>
214  <widget class="QMenuBar" name="menubar">
215   <property name="geometry">
216    <rect>
217     <x>0</x>
218     <y>0</y>
219     <width>491</width>
220     <height>22</height>
221    </rect>
222   </property>
223   <widget class="QMenu" name="menuFile">
224    <property name="windowIcon">
225     <iconset>
226      <normaloff/>
227     </iconset>
228    </property>
229    <property name="title">
230     <string>&amp;File</string>
231    </property>
232    <widget class="QMenu" name="menuFileSaveAs">
233     <property name="title">
234      <string>Save &amp;As...</string>
235     </property>
236     <property name="icon">
237      <iconset resource="../resources/tspsg.qrc">
238       <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
239     </property>
240     <addaction name="actionFileSaveAsTask"/>
241     <addaction name="actionFileSaveAsSolution"/>
242    </widget>
243    <addaction name="actionFileNew"/>
244    <addaction name="actionFileOpen"/>
245    <addaction name="actionFileSave"/>
246    <addaction name="menuFileSaveAs"/>
247    <addaction name="separator"/>
248    <addaction name="actionFilePrintSetup"/>
249    <addaction name="actionFilePrint"/>
250    <addaction name="separator"/>
251    <addaction name="actionFileExit"/>
252   </widget>
253   <widget class="QMenu" name="menuSettings">
254    <property name="title">
255     <string>&amp;Settings</string>
256    </property>
257    <widget class="QMenu" name="menuSettingsLanguage">
258     <property name="toolTip">
259      <string>Select language</string>
260     </property>
261     <property name="statusTip">
262      <string>Select application language</string>
263     </property>
264     <property name="title">
265      <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
266     </property>
267     <property name="icon">
268      <iconset resource="../resources/tspsg.qrc">
269       <normaloff>:/images/icons/locale.png</normaloff>:/images/icons/locale.png</iconset>
270     </property>
271     <addaction name="actionSettingsLanguageAutodetect"/>
272     <addaction name="separator"/>
273     <addaction name="actionSettingsLanguageEnglish"/>
274    </widget>
275    <addaction name="menuSettingsLanguage"/>
276    <addaction name="separator"/>
277    <addaction name="actionSettingsPreferences"/>
278   </widget>
279   <widget class="QMenu" name="menuHelp">
280    <property name="title">
281     <string>&amp;Help</string>
282    </property>
283    <addaction name="actionHelpContents"/>
284    <addaction name="actionHelpContextual"/>
285    <addaction name="separator"/>
286    <addaction name="actionHelpAboutQt"/>
287    <addaction name="actionHelpAbout"/>
288   </widget>
289   <addaction name="menuFile"/>
290   <addaction name="menuSettings"/>
291   <addaction name="menuHelp"/>
292  </widget>
293  <widget class="QStatusBar" name="statusbar"/>
294  <widget class="QToolBar" name="toolBar">
295   <property name="cursor">
296    <cursorShape>ArrowCursor</cursorShape>
297   </property>
298   <attribute name="toolBarArea">
299    <enum>TopToolBarArea</enum>
300   </attribute>
301   <attribute name="toolBarBreak">
302    <bool>false</bool>
303   </attribute>
304   <addaction name="actionFileNew"/>
305   <addaction name="actionFileOpen"/>
306   <addaction name="actionFileSave"/>
307   <addaction name="separator"/>
308   <addaction name="actionFilePrint"/>
309   <addaction name="actionSettingsPreferences"/>
310   <addaction name="separator"/>
311   <addaction name="actionFileExit"/>
312  </widget>
313  <action name="actionFilePrintSetup">
314   <property name="enabled">
315    <bool>false</bool>
316   </property>
317   <property name="icon">
318    <iconset resource="../resources/tspsg.qrc">
319     <normaloff>:/images/icons/fileprint.png</normaloff>:/images/icons/fileprint.png</iconset>
320   </property>
321   <property name="text">
322    <string>P&amp;rint Setup...</string>
323   </property>
324   <property name="statusTip">
325    <string>Setup printing</string>
326   </property>
327  </action>
328  <action name="actionFilePrint">
329   <property name="enabled">
330    <bool>false</bool>
331   </property>
332   <property name="icon">
333    <iconset resource="../resources/tspsg.qrc">
334     <normaloff>:/images/icons/fileprint.png</normaloff>:/images/icons/fileprint.png</iconset>
335   </property>
336   <property name="text">
337    <string>&amp;Print...</string>
338   </property>
339   <property name="statusTip">
340    <string>Print solution results</string>
341   </property>
342   <property name="shortcut">
343    <string>Ctrl+P</string>
344   </property>
345  </action>
346  <action name="actionFileSaveSolutionMatrices">
347   <property name="enabled">
348    <bool>false</bool>
349   </property>
350   <property name="text">
351    <string>Solution S&amp;teps</string>
352   </property>
353   <property name="toolTip">
354    <string>Save solution steps</string>
355   </property>
356   <property name="statusTip">
357    <string>Save solution steps only</string>
358   </property>
359  </action>
360  <action name="actionFileSaveSolutionGraph">
361   <property name="enabled">
362    <bool>false</bool>
363   </property>
364   <property name="text">
365    <string>Solution &amp;Graph</string>
366   </property>
367   <property name="toolTip">
368    <string>Save solution graph</string>
369   </property>
370   <property name="statusTip">
371    <string>Save solution graph only</string>
372   </property>
373  </action>
374  <action name="actionFileSaveAsSolution">
375   <property name="enabled">
376    <bool>false</bool>
377   </property>
378   <property name="text">
379    <string>&amp;Solution...</string>
380   </property>
381   <property name="toolTip">
382    <string>Save solution</string>
383   </property>
384   <property name="statusTip">
385    <string>Save solution steps and graph</string>
386   </property>
387  </action>
388  <action name="actionFileNew">
389   <property name="icon">
390    <iconset resource="../resources/tspsg.qrc">
391     <normaloff>:/images/icons/filenew.png</normaloff>:/images/icons/filenew.png</iconset>
392   </property>
393   <property name="text">
394    <string>&amp;New</string>
395   </property>
396   <property name="iconText">
397    <string>New</string>
398   </property>
399   <property name="toolTip">
400    <string>New task</string>
401   </property>
402   <property name="statusTip">
403    <string>Create new task</string>
404   </property>
405   <property name="shortcut">
406    <string>Ctrl+N</string>
407   </property>
408  </action>
409  <action name="actionFileOpen">
410   <property name="icon">
411    <iconset resource="../resources/tspsg.qrc">
412     <normaloff>:/images/icons/fileopen.png</normaloff>:/images/icons/fileopen.png</iconset>
413   </property>
414   <property name="text">
415    <string>&amp;Open...</string>
416   </property>
417   <property name="iconText">
418    <string>Open...</string>
419   </property>
420   <property name="toolTip">
421    <string>Open task</string>
422   </property>
423   <property name="statusTip">
424    <string>Open saved task</string>
425   </property>
426   <property name="shortcut">
427    <string>Ctrl+O</string>
428   </property>
429  </action>
430  <action name="actionSettingsPreferences">
431   <property name="icon">
432    <iconset resource="../resources/tspsg.qrc">
433     <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
434   </property>
435   <property name="text">
436    <string>&amp;Preferences...</string>
437   </property>
438   <property name="iconText">
439    <string>Preferences...</string>
440   </property>
441   <property name="statusTip">
442    <string>Application preferences</string>
443   </property>
444  </action>
445  <action name="actionHelpContents">
446   <property name="enabled">
447    <bool>false</bool>
448   </property>
449   <property name="icon">
450    <iconset resource="../resources/tspsg.qrc">
451     <normaloff>:/images/icons/contents.png</normaloff>:/images/icons/contents.png</iconset>
452   </property>
453   <property name="text">
454    <string>&amp;Contents</string>
455   </property>
456   <property name="statusTip">
457    <string>Open help contents</string>
458   </property>
459  </action>
460  <action name="actionHelpContextual">
461   <property name="enabled">
462    <bool>false</bool>
463   </property>
464   <property name="icon">
465    <iconset resource="../resources/tspsg.qrc">
466     <normaloff>:/images/icons/help_browser.png</normaloff>:/images/icons/help_browser.png</iconset>
467   </property>
468   <property name="text">
469    <string>Context &amp;Help</string>
470   </property>
471   <property name="statusTip">
472    <string>Open context help</string>
473   </property>
474  </action>
475  <action name="actionHelpAbout">
476   <property name="icon">
477    <iconset resource="../resources/tspsg.qrc">
478     <normaloff>:/images/icons/help_about.png</normaloff>:/images/icons/help_about.png</iconset>
479   </property>
480   <property name="text">
481    <string>&amp;About...</string>
482   </property>
483   <property name="iconText">
484    <string>About...</string>
485   </property>
486   <property name="statusTip">
487    <string>About application</string>
488   </property>
489  </action>
490  <action name="actionFileExit">
491   <property name="icon">
492    <iconset resource="../resources/tspsg.qrc">
493     <normaloff>:/images/icons/exit.png</normaloff>:/images/icons/exit.png</iconset>
494   </property>
495   <property name="text">
496    <string>E&amp;xit</string>
497   </property>
498   <property name="statusTip">
499    <string>Exit application</string>
500   </property>
501  </action>
502  <action name="actionFileSaveAsTask">
503   <property name="text">
504    <string>&amp;Task...</string>
505   </property>
506   <property name="iconText">
507    <string>Task...</string>
508   </property>
509   <property name="toolTip">
510    <string>Save task</string>
511   </property>
512   <property name="statusTip">
513    <string>Save task to file</string>
514   </property>
515   <property name="shortcut">
516    <string>Ctrl+S</string>
517   </property>
518  </action>
519  <action name="actionSettingsLanguageAutodetect">
520   <property name="checkable">
521    <bool>true</bool>
522   </property>
523   <property name="checked">
524    <bool>true</bool>
525   </property>
526   <property name="text">
527    <string>&amp;Autodetect</string>
528   </property>
529   <property name="toolTip">
530    <string>Detect language automatically</string>
531   </property>
532   <property name="statusTip">
533    <string>Detect language automatically based on regional settings</string>
534   </property>
535  </action>
536  <action name="actionSettingsLanguageEnglish">
537   <property name="checkable">
538    <bool>true</bool>
539   </property>
540   <property name="checked">
541    <bool>true</bool>
542   </property>
543   <property name="text">
544    <string notr="true">English</string>
545   </property>
546   <property name="iconText">
547    <string notr="true">English</string>
548   </property>
549  </action>
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/icons/filesave.png</normaloff>:/images/icons/filesave.png</iconset>
557   </property>
558   <property name="text">
559    <string>&amp;Save</string>
560   </property>
561   <property name="iconText">
562    <string>Save</string>
563   </property>
564   <property name="toolTip">
565    <string>Save task</string>
566   </property>
567   <property name="statusTip">
568    <string>Save current task</string>
569   </property>
570  </action>
571  <action name="actionHelpAboutQt">
572   <property name="icon">
573    <iconset resource="../resources/tspsg.qrc">
574     <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
575   </property>
576   <property name="text">
577    <string>About &amp;Qt...</string>
578   </property>
579   <property name="iconText">
580    <string>About Qt...</string>
581   </property>
582   <property name="statusTip">
583    <string>About Qt library</string>
584   </property>
585  </action>
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>294</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.