source: tspsg/ui/mainwindow.ui @ 94cd045fad

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

+ Started adding a toolbar customization with the ude of QtToolbarDialog? (http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qttoolbardialog/).

  • Property mode set to 100644
File size: 18.3 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="geometry">
7   <rect>
8    <x>0</x>
9    <y>0</y>
10    <width>548</width>
11    <height>448</height>
12   </rect>
13  </property>
14  <property name="windowTitle">
15   <string/>
16  </property>
17  <property name="windowIcon">
18   <iconset resource="../resources/tspsg.qrc">
19    <normaloff>:/images/tspsg.png</normaloff>:/images/tspsg.png</iconset>
20  </property>
21  <widget class="QTabWidget" name="tabWidget">
22   <property name="tabPosition">
23    <enum>QTabWidget::North</enum>
24   </property>
25   <widget class="QWidget" name="tabTask">
26    <attribute name="title">
27     <string>Task</string>
28    </attribute>
29    <layout class="QVBoxLayout" name="_2">
30     <item>
31      <layout class="QHBoxLayout" name="_4">
32       <item>
33        <spacer name="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 name="spacer_2">
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" name="_5">
121       <item>
122        <spacer name="spacer_3">
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/dialog-ok.png</normaloff>:/images/icons/dialog-ok.png</iconset>
165         </property>
166        </widget>
167       </item>
168      </layout>
169     </item>
170    </layout>
171   </widget>
172   <widget class="QWidget" name="tabSolution">
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="undoRedoEnabled">
186        <bool>false</bool>
187       </property>
188       <property name="readOnly">
189        <bool>true</bool>
190       </property>
191       <property name="textInteractionFlags">
192        <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
193       </property>
194      </widget>
195     </item>
196     <item>
197      <layout class="QHBoxLayout" name="_6">
198       <item>
199        <widget class="QPushButton" name="buttonSaveSolution">
200         <property name="enabled">
201          <bool>false</bool>
202         </property>
203         <property name="cursor">
204          <cursorShape>PointingHandCursor</cursorShape>
205         </property>
206         <property name="statusTip">
207          <string>Save solution to a file</string>
208         </property>
209         <property name="text">
210          <string>Save Solution</string>
211         </property>
212         <property name="icon">
213          <iconset resource="../resources/tspsg.qrc">
214           <normaloff>:/images/icons/document-save-as.png</normaloff>:/images/icons/document-save-as.png</iconset>
215         </property>
216        </widget>
217       </item>
218       <item>
219        <spacer name="spacer_4">
220         <property name="orientation">
221          <enum>Qt::Horizontal</enum>
222         </property>
223         <property name="sizeHint" stdset="0">
224          <size>
225           <width>40</width>
226           <height>20</height>
227          </size>
228         </property>
229        </spacer>
230       </item>
231       <item>
232        <widget class="QPushButton" name="buttonBackToTask">
233         <property name="cursor">
234          <cursorShape>PointingHandCursor</cursorShape>
235         </property>
236         <property name="statusTip">
237          <string>Go back to Task tab</string>
238         </property>
239         <property name="text">
240          <string>Back to Task</string>
241         </property>
242         <property name="icon">
243          <iconset resource="../resources/tspsg.qrc">
244           <normaloff>:/images/icons/go-previous.png</normaloff>:/images/icons/go-previous.png</iconset>
245         </property>
246        </widget>
247       </item>
248      </layout>
249     </item>
250    </layout>
251   </widget>
252  </widget>
253  <widget class="QMenuBar" name="menubar">
254   <property name="geometry">
255    <rect>
256     <x>0</x>
257     <y>0</y>
258     <width>548</width>
259     <height>21</height>
260    </rect>
261   </property>
262   <widget class="QMenu" name="menuFile">
263    <property name="windowIcon">
264     <iconset>
265      <normaloff/>
266     </iconset>
267    </property>
268    <property name="title">
269     <string>&amp;File</string>
270    </property>
271    <widget class="QMenu" name="menuFileSaveAs">
272     <property name="title">
273      <string>Save &amp;As</string>
274     </property>
275     <property name="icon">
276      <iconset resource="../resources/tspsg.qrc">
277       <normaloff>:/images/icons/document-save-as.png</normaloff>:/images/icons/document-save-as.png</iconset>
278     </property>
279     <addaction name="actionFileSaveAsTask"/>
280     <addaction name="actionFileSaveAsSolution"/>
281    </widget>
282    <addaction name="actionFileNew"/>
283    <addaction name="actionFileOpen"/>
284    <addaction name="actionFileSave"/>
285    <addaction name="menuFileSaveAs"/>
286    <addaction name="separator"/>
287    <addaction name="actionFileExit"/>
288   </widget>
289   <widget class="QMenu" name="menuSettings">
290    <property name="title">
291     <string>&amp;Settings</string>
292    </property>
293    <widget class="QMenu" name="menuSettingsLanguage">
294     <property name="toolTip">
295      <string>Select language</string>
296     </property>
297     <property name="statusTip">
298      <string>Select application language</string>
299     </property>
300     <property name="title">
301      <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
302     </property>
303     <property name="icon">
304      <iconset resource="../resources/tspsg.qrc">
305       <normaloff>:/images/icons/preferences-desktop-locale.png</normaloff>:/images/icons/preferences-desktop-locale.png</iconset>
306     </property>
307     <addaction name="actionSettingsLanguageAutodetect"/>
308     <addaction name="separator"/>
309     <addaction name="actionSettingsLanguageEnglish"/>
310    </widget>
311    <widget class="QMenu" name="menuSettingsStyle">
312     <property name="title">
313      <string>Style</string>
314     </property>
315     <property name="icon">
316      <iconset resource="../resources/tspsg.qrc">
317       <normaloff>:/images/icons/preferences-desktop-theme.png</normaloff>:/images/icons/preferences-desktop-theme.png</iconset>
318     </property>
319    </widget>
320    <addaction name="menuSettingsLanguage"/>
321    <addaction name="menuSettingsStyle"/>
322    <addaction name="actionSettingsToolbars"/>
323    <addaction name="separator"/>
324    <addaction name="actionSettingsPreferences"/>
325   </widget>
326   <widget class="QMenu" name="menuHelp">
327    <property name="title">
328     <string>&amp;Help</string>
329    </property>
330    <addaction name="actionHelpContents"/>
331    <addaction name="actionHelpContextual"/>
332    <addaction name="separator"/>
333    <addaction name="actionHelpAboutQt"/>
334    <addaction name="actionHelpAbout"/>
335   </widget>
336   <addaction name="menuFile"/>
337   <addaction name="menuSettings"/>
338   <addaction name="menuHelp"/>
339  </widget>
340  <widget class="QToolBar" name="toolBar">
341   <property name="cursor">
342    <cursorShape>ArrowCursor</cursorShape>
343   </property>
344   <property name="windowTitle">
345    <string>Toolbar</string>
346   </property>
347   <attribute name="toolBarArea">
348    <enum>TopToolBarArea</enum>
349   </attribute>
350   <attribute name="toolBarBreak">
351    <bool>false</bool>
352   </attribute>
353   <addaction name="actionFileNew"/>
354   <addaction name="actionFileOpen"/>
355   <addaction name="actionFileSave"/>
356   <addaction name="separator"/>
357   <addaction name="actionSettingsPreferences"/>
358   <addaction name="separator"/>
359   <addaction name="actionFileExit"/>
360  </widget>
361  <action name="actionFileSaveAsSolution">
362   <property name="enabled">
363    <bool>false</bool>
364   </property>
365   <property name="text">
366    <string>&amp;Solution...</string>
367   </property>
368   <property name="toolTip">
369    <string>Save solution</string>
370   </property>
371   <property name="statusTip">
372    <string>Save solution to a file</string>
373   </property>
374  </action>
375  <action name="actionFileNew">
376   <property name="icon">
377    <iconset resource="../resources/tspsg.qrc">
378     <normaloff>:/images/icons/document-new.png</normaloff>:/images/icons/document-new.png</iconset>
379   </property>
380   <property name="text">
381    <string>&amp;New</string>
382   </property>
383   <property name="toolTip">
384    <string>New task</string>
385   </property>
386   <property name="statusTip">
387    <string>Create new task</string>
388   </property>
389   <property name="shortcut">
390    <string>Ctrl+N</string>
391   </property>
392  </action>
393  <action name="actionFileOpen">
394   <property name="icon">
395    <iconset resource="../resources/tspsg.qrc">
396     <normaloff>:/images/icons/document-open.png</normaloff>:/images/icons/document-open.png</iconset>
397   </property>
398   <property name="text">
399    <string>&amp;Open...</string>
400   </property>
401   <property name="toolTip">
402    <string>Open task</string>
403   </property>
404   <property name="statusTip">
405    <string>Open saved task</string>
406   </property>
407   <property name="shortcut">
408    <string>Ctrl+O</string>
409   </property>
410  </action>
411  <action name="actionSettingsPreferences">
412   <property name="icon">
413    <iconset resource="../resources/tspsg.qrc">
414     <normaloff>:/images/icons/preferences-system.png</normaloff>:/images/icons/preferences-system.png</iconset>
415   </property>
416   <property name="text">
417    <string>&amp;Preferences...</string>
418   </property>
419   <property name="statusTip">
420    <string>Application preferences</string>
421   </property>
422  </action>
423  <action name="actionHelpContents">
424   <property name="enabled">
425    <bool>false</bool>
426   </property>
427   <property name="icon">
428    <iconset resource="../resources/tspsg.qrc">
429     <normaloff>:/images/icons/help-contents.png</normaloff>:/images/icons/help-contents.png</iconset>
430   </property>
431   <property name="text">
432    <string>&amp;Contents</string>
433   </property>
434   <property name="statusTip">
435    <string>Open help contents</string>
436   </property>
437   <property name="shortcut">
438    <string>Ctrl+F1</string>
439   </property>
440  </action>
441  <action name="actionHelpContextual">
442   <property name="enabled">
443    <bool>false</bool>
444   </property>
445   <property name="icon">
446    <iconset resource="../resources/tspsg.qrc">
447     <normaloff>:/images/icons/help-contextual.png</normaloff>:/images/icons/help-contextual.png</iconset>
448   </property>
449   <property name="text">
450    <string>Context &amp;Help</string>
451   </property>
452   <property name="statusTip">
453    <string>Open context help</string>
454   </property>
455   <property name="shortcut">
456    <string>F1</string>
457   </property>
458  </action>
459  <action name="actionHelpAbout">
460   <property name="icon">
461    <iconset resource="../resources/tspsg.qrc">
462     <normaloff>:/images/icons/help-about.png</normaloff>:/images/icons/help-about.png</iconset>
463   </property>
464   <property name="text">
465    <string>&amp;About TSPSG...</string>
466   </property>
467   <property name="statusTip">
468    <string>About application</string>
469   </property>
470  </action>
471  <action name="actionFileExit">
472   <property name="icon">
473    <iconset resource="../resources/tspsg.qrc">
474     <normaloff>:/images/icons/application-exit.png</normaloff>:/images/icons/application-exit.png</iconset>
475   </property>
476   <property name="text">
477    <string>E&amp;xit</string>
478   </property>
479   <property name="statusTip">
480    <string>Exit application</string>
481   </property>
482  </action>
483  <action name="actionFileSaveAsTask">
484   <property name="text">
485    <string>&amp;Task...</string>
486   </property>
487   <property name="toolTip">
488    <string>Save task</string>
489   </property>
490   <property name="statusTip">
491    <string>Save task to file</string>
492   </property>
493  </action>
494  <action name="actionSettingsLanguageAutodetect">
495   <property name="checkable">
496    <bool>true</bool>
497   </property>
498   <property name="checked">
499    <bool>true</bool>
500   </property>
501   <property name="text">
502    <string>&amp;Autodetect</string>
503   </property>
504   <property name="toolTip">
505    <string>Detect language automatically</string>
506   </property>
507   <property name="statusTip">
508    <string>Detect language automatically based on regional settings</string>
509   </property>
510  </action>
511  <action name="actionSettingsLanguageEnglish">
512   <property name="checkable">
513    <bool>true</bool>
514   </property>
515   <property name="checked">
516    <bool>true</bool>
517   </property>
518   <property name="text">
519    <string notr="true">&amp;English</string>
520   </property>
521   <property name="iconText">
522    <string notr="true">English</string>
523   </property>
524  </action>
525  <action name="actionFileSave">
526   <property name="icon">
527    <iconset resource="../resources/tspsg.qrc">
528     <normaloff>:/images/icons/document-save.png</normaloff>:/images/icons/document-save.png</iconset>
529   </property>
530   <property name="text">
531    <string>&amp;Save</string>
532   </property>
533   <property name="toolTip">
534    <string>Save task</string>
535   </property>
536   <property name="statusTip">
537    <string>Save current task</string>
538   </property>
539   <property name="shortcut">
540    <string>Ctrl+S</string>
541   </property>
542  </action>
543  <action name="actionHelpAboutQt">
544   <property name="icon">
545    <iconset resource="../resources/tspsg.qrc">
546     <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
547   </property>
548   <property name="text">
549    <string>About &amp;Qt...</string>
550   </property>
551   <property name="statusTip">
552    <string>About Qt library</string>
553   </property>
554  </action>
555  <action name="actionSettingsStyleSystem">
556   <property name="checkable">
557    <bool>true</bool>
558   </property>
559   <property name="checked">
560    <bool>true</bool>
561   </property>
562   <property name="text">
563    <string>System Default</string>
564   </property>
565   <property name="statusTip">
566    <string>Automatically choose the most appropriate style</string>
567   </property>
568  </action>
569  <action name="actionSettingsToolbars">
570   <property name="icon">
571    <iconset resource="../resources/tspsg.qrc">
572     <normaloff>:/images/icons/configure-toolbars.png</normaloff>:/images/icons/configure-toolbars.png</iconset>
573   </property>
574   <property name="text">
575    <string>Toolbars...</string>
576   </property>
577   <property name="statusTip">
578    <string>Customize toolbars</string>
579   </property>
580  </action>
581 </widget>
582 <resources>
583  <include location="../resources/tspsg.qrc"/>
584 </resources>
585 <connections>
586  <connection>
587   <sender>actionFileExit</sender>
588   <signal>triggered()</signal>
589   <receiver>MainWindow</receiver>
590   <slot>close()</slot>
591   <hints>
592    <hint type="sourcelabel">
593     <x>-1</x>
594     <y>-1</y>
595    </hint>
596    <hint type="destinationlabel">
597     <x>294</x>
598     <y>229</y>
599    </hint>
600   </hints>
601  </connection>
602  <connection>
603   <sender>buttonSaveSolution</sender>
604   <signal>clicked()</signal>
605   <receiver>actionFileSaveAsSolution</receiver>
606   <slot>trigger()</slot>
607   <hints>
608    <hint type="sourcelabel">
609     <x>58</x>
610     <y>327</y>
611    </hint>
612    <hint type="destinationlabel">
613     <x>-1</x>
614     <y>-1</y>
615    </hint>
616   </hints>
617  </connection>
618 </connections>
619</ui>
Note: See TracBrowser for help on using the repository browser.