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="geometry"> |
---|
6 | <rect> |
---|
7 | <x>0</x> |
---|
8 | <y>0</y> |
---|
9 | <width>640</width> |
---|
10 | <height>480</height> |
---|
11 | </rect> |
---|
12 | </property> |
---|
13 | <property name="windowTitle"> |
---|
14 | <string>Задача коммивояжера</string> |
---|
15 | </property> |
---|
16 | <property name="windowIcon"> |
---|
17 | <iconset resource="../resources/tspsg.qrc"> |
---|
18 | <normaloff>:/images/Icon.png</normaloff>:/images/Icon.png</iconset> |
---|
19 | </property> |
---|
20 | <widget class="QWidget" name="centralwidget"> |
---|
21 | <layout class="QGridLayout"> |
---|
22 | <item row="0" column="0"> |
---|
23 | <widget class="QTabWidget" name="tabWidget"> |
---|
24 | <property name="sizePolicy"> |
---|
25 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
---|
26 | <horstretch>0</horstretch> |
---|
27 | <verstretch>0</verstretch> |
---|
28 | </sizepolicy> |
---|
29 | </property> |
---|
30 | <property name="currentIndex"> |
---|
31 | <number>0</number> |
---|
32 | </property> |
---|
33 | <widget class="QWidget" name="tabTask"> |
---|
34 | <attribute name="title"> |
---|
35 | <string>Задача</string> |
---|
36 | </attribute> |
---|
37 | <layout class="QVBoxLayout"> |
---|
38 | <item> |
---|
39 | <layout class="QHBoxLayout"> |
---|
40 | <item> |
---|
41 | <spacer> |
---|
42 | <property name="orientation"> |
---|
43 | <enum>Qt::Horizontal</enum> |
---|
44 | </property> |
---|
45 | <property name="sizeHint" stdset="0"> |
---|
46 | <size> |
---|
47 | <width>40</width> |
---|
48 | <height>20</height> |
---|
49 | </size> |
---|
50 | </property> |
---|
51 | </spacer> |
---|
52 | </item> |
---|
53 | <item> |
---|
54 | <widget class="QLabel" name="labelVariant"> |
---|
55 | <property name="text"> |
---|
56 | <string>&Вариант:</string> |
---|
57 | </property> |
---|
58 | <property name="buddy"> |
---|
59 | <cstring>spinVariant</cstring> |
---|
60 | </property> |
---|
61 | </widget> |
---|
62 | </item> |
---|
63 | <item> |
---|
64 | <widget class="QSpinBox" name="spinVariant"> |
---|
65 | <property name="cursor"> |
---|
66 | <cursorShape>PointingHandCursor</cursorShape> |
---|
67 | </property> |
---|
68 | <property name="statusTip"> |
---|
69 | <string>Номер варианта</string> |
---|
70 | </property> |
---|
71 | <property name="minimum"> |
---|
72 | <number>1</number> |
---|
73 | </property> |
---|
74 | </widget> |
---|
75 | </item> |
---|
76 | <item> |
---|
77 | <widget class="QLabel" name="labelCities"> |
---|
78 | <property name="text"> |
---|
79 | <string>&Городов:</string> |
---|
80 | </property> |
---|
81 | <property name="buddy"> |
---|
82 | <cstring>spinCities</cstring> |
---|
83 | </property> |
---|
84 | </widget> |
---|
85 | </item> |
---|
86 | <item> |
---|
87 | <widget class="QSpinBox" name="spinCities"> |
---|
88 | <property name="cursor"> |
---|
89 | <cursorShape>PointingHandCursor</cursorShape> |
---|
90 | </property> |
---|
91 | <property name="statusTip"> |
---|
92 | <string>Количество городов, которые обходит коммивояжер</string> |
---|
93 | </property> |
---|
94 | <property name="minimum"> |
---|
95 | <number>3</number> |
---|
96 | </property> |
---|
97 | <property name="maximum"> |
---|
98 | <number>5</number> |
---|
99 | </property> |
---|
100 | <property name="value"> |
---|
101 | <number>5</number> |
---|
102 | </property> |
---|
103 | </widget> |
---|
104 | </item> |
---|
105 | <item> |
---|
106 | <spacer> |
---|
107 | <property name="orientation"> |
---|
108 | <enum>Qt::Horizontal</enum> |
---|
109 | </property> |
---|
110 | <property name="sizeHint" stdset="0"> |
---|
111 | <size> |
---|
112 | <width>40</width> |
---|
113 | <height>20</height> |
---|
114 | </size> |
---|
115 | </property> |
---|
116 | </spacer> |
---|
117 | </item> |
---|
118 | </layout> |
---|
119 | </item> |
---|
120 | <item> |
---|
121 | <widget class="QTableView" name="taskView"> |
---|
122 | <property name="statusTip"> |
---|
123 | <string>Стоимости переходов/переездов из города в город</string> |
---|
124 | </property> |
---|
125 | <property name="selectionMode"> |
---|
126 | <enum>QAbstractItemView::NoSelection</enum> |
---|
127 | </property> |
---|
128 | </widget> |
---|
129 | </item> |
---|
130 | <item> |
---|
131 | <layout class="QHBoxLayout"> |
---|
132 | <item> |
---|
133 | <spacer> |
---|
134 | <property name="orientation"> |
---|
135 | <enum>Qt::Horizontal</enum> |
---|
136 | </property> |
---|
137 | <property name="sizeHint" stdset="0"> |
---|
138 | <size> |
---|
139 | <width>40</width> |
---|
140 | <height>20</height> |
---|
141 | </size> |
---|
142 | </property> |
---|
143 | </spacer> |
---|
144 | </item> |
---|
145 | <item> |
---|
146 | <widget class="QPushButton" name="buttonRandom"> |
---|
147 | <property name="cursor"> |
---|
148 | <cursorShape>PointingHandCursor</cursorShape> |
---|
149 | </property> |
---|
150 | <property name="statusTip"> |
---|
151 | <string>Заполнить таблицу случайными значениями</string> |
---|
152 | </property> |
---|
153 | <property name="text"> |
---|
154 | <string>Случайно</string> |
---|
155 | </property> |
---|
156 | </widget> |
---|
157 | </item> |
---|
158 | <item> |
---|
159 | <widget class="QPushButton" name="buttonSolve"> |
---|
160 | <property name="cursor"> |
---|
161 | <cursorShape>PointingHandCursor</cursorShape> |
---|
162 | </property> |
---|
163 | <property name="statusTip"> |
---|
164 | <string>Решить текущую задачу</string> |
---|
165 | </property> |
---|
166 | <property name="text"> |
---|
167 | <string>Решить</string> |
---|
168 | </property> |
---|
169 | <property name="icon"> |
---|
170 | <iconset resource="../resources/tspsg.qrc"> |
---|
171 | <normaloff>:/images/buttons/buttons/OK.png</normaloff>:/images/buttons/buttons/OK.png</iconset> |
---|
172 | </property> |
---|
173 | </widget> |
---|
174 | </item> |
---|
175 | </layout> |
---|
176 | </item> |
---|
177 | </layout> |
---|
178 | </widget> |
---|
179 | <widget class="QWidget" name="tabSolution"> |
---|
180 | <attribute name="title"> |
---|
181 | <string>Решение</string> |
---|
182 | </attribute> |
---|
183 | <layout class="QVBoxLayout"> |
---|
184 | <item> |
---|
185 | <layout class="QHBoxLayout"> |
---|
186 | <property name="spacing"> |
---|
187 | <number>0</number> |
---|
188 | </property> |
---|
189 | <item> |
---|
190 | <widget class="QTextEdit" name="textEdit"> |
---|
191 | <property name="sizePolicy"> |
---|
192 | <sizepolicy hsizetype="Fixed" vsizetype="Expanding"> |
---|
193 | <horstretch>0</horstretch> |
---|
194 | <verstretch>0</verstretch> |
---|
195 | </sizepolicy> |
---|
196 | </property> |
---|
197 | <property name="statusTip"> |
---|
198 | <string>Ход решения</string> |
---|
199 | </property> |
---|
200 | <property name="readOnly"> |
---|
201 | <bool>true</bool> |
---|
202 | </property> |
---|
203 | </widget> |
---|
204 | </item> |
---|
205 | <item> |
---|
206 | <widget class="QGraphicsView" name="graphicsView"> |
---|
207 | <property name="statusTip"> |
---|
208 | <string>Граф решения</string> |
---|
209 | </property> |
---|
210 | </widget> |
---|
211 | </item> |
---|
212 | </layout> |
---|
213 | </item> |
---|
214 | </layout> |
---|
215 | </widget> |
---|
216 | </widget> |
---|
217 | </item> |
---|
218 | </layout> |
---|
219 | </widget> |
---|
220 | <widget class="QMenuBar" name="menubar"> |
---|
221 | <property name="geometry"> |
---|
222 | <rect> |
---|
223 | <x>0</x> |
---|
224 | <y>0</y> |
---|
225 | <width>640</width> |
---|
226 | <height>22</height> |
---|
227 | </rect> |
---|
228 | </property> |
---|
229 | <widget class="QMenu" name="menuFile"> |
---|
230 | <property name="windowIcon"> |
---|
231 | <iconset> |
---|
232 | <normaloff/> |
---|
233 | </iconset> |
---|
234 | </property> |
---|
235 | <property name="title"> |
---|
236 | <string>&Файл</string> |
---|
237 | </property> |
---|
238 | <widget class="QMenu" name="menuFileSave"> |
---|
239 | <property name="statusTip"> |
---|
240 | <string/> |
---|
241 | </property> |
---|
242 | <property name="title"> |
---|
243 | <string>Со&хранить</string> |
---|
244 | </property> |
---|
245 | <property name="icon"> |
---|
246 | <iconset resource="../resources/tspsg.qrc"> |
---|
247 | <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset> |
---|
248 | </property> |
---|
249 | <addaction name="actionFileSaveTask"/> |
---|
250 | <addaction name="separator"/> |
---|
251 | <addaction name="actionFileSaveResultAll"/> |
---|
252 | <addaction name="actionFileSaveResultMatrices"/> |
---|
253 | <addaction name="actionFileSaveResultGraph"/> |
---|
254 | </widget> |
---|
255 | <addaction name="actionFileNew"/> |
---|
256 | <addaction name="actionFileOpen"/> |
---|
257 | <addaction name="menuFileSave"/> |
---|
258 | <addaction name="separator"/> |
---|
259 | <addaction name="actionFilePrintSetup"/> |
---|
260 | <addaction name="actionFilePrint"/> |
---|
261 | <addaction name="separator"/> |
---|
262 | <addaction name="actionFileExit"/> |
---|
263 | </widget> |
---|
264 | <widget class="QMenu" name="menuSettings"> |
---|
265 | <property name="title"> |
---|
266 | <string>&Настройки</string> |
---|
267 | </property> |
---|
268 | <addaction name="actionSettingsSettings"/> |
---|
269 | </widget> |
---|
270 | <widget class="QMenu" name="menuHelp"> |
---|
271 | <property name="title"> |
---|
272 | <string>&Помощь</string> |
---|
273 | </property> |
---|
274 | <addaction name="actionHelpContents"/> |
---|
275 | <addaction name="actionHelpContextual"/> |
---|
276 | <addaction name="separator"/> |
---|
277 | <addaction name="actionHelpAbout"/> |
---|
278 | </widget> |
---|
279 | <addaction name="menuFile"/> |
---|
280 | <addaction name="menuSettings"/> |
---|
281 | <addaction name="menuHelp"/> |
---|
282 | </widget> |
---|
283 | <widget class="QStatusBar" name="statusbar"/> |
---|
284 | <widget class="QToolBar" name="toolBar"> |
---|
285 | <property name="cursor"> |
---|
286 | <cursorShape>ArrowCursor</cursorShape> |
---|
287 | </property> |
---|
288 | <property name="iconSize"> |
---|
289 | <size> |
---|
290 | <width>17</width> |
---|
291 | <height>18</height> |
---|
292 | </size> |
---|
293 | </property> |
---|
294 | <attribute name="toolBarArea"> |
---|
295 | <enum>TopToolBarArea</enum> |
---|
296 | </attribute> |
---|
297 | <attribute name="toolBarBreak"> |
---|
298 | <bool>false</bool> |
---|
299 | </attribute> |
---|
300 | <addaction name="actionFileNew"/> |
---|
301 | <addaction name="actionFileOpen"/> |
---|
302 | <addaction name="actionFileSaveTask"/> |
---|
303 | <addaction name="separator"/> |
---|
304 | <addaction name="actionFilePrint"/> |
---|
305 | <addaction name="actionSettingsSettings"/> |
---|
306 | <addaction name="separator"/> |
---|
307 | <addaction name="actionFileExit"/> |
---|
308 | </widget> |
---|
309 | <action name="actionFilePrintSetup"> |
---|
310 | <property name="icon"> |
---|
311 | <iconset resource="../resources/tspsg.qrc"> |
---|
312 | <normaloff>:/images/buttons/buttons/PrintSetup.png</normaloff>:/images/buttons/buttons/PrintSetup.png</iconset> |
---|
313 | </property> |
---|
314 | <property name="text"> |
---|
315 | <string>&Настройка печати</string> |
---|
316 | </property> |
---|
317 | <property name="statusTip"> |
---|
318 | <string>Настроить принтер для печати</string> |
---|
319 | </property> |
---|
320 | </action> |
---|
321 | <action name="actionFilePrint"> |
---|
322 | <property name="enabled"> |
---|
323 | <bool>false</bool> |
---|
324 | </property> |
---|
325 | <property name="icon"> |
---|
326 | <iconset resource="../resources/tspsg.qrc"> |
---|
327 | <normaloff>:/images/buttons/buttons/Print.png</normaloff>:/images/buttons/buttons/Print.png</iconset> |
---|
328 | </property> |
---|
329 | <property name="text"> |
---|
330 | <string>&Печать...</string> |
---|
331 | </property> |
---|
332 | <property name="statusTip"> |
---|
333 | <string>Распечатать результаты решения</string> |
---|
334 | </property> |
---|
335 | <property name="shortcut"> |
---|
336 | <string>Ctrl+P</string> |
---|
337 | </property> |
---|
338 | </action> |
---|
339 | <action name="actionFileSaveResultMatrices"> |
---|
340 | <property name="enabled"> |
---|
341 | <bool>false</bool> |
---|
342 | </property> |
---|
343 | <property name="text"> |
---|
344 | <string>&Ход решения</string> |
---|
345 | </property> |
---|
346 | <property name="statusTip"> |
---|
347 | <string>Сохранить только хоод решения</string> |
---|
348 | </property> |
---|
349 | </action> |
---|
350 | <action name="actionFileSaveResultGraph"> |
---|
351 | <property name="enabled"> |
---|
352 | <bool>false</bool> |
---|
353 | </property> |
---|
354 | <property name="text"> |
---|
355 | <string>&Граф решения</string> |
---|
356 | </property> |
---|
357 | <property name="statusTip"> |
---|
358 | <string>Сохранить только граф решения</string> |
---|
359 | </property> |
---|
360 | </action> |
---|
361 | <action name="actionFileSaveResultAll"> |
---|
362 | <property name="enabled"> |
---|
363 | <bool>false</bool> |
---|
364 | </property> |
---|
365 | <property name="text"> |
---|
366 | <string>&Решение</string> |
---|
367 | </property> |
---|
368 | <property name="statusTip"> |
---|
369 | <string>Сохранить ход и граф решения</string> |
---|
370 | </property> |
---|
371 | <property name="shortcut"> |
---|
372 | <string>Ctrl+S</string> |
---|
373 | </property> |
---|
374 | </action> |
---|
375 | <action name="actionFileNew"> |
---|
376 | <property name="icon"> |
---|
377 | <iconset resource="../resources/tspsg.qrc"> |
---|
378 | <normaloff>:/images/buttons/buttons/Document.png</normaloff>:/images/buttons/buttons/Document.png</iconset> |
---|
379 | </property> |
---|
380 | <property name="text"> |
---|
381 | <string>&Создать</string> |
---|
382 | </property> |
---|
383 | <property name="statusTip"> |
---|
384 | <string>Создать новую задачу</string> |
---|
385 | </property> |
---|
386 | <property name="shortcut"> |
---|
387 | <string>Ctrl+N</string> |
---|
388 | </property> |
---|
389 | </action> |
---|
390 | <action name="actionFileOpen"> |
---|
391 | <property name="icon"> |
---|
392 | <iconset resource="../resources/tspsg.qrc"> |
---|
393 | <normaloff>:/images/buttons/buttons/OpenFolder.png</normaloff>:/images/buttons/buttons/OpenFolder.png</iconset> |
---|
394 | </property> |
---|
395 | <property name="text"> |
---|
396 | <string>&Открыть</string> |
---|
397 | </property> |
---|
398 | <property name="toolTip"> |
---|
399 | <string>Открыть задачу</string> |
---|
400 | </property> |
---|
401 | <property name="statusTip"> |
---|
402 | <string>Открыть сохраненное условие задачи</string> |
---|
403 | </property> |
---|
404 | <property name="shortcut"> |
---|
405 | <string>Ctrl+O</string> |
---|
406 | </property> |
---|
407 | </action> |
---|
408 | <action name="actionSettingsSettings"> |
---|
409 | <property name="icon"> |
---|
410 | <iconset resource="../resources/tspsg.qrc"> |
---|
411 | <normaloff>:/images/buttons/buttons/Properties.png</normaloff>:/images/buttons/buttons/Properties.png</iconset> |
---|
412 | </property> |
---|
413 | <property name="text"> |
---|
414 | <string>&Параметры</string> |
---|
415 | </property> |
---|
416 | <property name="statusTip"> |
---|
417 | <string>Настройка параметров программмы</string> |
---|
418 | </property> |
---|
419 | </action> |
---|
420 | <action name="actionHelpContents"> |
---|
421 | <property name="icon"> |
---|
422 | <iconset resource="../resources/tspsg.qrc"> |
---|
423 | <normaloff>:/images/buttons/buttons/book_open.png</normaloff>:/images/buttons/buttons/book_open.png</iconset> |
---|
424 | </property> |
---|
425 | <property name="text"> |
---|
426 | <string>&Содежание</string> |
---|
427 | </property> |
---|
428 | <property name="statusTip"> |
---|
429 | <string>Вызвать справку по программе</string> |
---|
430 | </property> |
---|
431 | </action> |
---|
432 | <action name="actionHelpContextual"> |
---|
433 | <property name="icon"> |
---|
434 | <iconset resource="../resources/tspsg.qrc"> |
---|
435 | <normaloff>:/images/buttons/buttons/Help.png</normaloff>:/images/buttons/buttons/Help.png</iconset> |
---|
436 | </property> |
---|
437 | <property name="text"> |
---|
438 | <string>&Контекстная справка</string> |
---|
439 | </property> |
---|
440 | <property name="statusTip"> |
---|
441 | <string>Вызвать контекстную справку</string> |
---|
442 | </property> |
---|
443 | </action> |
---|
444 | <action name="actionHelpAbout"> |
---|
445 | <property name="icon"> |
---|
446 | <iconset resource="../resources/tspsg.qrc"> |
---|
447 | <normaloff>:/images/buttons/buttons/infoBubble.png</normaloff>:/images/buttons/buttons/infoBubble.png</iconset> |
---|
448 | </property> |
---|
449 | <property name="text"> |
---|
450 | <string>&Про...</string> |
---|
451 | </property> |
---|
452 | <property name="statusTip"> |
---|
453 | <string>Получить информацию о программе</string> |
---|
454 | </property> |
---|
455 | </action> |
---|
456 | <action name="actionFileExit"> |
---|
457 | <property name="icon"> |
---|
458 | <iconset resource="../resources/tspsg.qrc"> |
---|
459 | <normaloff>:/images/buttons/buttons/NoAction.png</normaloff>:/images/buttons/buttons/NoAction.png</iconset> |
---|
460 | </property> |
---|
461 | <property name="text"> |
---|
462 | <string>В&ыход</string> |
---|
463 | </property> |
---|
464 | <property name="statusTip"> |
---|
465 | <string>Выйти из программы</string> |
---|
466 | </property> |
---|
467 | </action> |
---|
468 | <action name="actionFileSaveTask"> |
---|
469 | <property name="icon"> |
---|
470 | <iconset resource="../resources/tspsg.qrc"> |
---|
471 | <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset> |
---|
472 | </property> |
---|
473 | <property name="text"> |
---|
474 | <string>&Задачу</string> |
---|
475 | </property> |
---|
476 | <property name="iconText"> |
---|
477 | <string>Сохранить</string> |
---|
478 | </property> |
---|
479 | <property name="toolTip"> |
---|
480 | <string>Сохранить задачу</string> |
---|
481 | </property> |
---|
482 | <property name="statusTip"> |
---|
483 | <string>Сохранить условие задачи в файл</string> |
---|
484 | </property> |
---|
485 | <property name="shortcut"> |
---|
486 | <string>Ctrl+S</string> |
---|
487 | </property> |
---|
488 | </action> |
---|
489 | </widget> |
---|
490 | <resources> |
---|
491 | <include location="../resources/tspsg.qrc"/> |
---|
492 | </resources> |
---|
493 | <connections> |
---|
494 | <connection> |
---|
495 | <sender>actionFileExit</sender> |
---|
496 | <signal>triggered()</signal> |
---|
497 | <receiver>MainWindow</receiver> |
---|
498 | <slot>close()</slot> |
---|
499 | <hints> |
---|
500 | <hint type="sourcelabel"> |
---|
501 | <x>-1</x> |
---|
502 | <y>-1</y> |
---|
503 | </hint> |
---|
504 | <hint type="destinationlabel"> |
---|
505 | <x>294</x> |
---|
506 | <y>229</y> |
---|
507 | </hint> |
---|
508 | </hints> |
---|
509 | </connection> |
---|
510 | </connections> |
---|
511 | </ui> |
---|