source: tspsg/ui/mainwindow.ui @ 8b0661d1ee

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 8b0661d1ee was 8b0661d1ee, checked in by Oleksii Serdiuk, 14 years ago
  • Improved the default font selection logic: The system default monospace (desktop systems)/sans-serif (handheld devices) font is now selected.
  • Two icons were mixed. Corrected this.
  • Property mode set to 100644
File size: 18.0 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="title">
295      <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
296     </property>
297     <property name="icon">
298      <iconset resource="../resources/tspsg.qrc">
299       <normaloff>:/images/icons/preferences-desktop-locale.png</normaloff>:/images/icons/preferences-desktop-locale.png</iconset>
300     </property>
301     <addaction name="actionSettingsLanguageAutodetect"/>
302     <addaction name="separator"/>
303     <addaction name="actionSettingsLanguageEnglish"/>
304    </widget>
305    <widget class="QMenu" name="menuSettingsStyle">
306     <property name="title">
307      <string>Style</string>
308     </property>
309     <property name="icon">
310      <iconset resource="../resources/tspsg.qrc">
311       <normaloff>:/images/icons/preferences-desktop-theme.png</normaloff>:/images/icons/preferences-desktop-theme.png</iconset>
312     </property>
313    </widget>
314    <widget class="QMenu" name="menuSettingsToolbars">
315     <property name="title">
316      <string>Toolbars</string>
317     </property>
318    </widget>
319    <addaction name="menuSettingsLanguage"/>
320    <addaction name="menuSettingsStyle"/>
321    <addaction name="menuSettingsToolbars"/>
322    <addaction name="separator"/>
323    <addaction name="actionSettingsPreferences"/>
324   </widget>
325   <widget class="QMenu" name="menuHelp">
326    <property name="title">
327     <string>&amp;Help</string>
328    </property>
329    <addaction name="actionHelpContents"/>
330    <addaction name="actionHelpContextual"/>
331    <addaction name="separator"/>
332    <addaction name="actionHelpAboutQt"/>
333    <addaction name="actionHelpAbout"/>
334   </widget>
335   <addaction name="menuFile"/>
336   <addaction name="menuSettings"/>
337   <addaction name="menuHelp"/>
338  </widget>
339  <widget class="QToolBar" name="toolBarMain">
340   <property name="cursor">
341    <cursorShape>ArrowCursor</cursorShape>
342   </property>
343   <property name="windowTitle">
344    <string>Main Toolbar</string>
345   </property>
346   <attribute name="toolBarArea">
347    <enum>TopToolBarArea</enum>
348   </attribute>
349   <attribute name="toolBarBreak">
350    <bool>false</bool>
351   </attribute>
352   <addaction name="actionFileNew"/>
353   <addaction name="actionFileOpen"/>
354   <addaction name="actionFileSave"/>
355   <addaction name="separator"/>
356   <addaction name="actionSettingsPreferences"/>
357   <addaction name="separator"/>
358   <addaction name="actionFileExit"/>
359  </widget>
360  <action name="actionFileSaveAsSolution">
361   <property name="enabled">
362    <bool>false</bool>
363   </property>
364   <property name="text">
365    <string>&amp;Solution...</string>
366   </property>
367   <property name="toolTip">
368    <string>Save solution</string>
369   </property>
370   <property name="statusTip">
371    <string>Save solution to a file</string>
372   </property>
373  </action>
374  <action name="actionFileNew">
375   <property name="icon">
376    <iconset resource="../resources/tspsg.qrc">
377     <normaloff>:/images/icons/document-new.png</normaloff>:/images/icons/document-new.png</iconset>
378   </property>
379   <property name="text">
380    <string>&amp;New</string>
381   </property>
382   <property name="toolTip">
383    <string>New task</string>
384   </property>
385   <property name="statusTip">
386    <string>Create new task</string>
387   </property>
388   <property name="shortcut">
389    <string>Ctrl+N</string>
390   </property>
391  </action>
392  <action name="actionFileOpen">
393   <property name="icon">
394    <iconset resource="../resources/tspsg.qrc">
395     <normaloff>:/images/icons/document-open.png</normaloff>:/images/icons/document-open.png</iconset>
396   </property>
397   <property name="text">
398    <string>&amp;Open...</string>
399   </property>
400   <property name="toolTip">
401    <string>Open task</string>
402   </property>
403   <property name="statusTip">
404    <string>Open saved task</string>
405   </property>
406   <property name="shortcut">
407    <string>Ctrl+O</string>
408   </property>
409  </action>
410  <action name="actionSettingsPreferences">
411   <property name="icon">
412    <iconset resource="../resources/tspsg.qrc">
413     <normaloff>:/images/icons/preferences-system.png</normaloff>:/images/icons/preferences-system.png</iconset>
414   </property>
415   <property name="text">
416    <string>&amp;Preferences...</string>
417   </property>
418   <property name="statusTip">
419    <string>Application preferences</string>
420   </property>
421  </action>
422  <action name="actionHelpContents">
423   <property name="enabled">
424    <bool>false</bool>
425   </property>
426   <property name="icon">
427    <iconset resource="../resources/tspsg.qrc">
428     <normaloff>:/images/icons/help-contents.png</normaloff>:/images/icons/help-contents.png</iconset>
429   </property>
430   <property name="text">
431    <string>&amp;Contents</string>
432   </property>
433   <property name="statusTip">
434    <string>Open help contents</string>
435   </property>
436   <property name="shortcut">
437    <string>Ctrl+F1</string>
438   </property>
439  </action>
440  <action name="actionHelpContextual">
441   <property name="enabled">
442    <bool>false</bool>
443   </property>
444   <property name="icon">
445    <iconset resource="../resources/tspsg.qrc">
446     <normaloff>:/images/icons/help-contextual.png</normaloff>:/images/icons/help-contextual.png</iconset>
447   </property>
448   <property name="text">
449    <string>Context &amp;Help</string>
450   </property>
451   <property name="statusTip">
452    <string>Open context help</string>
453   </property>
454   <property name="shortcut">
455    <string>F1</string>
456   </property>
457  </action>
458  <action name="actionHelpAbout">
459   <property name="icon">
460    <iconset resource="../resources/tspsg.qrc">
461     <normaloff>:/images/icons/help-about.png</normaloff>:/images/icons/help-about.png</iconset>
462   </property>
463   <property name="text">
464    <string>&amp;About TSPSG...</string>
465   </property>
466   <property name="statusTip">
467    <string>About application</string>
468   </property>
469  </action>
470  <action name="actionFileExit">
471   <property name="icon">
472    <iconset resource="../resources/tspsg.qrc">
473     <normaloff>:/images/icons/application-exit.png</normaloff>:/images/icons/application-exit.png</iconset>
474   </property>
475   <property name="text">
476    <string>E&amp;xit</string>
477   </property>
478   <property name="statusTip">
479    <string>Exit application</string>
480   </property>
481  </action>
482  <action name="actionFileSaveAsTask">
483   <property name="text">
484    <string>&amp;Task...</string>
485   </property>
486   <property name="toolTip">
487    <string>Save task</string>
488   </property>
489   <property name="statusTip">
490    <string>Save task to file</string>
491   </property>
492  </action>
493  <action name="actionSettingsLanguageAutodetect">
494   <property name="checkable">
495    <bool>true</bool>
496   </property>
497   <property name="checked">
498    <bool>true</bool>
499   </property>
500   <property name="text">
501    <string>&amp;Autodetect</string>
502   </property>
503   <property name="toolTip">
504    <string>Detect language automatically</string>
505   </property>
506   <property name="statusTip">
507    <string>Detect language automatically based on regional settings</string>
508   </property>
509  </action>
510  <action name="actionSettingsLanguageEnglish">
511   <property name="checkable">
512    <bool>true</bool>
513   </property>
514   <property name="checked">
515    <bool>true</bool>
516   </property>
517   <property name="text">
518    <string notr="true">&amp;English</string>
519   </property>
520   <property name="iconText">
521    <string notr="true">English</string>
522   </property>
523   <property name="statusTip">
524    <string notr="true">Set application language to English</string>
525   </property>
526  </action>
527  <action name="actionFileSave">
528   <property name="icon">
529    <iconset resource="../resources/tspsg.qrc">
530     <normaloff>:/images/icons/document-save.png</normaloff>:/images/icons/document-save.png</iconset>
531   </property>
532   <property name="text">
533    <string>&amp;Save</string>
534   </property>
535   <property name="toolTip">
536    <string>Save task</string>
537   </property>
538   <property name="statusTip">
539    <string>Save current task</string>
540   </property>
541   <property name="shortcut">
542    <string>Ctrl+S</string>
543   </property>
544  </action>
545  <action name="actionHelpAboutQt">
546   <property name="icon">
547    <iconset resource="../resources/tspsg.qrc">
548     <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
549   </property>
550   <property name="text">
551    <string>About &amp;Qt...</string>
552   </property>
553   <property name="statusTip">
554    <string>About Qt library</string>
555   </property>
556  </action>
557  <action name="actionSettingsStyleSystem">
558   <property name="checkable">
559    <bool>true</bool>
560   </property>
561   <property name="checked">
562    <bool>true</bool>
563   </property>
564   <property name="text">
565    <string>System Default</string>
566   </property>
567   <property name="statusTip">
568    <string>Automatically choose the most appropriate style</string>
569   </property>
570  </action>
571 </widget>
572 <resources>
573  <include location="../resources/tspsg.qrc"/>
574 </resources>
575 <connections>
576  <connection>
577   <sender>actionFileExit</sender>
578   <signal>triggered()</signal>
579   <receiver>MainWindow</receiver>
580   <slot>close()</slot>
581   <hints>
582    <hint type="sourcelabel">
583     <x>-1</x>
584     <y>-1</y>
585    </hint>
586    <hint type="destinationlabel">
587     <x>294</x>
588     <y>229</y>
589    </hint>
590   </hints>
591  </connection>
592  <connection>
593   <sender>buttonSaveSolution</sender>
594   <signal>clicked()</signal>
595   <receiver>actionFileSaveAsSolution</receiver>
596   <slot>trigger()</slot>
597   <hints>
598    <hint type="sourcelabel">
599     <x>58</x>
600     <y>327</y>
601    </hint>
602    <hint type="destinationlabel">
603     <x>-1</x>
604     <y>-1</y>
605    </hint>
606   </hints>
607  </connection>
608 </connections>
609</ui>
Note: See TracBrowser for help on using the repository browser.