source: tspsg/ui/mainwindow.ui @ 3cadf24d00

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 3cadf24d00 was 3cadf24d00, checked in by Oleksii Serdiuk, 14 years ago
  • Property mode set to 100644
File size: 15.1 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        </widget>
146       </item>
147       <item>
148        <widget class="QPushButton" name="buttonSolve">
149         <property name="cursor">
150          <cursorShape>PointingHandCursor</cursorShape>
151         </property>
152         <property name="statusTip">
153          <string>Solve current task</string>
154         </property>
155         <property name="text">
156          <string>Solve</string>
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="undoRedoEnabled">
178        <bool>false</bool>
179       </property>
180       <property name="readOnly">
181        <bool>true</bool>
182       </property>
183       <property name="textInteractionFlags">
184        <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
185       </property>
186      </widget>
187     </item>
188     <item>
189      <layout class="QHBoxLayout" name="_6">
190       <item>
191        <widget class="QPushButton" name="buttonSaveSolution">
192         <property name="enabled">
193          <bool>false</bool>
194         </property>
195         <property name="cursor">
196          <cursorShape>PointingHandCursor</cursorShape>
197         </property>
198         <property name="statusTip">
199          <string>Save solution to a file</string>
200         </property>
201         <property name="text">
202          <string>Save Solution</string>
203         </property>
204        </widget>
205       </item>
206       <item>
207        <spacer name="spacer_4">
208         <property name="orientation">
209          <enum>Qt::Horizontal</enum>
210         </property>
211         <property name="sizeHint" stdset="0">
212          <size>
213           <width>40</width>
214           <height>20</height>
215          </size>
216         </property>
217        </spacer>
218       </item>
219       <item>
220        <widget class="QPushButton" name="buttonBackToTask">
221         <property name="cursor">
222          <cursorShape>PointingHandCursor</cursorShape>
223         </property>
224         <property name="statusTip">
225          <string>Go back to Task tab</string>
226         </property>
227         <property name="text">
228          <string>Back to Task</string>
229         </property>
230        </widget>
231       </item>
232      </layout>
233     </item>
234    </layout>
235   </widget>
236  </widget>
237  <widget class="QMenuBar" name="menuMain">
238   <property name="geometry">
239    <rect>
240     <x>0</x>
241     <y>0</y>
242     <width>548</width>
243     <height>21</height>
244    </rect>
245   </property>
246   <widget class="QMenu" name="menuFile">
247    <property name="windowIcon">
248     <iconset>
249      <normaloff/>
250     </iconset>
251    </property>
252    <property name="title">
253     <string>&amp;File</string>
254    </property>
255    <widget class="QMenu" name="menuFileSaveAs">
256     <property name="title">
257      <string>Save &amp;As</string>
258     </property>
259     <addaction name="actionFileSaveAsTask"/>
260     <addaction name="actionFileSaveAsSolution"/>
261    </widget>
262    <addaction name="actionFileNew"/>
263    <addaction name="actionFileOpen"/>
264    <addaction name="actionFileSave"/>
265    <addaction name="menuFileSaveAs"/>
266    <addaction name="separator"/>
267    <addaction name="actionFileExit"/>
268   </widget>
269   <widget class="QMenu" name="menuSettings">
270    <property name="title">
271     <string>&amp;Settings</string>
272    </property>
273    <widget class="QMenu" name="menuSettingsLanguage">
274     <property name="title">
275      <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
276     </property>
277     <addaction name="actionSettingsLanguageAutodetect"/>
278     <addaction name="separator"/>
279     <addaction name="actionSettingsLanguageEnglish"/>
280    </widget>
281    <widget class="QMenu" name="menuSettingsStyle">
282     <property name="title">
283      <string>Style</string>
284     </property>
285    </widget>
286    <widget class="QMenu" name="menuSettingsToolbars">
287     <property name="title">
288      <string>Toolbars</string>
289     </property>
290    </widget>
291    <addaction name="menuSettingsLanguage"/>
292    <addaction name="menuSettingsStyle"/>
293    <addaction name="menuSettingsToolbars"/>
294    <addaction name="separator"/>
295    <addaction name="actionSettingsPreferences"/>
296   </widget>
297   <widget class="QMenu" name="menuHelp">
298    <property name="title">
299     <string>&amp;Help</string>
300    </property>
301    <addaction name="actionHelpContents"/>
302    <addaction name="actionHelpContextual"/>
303    <addaction name="separator"/>
304    <addaction name="actionHelpAboutQt"/>
305    <addaction name="actionHelpAbout"/>
306   </widget>
307   <addaction name="menuFile"/>
308   <addaction name="menuSettings"/>
309   <addaction name="menuHelp"/>
310  </widget>
311  <widget class="QToolBar" name="toolBarMain">
312   <property name="cursor">
313    <cursorShape>ArrowCursor</cursorShape>
314   </property>
315   <property name="windowTitle">
316    <string>Main Toolbar</string>
317   </property>
318   <attribute name="toolBarArea">
319    <enum>TopToolBarArea</enum>
320   </attribute>
321   <attribute name="toolBarBreak">
322    <bool>false</bool>
323   </attribute>
324   <addaction name="actionFileNew"/>
325   <addaction name="actionFileOpen"/>
326   <addaction name="actionFileSave"/>
327   <addaction name="separator"/>
328   <addaction name="actionSettingsPreferences"/>
329   <addaction name="separator"/>
330   <addaction name="actionFileExit"/>
331  </widget>
332  <action name="actionFileSaveAsSolution">
333   <property name="enabled">
334    <bool>false</bool>
335   </property>
336   <property name="text">
337    <string>&amp;Solution...</string>
338   </property>
339   <property name="toolTip">
340    <string>Save solution</string>
341   </property>
342   <property name="statusTip">
343    <string>Save solution to a file</string>
344   </property>
345  </action>
346  <action name="actionFileNew">
347   <property name="text">
348    <string>&amp;New</string>
349   </property>
350   <property name="toolTip">
351    <string>New task</string>
352   </property>
353   <property name="statusTip">
354    <string>Create new task</string>
355   </property>
356   <property name="shortcut">
357    <string>Ctrl+N</string>
358   </property>
359  </action>
360  <action name="actionFileOpen">
361   <property name="text">
362    <string>&amp;Open...</string>
363   </property>
364   <property name="toolTip">
365    <string>Open task</string>
366   </property>
367   <property name="statusTip">
368    <string>Open saved task</string>
369   </property>
370   <property name="shortcut">
371    <string>Ctrl+O</string>
372   </property>
373  </action>
374  <action name="actionSettingsPreferences">
375   <property name="text">
376    <string>&amp;Preferences...</string>
377   </property>
378   <property name="statusTip">
379    <string>Application preferences</string>
380   </property>
381  </action>
382  <action name="actionHelpContents">
383   <property name="enabled">
384    <bool>false</bool>
385   </property>
386   <property name="text">
387    <string>&amp;Contents</string>
388   </property>
389   <property name="statusTip">
390    <string>Open help contents</string>
391   </property>
392   <property name="shortcut">
393    <string>Ctrl+F1</string>
394   </property>
395  </action>
396  <action name="actionHelpContextual">
397   <property name="enabled">
398    <bool>false</bool>
399   </property>
400   <property name="text">
401    <string>Context &amp;Help</string>
402   </property>
403   <property name="statusTip">
404    <string>Open context help</string>
405   </property>
406   <property name="shortcut">
407    <string>F1</string>
408   </property>
409  </action>
410  <action name="actionHelpAbout">
411   <property name="text">
412    <string>&amp;About TSPSG...</string>
413   </property>
414   <property name="statusTip">
415    <string>About application</string>
416   </property>
417  </action>
418  <action name="actionFileExit">
419   <property name="text">
420    <string>E&amp;xit</string>
421   </property>
422   <property name="statusTip">
423    <string>Exit application</string>
424   </property>
425  </action>
426  <action name="actionFileSaveAsTask">
427   <property name="text">
428    <string>&amp;Task...</string>
429   </property>
430   <property name="toolTip">
431    <string>Save task</string>
432   </property>
433   <property name="statusTip">
434    <string>Save task to file</string>
435   </property>
436  </action>
437  <action name="actionSettingsLanguageAutodetect">
438   <property name="checkable">
439    <bool>true</bool>
440   </property>
441   <property name="checked">
442    <bool>true</bool>
443   </property>
444   <property name="text">
445    <string>&amp;Autodetect</string>
446   </property>
447   <property name="toolTip">
448    <string>Detect language automatically</string>
449   </property>
450   <property name="statusTip">
451    <string>Detect language automatically based on regional settings</string>
452   </property>
453  </action>
454  <action name="actionSettingsLanguageEnglish">
455   <property name="checkable">
456    <bool>true</bool>
457   </property>
458   <property name="checked">
459    <bool>true</bool>
460   </property>
461   <property name="text">
462    <string notr="true">&amp;English</string>
463   </property>
464   <property name="iconText">
465    <string notr="true">English</string>
466   </property>
467   <property name="statusTip">
468    <string notr="true">Set application language to English</string>
469   </property>
470  </action>
471  <action name="actionFileSave">
472   <property name="text">
473    <string>&amp;Save</string>
474   </property>
475   <property name="toolTip">
476    <string>Save task</string>
477   </property>
478   <property name="statusTip">
479    <string>Save current task</string>
480   </property>
481   <property name="shortcut">
482    <string>Ctrl+S</string>
483   </property>
484  </action>
485  <action name="actionHelpAboutQt">
486   <property name="icon">
487    <iconset resource="../resources/tspsg.qrc">
488     <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
489   </property>
490   <property name="text">
491    <string>About &amp;Qt...</string>
492   </property>
493   <property name="statusTip">
494    <string>About Qt library</string>
495   </property>
496   <property name="menuRole">
497    <enum>QAction::AboutQtRole</enum>
498   </property>
499  </action>
500  <action name="actionSettingsStyleSystem">
501   <property name="checkable">
502    <bool>true</bool>
503   </property>
504   <property name="checked">
505    <bool>true</bool>
506   </property>
507   <property name="text">
508    <string>System Default</string>
509   </property>
510   <property name="statusTip">
511    <string>Automatically choose the most appropriate style</string>
512   </property>
513  </action>
514 </widget>
515 <resources>
516  <include location="../resources/tspsg.qrc"/>
517 </resources>
518 <connections>
519  <connection>
520   <sender>actionFileExit</sender>
521   <signal>triggered()</signal>
522   <receiver>MainWindow</receiver>
523   <slot>close()</slot>
524   <hints>
525    <hint type="sourcelabel">
526     <x>-1</x>
527     <y>-1</y>
528    </hint>
529    <hint type="destinationlabel">
530     <x>294</x>
531     <y>229</y>
532    </hint>
533   </hints>
534  </connection>
535  <connection>
536   <sender>buttonSaveSolution</sender>
537   <signal>clicked()</signal>
538   <receiver>actionFileSaveAsSolution</receiver>
539   <slot>trigger()</slot>
540   <hints>
541    <hint type="sourcelabel">
542     <x>58</x>
543     <y>327</y>
544    </hint>
545    <hint type="destinationlabel">
546     <x>-1</x>
547     <y>-1</y>
548    </hint>
549   </hints>
550  </connection>
551 </connections>
552</ui>
Note: See TracBrowser for help on using the repository browser.