source: tspsg/ui/mainwindow.ui @ 11086c2def

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

+ Some Windows Vista and Windows 7 eyecandy with translucent windows thanks to http://labs.trolltech.com/blogs/2009/09/15/using-blur-behind-on-windows/ :-)

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