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