1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <ui version="4.0"> |
---|
3 | <author>Lёppa: $Id: mainwindow.ui 142 2010-10-05 19:44:54Z 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="actionHelpOnlineSupport"/> |
---|
302 | <addaction name="actionHelpReportBug"/> |
---|
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>&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>&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>&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>&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>&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 &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>&About TSPSG...</string> |
---|
413 | </property> |
---|
414 | </action> |
---|
415 | <action name="actionFileExit"> |
---|
416 | <property name="text"> |
---|
417 | <string>E&xit</string> |
---|
418 | </property> |
---|
419 | </action> |
---|
420 | <action name="actionFileSaveAsTask"> |
---|
421 | <property name="text"> |
---|
422 | <string>&Task...</string> |
---|
423 | </property> |
---|
424 | <property name="toolTip"> |
---|
425 | <string>Save task</string> |
---|
426 | </property> |
---|
427 | <property name="statusTip"> |
---|
428 | <string>Save task to file</string> |
---|
429 | </property> |
---|
430 | </action> |
---|
431 | <action name="actionSettingsLanguageAutodetect"> |
---|
432 | <property name="checkable"> |
---|
433 | <bool>true</bool> |
---|
434 | </property> |
---|
435 | <property name="checked"> |
---|
436 | <bool>true</bool> |
---|
437 | </property> |
---|
438 | <property name="text"> |
---|
439 | <string>&Autodetect</string> |
---|
440 | </property> |
---|
441 | <property name="toolTip"> |
---|
442 | <string>Detect language automatically</string> |
---|
443 | </property> |
---|
444 | <property name="statusTip"> |
---|
445 | <string>Detect language automatically based on regional settings</string> |
---|
446 | </property> |
---|
447 | </action> |
---|
448 | <action name="actionSettingsLanguageEnglish"> |
---|
449 | <property name="checkable"> |
---|
450 | <bool>true</bool> |
---|
451 | </property> |
---|
452 | <property name="checked"> |
---|
453 | <bool>true</bool> |
---|
454 | </property> |
---|
455 | <property name="text"> |
---|
456 | <string notr="true">&English</string> |
---|
457 | </property> |
---|
458 | <property name="iconText"> |
---|
459 | <string notr="true">English</string> |
---|
460 | </property> |
---|
461 | <property name="statusTip"> |
---|
462 | <string notr="true">Set application language to English</string> |
---|
463 | </property> |
---|
464 | </action> |
---|
465 | <action name="actionFileSave"> |
---|
466 | <property name="text"> |
---|
467 | <string>&Save</string> |
---|
468 | </property> |
---|
469 | <property name="toolTip"> |
---|
470 | <string>Save task</string> |
---|
471 | </property> |
---|
472 | <property name="statusTip"> |
---|
473 | <string>Save current task</string> |
---|
474 | </property> |
---|
475 | <property name="shortcut"> |
---|
476 | <string>Ctrl+S</string> |
---|
477 | </property> |
---|
478 | </action> |
---|
479 | <action name="actionHelpAboutQt"> |
---|
480 | <property name="text"> |
---|
481 | <string>About &Qt...</string> |
---|
482 | </property> |
---|
483 | <property name="statusTip"> |
---|
484 | <string>About Qt library</string> |
---|
485 | </property> |
---|
486 | <property name="menuRole"> |
---|
487 | <enum>QAction::AboutQtRole</enum> |
---|
488 | </property> |
---|
489 | </action> |
---|
490 | <action name="actionSettingsStyleSystem"> |
---|
491 | <property name="checkable"> |
---|
492 | <bool>true</bool> |
---|
493 | </property> |
---|
494 | <property name="checked"> |
---|
495 | <bool>true</bool> |
---|
496 | </property> |
---|
497 | <property name="text"> |
---|
498 | <string>System Default</string> |
---|
499 | </property> |
---|
500 | <property name="statusTip"> |
---|
501 | <string>Automatically choose the most appropriate style</string> |
---|
502 | </property> |
---|
503 | </action> |
---|
504 | <action name="actionHelpOnlineSupport"> |
---|
505 | <property name="text"> |
---|
506 | <string>Online &Support...</string> |
---|
507 | </property> |
---|
508 | <property name="statusTip"> |
---|
509 | <string>Get support online</string> |
---|
510 | </property> |
---|
511 | </action> |
---|
512 | <action name="actionHelpReportBug"> |
---|
513 | <property name="text"> |
---|
514 | <string>Report a &Bug...</string> |
---|
515 | </property> |
---|
516 | </action> |
---|
517 | </widget> |
---|
518 | <resources> |
---|
519 | <include location="../resources/common.qrc"/> |
---|
520 | </resources> |
---|
521 | <connections> |
---|
522 | <connection> |
---|
523 | <sender>actionFileExit</sender> |
---|
524 | <signal>triggered()</signal> |
---|
525 | <receiver>MainWindow</receiver> |
---|
526 | <slot>close()</slot> |
---|
527 | <hints> |
---|
528 | <hint type="sourcelabel"> |
---|
529 | <x>-1</x> |
---|
530 | <y>-1</y> |
---|
531 | </hint> |
---|
532 | <hint type="destinationlabel"> |
---|
533 | <x>294</x> |
---|
534 | <y>229</y> |
---|
535 | </hint> |
---|
536 | </hints> |
---|
537 | </connection> |
---|
538 | <connection> |
---|
539 | <sender>buttonSaveSolution</sender> |
---|
540 | <signal>clicked()</signal> |
---|
541 | <receiver>actionFileSaveAsSolution</receiver> |
---|
542 | <slot>trigger()</slot> |
---|
543 | <hints> |
---|
544 | <hint type="sourcelabel"> |
---|
545 | <x>58</x> |
---|
546 | <y>327</y> |
---|
547 | </hint> |
---|
548 | <hint type="destinationlabel"> |
---|
549 | <x>-1</x> |
---|
550 | <y>-1</y> |
---|
551 | </hint> |
---|
552 | </hints> |
---|
553 | </connection> |
---|
554 | </connections> |
---|
555 | </ui> |
---|