source: tspsg/ui/mainwindow.ui @ f19df0a3e5

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

+ Added precompiled header (PCH) file: should decrease project build time.

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