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="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="icon"> |
---|
484 | <iconset resource="../resources/common.qrc"> |
---|
485 | <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset> |
---|
486 | </property> |
---|
487 | <property name="text"> |
---|
488 | <string>About &Qt...</string> |
---|
489 | </property> |
---|
490 | <property name="statusTip"> |
---|
491 | <string>About Qt library</string> |
---|
492 | </property> |
---|
493 | <property name="menuRole"> |
---|
494 | <enum>QAction::AboutQtRole</enum> |
---|
495 | </property> |
---|
496 | </action> |
---|
497 | <action name="actionSettingsStyleSystem"> |
---|
498 | <property name="checkable"> |
---|
499 | <bool>true</bool> |
---|
500 | </property> |
---|
501 | <property name="checked"> |
---|
502 | <bool>true</bool> |
---|
503 | </property> |
---|
504 | <property name="text"> |
---|
505 | <string>System Default</string> |
---|
506 | </property> |
---|
507 | <property name="statusTip"> |
---|
508 | <string>Automatically choose the most appropriate style</string> |
---|
509 | </property> |
---|
510 | </action> |
---|
511 | </widget> |
---|
512 | <resources> |
---|
513 | <include location="../resources/common.qrc"/> |
---|
514 | </resources> |
---|
515 | <connections> |
---|
516 | <connection> |
---|
517 | <sender>actionFileExit</sender> |
---|
518 | <signal>triggered()</signal> |
---|
519 | <receiver>MainWindow</receiver> |
---|
520 | <slot>close()</slot> |
---|
521 | <hints> |
---|
522 | <hint type="sourcelabel"> |
---|
523 | <x>-1</x> |
---|
524 | <y>-1</y> |
---|
525 | </hint> |
---|
526 | <hint type="destinationlabel"> |
---|
527 | <x>294</x> |
---|
528 | <y>229</y> |
---|
529 | </hint> |
---|
530 | </hints> |
---|
531 | </connection> |
---|
532 | <connection> |
---|
533 | <sender>buttonSaveSolution</sender> |
---|
534 | <signal>clicked()</signal> |
---|
535 | <receiver>actionFileSaveAsSolution</receiver> |
---|
536 | <slot>trigger()</slot> |
---|
537 | <hints> |
---|
538 | <hint type="sourcelabel"> |
---|
539 | <x>58</x> |
---|
540 | <y>327</y> |
---|
541 | </hint> |
---|
542 | <hint type="destinationlabel"> |
---|
543 | <x>-1</x> |
---|
544 | <y>-1</y> |
---|
545 | </hint> |
---|
546 | </hints> |
---|
547 | </connection> |
---|
548 | </connections> |
---|
549 | </ui> |
---|