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