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="QTableView" name="taskView" > |
---|
120 | <property name="statusTip" > |
---|
121 | <string>Стоимости переходов/переездов из города в город</string> |
---|
122 | </property> |
---|
123 | <property name="selectionMode" > |
---|
124 | <enum>QAbstractItemView::NoSelection</enum> |
---|
125 | </property> |
---|
126 | </widget> |
---|
127 | </item> |
---|
128 | <item> |
---|
129 | <layout class="QHBoxLayout" > |
---|
130 | <item> |
---|
131 | <spacer> |
---|
132 | <property name="orientation" > |
---|
133 | <enum>Qt::Horizontal</enum> |
---|
134 | </property> |
---|
135 | <property name="sizeHint" > |
---|
136 | <size> |
---|
137 | <width>40</width> |
---|
138 | <height>20</height> |
---|
139 | </size> |
---|
140 | </property> |
---|
141 | </spacer> |
---|
142 | </item> |
---|
143 | <item> |
---|
144 | <widget class="QPushButton" name="buttonRandom" > |
---|
145 | <property name="cursor" > |
---|
146 | <cursorShape>PointingHandCursor</cursorShape> |
---|
147 | </property> |
---|
148 | <property name="statusTip" > |
---|
149 | <string>Заполнить таблицу случайными значениями</string> |
---|
150 | </property> |
---|
151 | <property name="text" > |
---|
152 | <string>Случайно</string> |
---|
153 | </property> |
---|
154 | </widget> |
---|
155 | </item> |
---|
156 | <item> |
---|
157 | <widget class="QPushButton" name="buttonSolve" > |
---|
158 | <property name="cursor" > |
---|
159 | <cursorShape>PointingHandCursor</cursorShape> |
---|
160 | </property> |
---|
161 | <property name="statusTip" > |
---|
162 | <string>Решить текущую задачу</string> |
---|
163 | </property> |
---|
164 | <property name="text" > |
---|
165 | <string>Решить</string> |
---|
166 | </property> |
---|
167 | <property name="icon" > |
---|
168 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/OK.png</iconset> |
---|
169 | </property> |
---|
170 | </widget> |
---|
171 | </item> |
---|
172 | </layout> |
---|
173 | </item> |
---|
174 | </layout> |
---|
175 | </widget> |
---|
176 | <widget class="QWidget" name="tabSolution" > |
---|
177 | <attribute name="title" > |
---|
178 | <string>Решение</string> |
---|
179 | </attribute> |
---|
180 | <layout class="QVBoxLayout" > |
---|
181 | <item> |
---|
182 | <layout class="QHBoxLayout" > |
---|
183 | <property name="spacing" > |
---|
184 | <number>0</number> |
---|
185 | </property> |
---|
186 | <item> |
---|
187 | <widget class="QTextEdit" name="textEdit" > |
---|
188 | <property name="sizePolicy" > |
---|
189 | <sizepolicy vsizetype="Expanding" hsizetype="Fixed" > |
---|
190 | <horstretch>0</horstretch> |
---|
191 | <verstretch>0</verstretch> |
---|
192 | </sizepolicy> |
---|
193 | </property> |
---|
194 | <property name="statusTip" > |
---|
195 | <string>Ход решения</string> |
---|
196 | </property> |
---|
197 | <property name="readOnly" > |
---|
198 | <bool>true</bool> |
---|
199 | </property> |
---|
200 | </widget> |
---|
201 | </item> |
---|
202 | <item> |
---|
203 | <widget class="QGraphicsView" name="graphicsView" > |
---|
204 | <property name="statusTip" > |
---|
205 | <string>Граф решения</string> |
---|
206 | </property> |
---|
207 | </widget> |
---|
208 | </item> |
---|
209 | </layout> |
---|
210 | </item> |
---|
211 | </layout> |
---|
212 | </widget> |
---|
213 | </widget> |
---|
214 | </item> |
---|
215 | </layout> |
---|
216 | </widget> |
---|
217 | <widget class="QMenuBar" name="menubar" > |
---|
218 | <property name="geometry" > |
---|
219 | <rect> |
---|
220 | <x>0</x> |
---|
221 | <y>0</y> |
---|
222 | <width>640</width> |
---|
223 | <height>21</height> |
---|
224 | </rect> |
---|
225 | </property> |
---|
226 | <widget class="QMenu" name="menuFile" > |
---|
227 | <property name="windowIcon" > |
---|
228 | <iconset/> |
---|
229 | </property> |
---|
230 | <property name="title" > |
---|
231 | <string>&Файл</string> |
---|
232 | </property> |
---|
233 | <widget class="QMenu" name="menuFileSave" > |
---|
234 | <property name="statusTip" > |
---|
235 | <string/> |
---|
236 | </property> |
---|
237 | <property name="title" > |
---|
238 | <string>Со&хранить</string> |
---|
239 | </property> |
---|
240 | <property name="icon" > |
---|
241 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Save.png</iconset> |
---|
242 | </property> |
---|
243 | <addaction name="actionFileSaveTask" /> |
---|
244 | <addaction name="separator" /> |
---|
245 | <addaction name="actionFileSaveResultAll" /> |
---|
246 | <addaction name="actionFileSaveResultMatrices" /> |
---|
247 | <addaction name="actionFileSaveResultGraph" /> |
---|
248 | </widget> |
---|
249 | <addaction name="actionFileNew" /> |
---|
250 | <addaction name="actionFileOpen" /> |
---|
251 | <addaction name="menuFileSave" /> |
---|
252 | <addaction name="separator" /> |
---|
253 | <addaction name="actionFilePrintSetup" /> |
---|
254 | <addaction name="actionFilePrint" /> |
---|
255 | <addaction name="separator" /> |
---|
256 | <addaction name="actionFileExit" /> |
---|
257 | </widget> |
---|
258 | <widget class="QMenu" name="menuSettings" > |
---|
259 | <property name="title" > |
---|
260 | <string>&Настройки</string> |
---|
261 | </property> |
---|
262 | <addaction name="actionSettingsSettings" /> |
---|
263 | </widget> |
---|
264 | <widget class="QMenu" name="menuHelp" > |
---|
265 | <property name="title" > |
---|
266 | <string>&Помощь</string> |
---|
267 | </property> |
---|
268 | <addaction name="actionHelpContents" /> |
---|
269 | <addaction name="actionHelpContextual" /> |
---|
270 | <addaction name="separator" /> |
---|
271 | <addaction name="actionHelpAbout" /> |
---|
272 | </widget> |
---|
273 | <addaction name="menuFile" /> |
---|
274 | <addaction name="menuSettings" /> |
---|
275 | <addaction name="menuHelp" /> |
---|
276 | </widget> |
---|
277 | <widget class="QStatusBar" name="statusbar" /> |
---|
278 | <widget class="QToolBar" name="toolBar" > |
---|
279 | <property name="cursor" > |
---|
280 | <cursorShape>ArrowCursor</cursorShape> |
---|
281 | </property> |
---|
282 | <property name="iconSize" > |
---|
283 | <size> |
---|
284 | <width>17</width> |
---|
285 | <height>18</height> |
---|
286 | </size> |
---|
287 | </property> |
---|
288 | <attribute name="toolBarArea" > |
---|
289 | <enum>TopToolBarArea</enum> |
---|
290 | </attribute> |
---|
291 | <attribute name="toolBarBreak" > |
---|
292 | <bool>false</bool> |
---|
293 | </attribute> |
---|
294 | <addaction name="actionFileNew" /> |
---|
295 | <addaction name="actionFileOpen" /> |
---|
296 | <addaction name="actionFileSaveTask" /> |
---|
297 | <addaction name="separator" /> |
---|
298 | <addaction name="actionFilePrint" /> |
---|
299 | <addaction name="actionSettingsSettings" /> |
---|
300 | <addaction name="separator" /> |
---|
301 | <addaction name="actionFileExit" /> |
---|
302 | </widget> |
---|
303 | <action name="actionFilePrintSetup" > |
---|
304 | <property name="icon" > |
---|
305 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/PrintSetup.png</iconset> |
---|
306 | </property> |
---|
307 | <property name="text" > |
---|
308 | <string>&Настройка печати</string> |
---|
309 | </property> |
---|
310 | <property name="statusTip" > |
---|
311 | <string>Настроить принтер для печати</string> |
---|
312 | </property> |
---|
313 | </action> |
---|
314 | <action name="actionFilePrint" > |
---|
315 | <property name="enabled" > |
---|
316 | <bool>false</bool> |
---|
317 | </property> |
---|
318 | <property name="icon" > |
---|
319 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Print.png</iconset> |
---|
320 | </property> |
---|
321 | <property name="text" > |
---|
322 | <string>&Печать...</string> |
---|
323 | </property> |
---|
324 | <property name="statusTip" > |
---|
325 | <string>Распечатать результаты решения</string> |
---|
326 | </property> |
---|
327 | <property name="shortcut" > |
---|
328 | <string>Ctrl+P</string> |
---|
329 | </property> |
---|
330 | </action> |
---|
331 | <action name="actionFileSaveResultMatrices" > |
---|
332 | <property name="enabled" > |
---|
333 | <bool>false</bool> |
---|
334 | </property> |
---|
335 | <property name="text" > |
---|
336 | <string>&Ход решения</string> |
---|
337 | </property> |
---|
338 | <property name="statusTip" > |
---|
339 | <string>Сохранить только хоод решения</string> |
---|
340 | </property> |
---|
341 | </action> |
---|
342 | <action name="actionFileSaveResultGraph" > |
---|
343 | <property name="enabled" > |
---|
344 | <bool>false</bool> |
---|
345 | </property> |
---|
346 | <property name="text" > |
---|
347 | <string>&Граф решения</string> |
---|
348 | </property> |
---|
349 | <property name="statusTip" > |
---|
350 | <string>Сохранить только граф решения</string> |
---|
351 | </property> |
---|
352 | </action> |
---|
353 | <action name="actionFileSaveResultAll" > |
---|
354 | <property name="enabled" > |
---|
355 | <bool>false</bool> |
---|
356 | </property> |
---|
357 | <property name="text" > |
---|
358 | <string>&Решение</string> |
---|
359 | </property> |
---|
360 | <property name="statusTip" > |
---|
361 | <string>Сохранить ход и граф решения</string> |
---|
362 | </property> |
---|
363 | <property name="shortcut" > |
---|
364 | <string>Ctrl+S</string> |
---|
365 | </property> |
---|
366 | </action> |
---|
367 | <action name="actionFileNew" > |
---|
368 | <property name="icon" > |
---|
369 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Document.png</iconset> |
---|
370 | </property> |
---|
371 | <property name="text" > |
---|
372 | <string>&Создать</string> |
---|
373 | </property> |
---|
374 | <property name="statusTip" > |
---|
375 | <string>Создать новую задачу</string> |
---|
376 | </property> |
---|
377 | <property name="shortcut" > |
---|
378 | <string>Ctrl+N</string> |
---|
379 | </property> |
---|
380 | </action> |
---|
381 | <action name="actionFileOpen" > |
---|
382 | <property name="icon" > |
---|
383 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/OpenFolder.png</iconset> |
---|
384 | </property> |
---|
385 | <property name="text" > |
---|
386 | <string>&Открыть</string> |
---|
387 | </property> |
---|
388 | <property name="toolTip" > |
---|
389 | <string>Открыть задачу</string> |
---|
390 | </property> |
---|
391 | <property name="statusTip" > |
---|
392 | <string>Открыть сохраненное условие задачи</string> |
---|
393 | </property> |
---|
394 | <property name="shortcut" > |
---|
395 | <string>Ctrl+O</string> |
---|
396 | </property> |
---|
397 | </action> |
---|
398 | <action name="actionSettingsSettings" > |
---|
399 | <property name="icon" > |
---|
400 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Properties.png</iconset> |
---|
401 | </property> |
---|
402 | <property name="text" > |
---|
403 | <string>&Параметры</string> |
---|
404 | </property> |
---|
405 | <property name="statusTip" > |
---|
406 | <string>Настройка параметров программмы</string> |
---|
407 | </property> |
---|
408 | </action> |
---|
409 | <action name="actionHelpContents" > |
---|
410 | <property name="icon" > |
---|
411 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/book_open.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="actionHelpContextual" > |
---|
421 | <property name="icon" > |
---|
422 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Help.png</iconset> |
---|
423 | </property> |
---|
424 | <property name="text" > |
---|
425 | <string>&Контекстная справка</string> |
---|
426 | </property> |
---|
427 | <property name="statusTip" > |
---|
428 | <string>Вызвать контекстную справку</string> |
---|
429 | </property> |
---|
430 | </action> |
---|
431 | <action name="actionHelpAbout" > |
---|
432 | <property name="icon" > |
---|
433 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/infoBubble.png</iconset> |
---|
434 | </property> |
---|
435 | <property name="text" > |
---|
436 | <string>&Про...</string> |
---|
437 | </property> |
---|
438 | <property name="statusTip" > |
---|
439 | <string>Получить информацию о программе</string> |
---|
440 | </property> |
---|
441 | </action> |
---|
442 | <action name="actionFileExit" > |
---|
443 | <property name="icon" > |
---|
444 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/NoAction.png</iconset> |
---|
445 | </property> |
---|
446 | <property name="text" > |
---|
447 | <string>В&ыход</string> |
---|
448 | </property> |
---|
449 | <property name="statusTip" > |
---|
450 | <string>Выйти из программы</string> |
---|
451 | </property> |
---|
452 | </action> |
---|
453 | <action name="actionFileSaveTask" > |
---|
454 | <property name="icon" > |
---|
455 | <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Save.png</iconset> |
---|
456 | </property> |
---|
457 | <property name="text" > |
---|
458 | <string>&Задачу</string> |
---|
459 | </property> |
---|
460 | <property name="iconText" > |
---|
461 | <string>Сохранить</string> |
---|
462 | </property> |
---|
463 | <property name="toolTip" > |
---|
464 | <string>Сохранить задачу</string> |
---|
465 | </property> |
---|
466 | <property name="statusTip" > |
---|
467 | <string>Сохранить условие задачи в файл</string> |
---|
468 | </property> |
---|
469 | <property name="shortcut" > |
---|
470 | <string>Ctrl+S</string> |
---|
471 | </property> |
---|
472 | </action> |
---|
473 | </widget> |
---|
474 | <resources> |
---|
475 | <include location="../resources/tspsg.qrc" /> |
---|
476 | </resources> |
---|
477 | <connections> |
---|
478 | <connection> |
---|
479 | <sender>actionFileExit</sender> |
---|
480 | <signal>triggered()</signal> |
---|
481 | <receiver>MainWindow</receiver> |
---|
482 | <slot>close()</slot> |
---|
483 | <hints> |
---|
484 | <hint type="sourcelabel" > |
---|
485 | <x>-1</x> |
---|
486 | <y>-1</y> |
---|
487 | </hint> |
---|
488 | <hint type="destinationlabel" > |
---|
489 | <x>294</x> |
---|
490 | <y>229</y> |
---|
491 | </hint> |
---|
492 | </hints> |
---|
493 | </connection> |
---|
494 | </connections> |
---|
495 | </ui> |
---|