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