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