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