Changeset 94 in tspsg-svn for trunk/ui/mainwindow.ui
- Timestamp:
- Feb 25, 2010, 9:48:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/mainwindow.ui
r92 r94 4 4 <class>MainWindow</class> 5 5 <widget class="QMainWindow" name="MainWindow"> 6 <property name="geometry"> 7 <rect> 8 <x>0</x> 9 <y>0</y> 10 <width>301</width> 11 <height>352</height> 12 </rect> 13 </property> 6 14 <property name="windowTitle"> 7 15 <string>Travelling Salesman Problem</string> … … 9 17 <property name="windowIcon"> 10 18 <iconset resource="../resources/tspsg.qrc"> 11 19 <normaloff>:/images/tspsg.png</normaloff>:/images/tspsg.png</iconset> 12 20 </property> 13 21 <widget class="QTabWidget" name="tabWidget"> 14 22 <property name="tabPosition"> 15 23 <enum>QTabWidget::North</enum> 16 24 </property> 17 25 <widget class="QWidget" name="tabTask"> 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 26 <attribute name="title"> 27 <string>Task</string> 28 </attribute> 29 <layout class="QVBoxLayout" name="_2"> 30 <item> 31 <layout class="QHBoxLayout"> 32 <item> 33 <spacer> 34 <property name="orientation"> 35 <enum>Qt::Horizontal</enum> 36 </property> 37 <property name="sizeHint" stdset="0"> 38 <size> 39 <width>40</width> 40 <height>20</height> 41 </size> 42 </property> 43 </spacer> 44 </item> 45 <item> 46 <widget class="QLabel" name="labelVariant"> 47 <property name="text"> 48 <string>&Variant:</string> 49 </property> 50 <property name="buddy"> 51 <cstring>spinVariant</cstring> 52 </property> 53 </widget> 54 </item> 55 <item> 56 <widget class="QSpinBox" name="spinVariant"> 57 <property name="cursor"> 58 <cursorShape>PointingHandCursor</cursorShape> 59 </property> 60 <property name="statusTip"> 61 <string>Number of variant</string> 62 </property> 63 <property name="minimum"> 64 <number>1</number> 65 </property> 66 </widget> 67 </item> 68 <item> 69 <widget class="QLabel" name="labelCities"> 70 <property name="text"> 71 <string>&Cities:</string> 72 </property> 73 <property name="buddy"> 74 <cstring>spinCities</cstring> 75 </property> 76 </widget> 77 </item> 78 <item> 79 <widget class="QSpinBox" name="spinCities"> 80 <property name="cursor"> 81 <cursorShape>PointingHandCursor</cursorShape> 82 </property> 83 <property name="statusTip"> 84 <string>Number of cities</string> 85 </property> 86 <property name="minimum"> 87 <number>3</number> 88 </property> 89 <property name="value"> 90 <number>5</number> 91 </property> 92 </widget> 93 </item> 94 <item> 95 <spacer> 96 <property name="orientation"> 97 <enum>Qt::Horizontal</enum> 98 </property> 99 <property name="sizeHint" stdset="0"> 100 <size> 101 <width>40</width> 102 <height>20</height> 103 </size> 104 </property> 105 </spacer> 106 </item> 107 </layout> 108 </item> 109 <item> 110 <widget class="QTableView" name="taskView"> 111 <property name="statusTip"> 112 <string>Cost of travel from city to city</string> 113 </property> 114 <property name="selectionMode"> 115 <enum>QAbstractItemView::NoSelection</enum> 116 </property> 117 </widget> 118 </item> 119 <item> 120 <layout class="QHBoxLayout"> 121 <item> 122 <spacer> 123 <property name="orientation"> 124 <enum>Qt::Horizontal</enum> 125 </property> 126 <property name="sizeHint" stdset="0"> 127 <size> 128 <width>40</width> 129 <height>20</height> 130 </size> 131 </property> 132 </spacer> 133 </item> 134 <item> 135 <widget class="QPushButton" name="buttonRandom"> 136 <property name="cursor"> 137 <cursorShape>PointingHandCursor</cursorShape> 138 </property> 139 <property name="statusTip"> 140 <string>Fill table with random numbers</string> 141 </property> 142 <property name="text"> 143 <string>Random</string> 144 </property> 145 <property name="icon"> 146 <iconset resource="../resources/tspsg.qrc"> 147 <normaloff>:/images/icons/roll.png</normaloff>:/images/icons/roll.png</iconset> 148 </property> 149 </widget> 150 </item> 151 <item> 152 <widget class="QPushButton" name="buttonSolve"> 153 <property name="cursor"> 154 <cursorShape>PointingHandCursor</cursorShape> 155 </property> 156 <property name="statusTip"> 157 <string>Solve current task</string> 158 </property> 159 <property name="text"> 160 <string>Solve</string> 161 </property> 162 <property name="icon"> 163 <iconset resource="../resources/tspsg.qrc"> 164 <normaloff>:/images/icons/button_ok.png</normaloff>:/images/icons/button_ok.png</iconset> 165 </property> 166 </widget> 167 </item> 168 </layout> 169 </item> 170 </layout> 163 171 </widget> 164 172 <widget class="QWidget" name="tabSolution"> 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 173 <attribute name="title"> 174 <string>Solution</string> 175 </attribute> 176 <layout class="QVBoxLayout" name="_3"> 177 <item> 178 <widget class="QTextEdit" name="solutionText"> 179 <property name="enabled"> 180 <bool>false</bool> 181 </property> 182 <property name="statusTip"> 183 <string>Solution steps</string> 184 </property> 185 <property name="readOnly"> 186 <bool>true</bool> 187 </property> 188 <property name="textInteractionFlags"> 189 <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set> 190 </property> 191 </widget> 192 </item> 193 <item> 194 <layout class="QHBoxLayout" name="horizontalLayout"> 195 <item> 196 <widget class="QPushButton" name="buttonSaveSolution"> 197 <property name="enabled"> 198 <bool>false</bool> 199 </property> 200 <property name="cursor"> 201 <cursorShape>PointingHandCursor</cursorShape> 202 </property> 203 <property name="statusTip"> 204 <string>Save solution to a file</string> 205 </property> 206 <property name="text"> 207 <string>Save Solution</string> 208 </property> 209 <property name="icon"> 210 <iconset resource="../resources/tspsg.qrc"> 211 <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset> 212 </property> 213 </widget> 214 </item> 215 <item> 216 <spacer name="horizontalSpacer"> 217 <property name="orientation"> 218 <enum>Qt::Horizontal</enum> 219 </property> 220 <property name="sizeHint" stdset="0"> 221 <size> 222 <width>40</width> 223 <height>20</height> 224 </size> 225 </property> 226 </spacer> 227 </item> 228 <item> 229 <widget class="QPushButton" name="buttonBackToTask"> 230 <property name="cursor"> 231 <cursorShape>PointingHandCursor</cursorShape> 232 </property> 233 <property name="statusTip"> 234 <string>Go back to Task tab</string> 235 </property> 236 <property name="text"> 237 <string>Back to Task</string> 238 </property> 239 <property name="icon"> 240 <iconset resource="../resources/tspsg.qrc"> 241 <normaloff>:/images/icons/back.png</normaloff>:/images/icons/back.png</iconset> 242 </property> 243 </widget> 244 </item> 245 </layout> 246 </item> 247 </layout> 240 248 </widget> 241 249 </widget> 242 250 <widget class="QMenuBar" name="menubar"> 243 251 <property name="geometry"> 244 245 246 247 <width>287</width>248 249 252 <rect> 253 <x>0</x> 254 <y>0</y> 255 <width>301</width> 256 <height>21</height> 257 </rect> 250 258 </property> 251 259 <widget class="QMenu" name="menuFile"> 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 260 <property name="windowIcon"> 261 <iconset> 262 <normaloff/> 263 </iconset> 264 </property> 265 <property name="title"> 266 <string>&File</string> 267 </property> 268 <widget class="QMenu" name="menuFileSaveAs"> 269 <property name="title"> 270 <string>Save &As</string> 271 </property> 272 <property name="icon"> 273 <iconset resource="../resources/tspsg.qrc"> 274 <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset> 275 </property> 276 <addaction name="actionFileSaveAsTask"/> 277 <addaction name="actionFileSaveAsSolution"/> 278 </widget> 279 <addaction name="actionFileNew"/> 280 <addaction name="actionFileOpen"/> 281 <addaction name="actionFileSave"/> 282 <addaction name="menuFileSaveAs"/> 283 <addaction name="separator"/> 284 <addaction name="actionFileExit"/> 277 285 </widget> 278 286 <widget class="QMenu" name="menuSettings"> 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 287 <property name="title"> 288 <string>&Settings</string> 289 </property> 290 <widget class="QMenu" name="menuSettingsLanguage"> 291 <property name="toolTip"> 292 <string>Select language</string> 293 </property> 294 <property name="statusTip"> 295 <string>Select application language</string> 296 </property> 297 <property name="title"> 298 <string comment="Please, append " / Language" when translating this string.">&Language</string> 299 </property> 300 <property name="icon"> 301 <iconset resource="../resources/tspsg.qrc"> 302 <normaloff>:/images/icons/locale.png</normaloff>:/images/icons/locale.png</iconset> 303 </property> 304 <addaction name="actionSettingsLanguageAutodetect"/> 305 <addaction name="separator"/> 306 <addaction name="actionSettingsLanguageEnglish"/> 307 </widget> 308 <addaction name="menuSettingsLanguage"/> 309 <addaction name="separator"/> 310 <addaction name="actionSettingsPreferences"/> 303 311 </widget> 304 312 <widget class="QMenu" name="menuHelp"> 305 306 307 308 309 310 311 312 313 <property name="title"> 314 <string>&Help</string> 315 </property> 316 <addaction name="actionHelpContents"/> 317 <addaction name="actionHelpContextual"/> 318 <addaction name="separator"/> 319 <addaction name="actionHelpAboutQt"/> 320 <addaction name="actionHelpAbout"/> 313 321 </widget> 314 322 <addaction name="menuFile"/> … … 318 326 <widget class="QToolBar" name="toolBar"> 319 327 <property name="cursor"> 320 328 <cursorShape>ArrowCursor</cursorShape> 321 329 </property> 322 330 <property name="windowTitle"> 323 331 <string>Toolbar</string> 324 332 </property> 325 333 <attribute name="toolBarArea"> 326 334 <enum>TopToolBarArea</enum> 327 335 </attribute> 328 336 <attribute name="toolBarBreak"> 329 337 <bool>false</bool> 330 338 </attribute> 331 339 <addaction name="actionFileNew"/> … … 339 347 <action name="actionFileSaveAsSolution"> 340 348 <property name="enabled"> 341 342 </property> 343 <property name="text"> 344 349 <bool>false</bool> 350 </property> 351 <property name="text"> 352 <string>&Solution...</string> 345 353 </property> 346 354 <property name="toolTip"> 347 348 </property> 349 <property name="statusTip"> 350 355 <string>Save solution</string> 356 </property> 357 <property name="statusTip"> 358 <string>Save solution to a file</string> 351 359 </property> 352 360 </action> 353 361 <action name="actionFileNew"> 354 362 <property name="icon"> 355 356 357 </property> 358 <property name="text"> 359 363 <iconset resource="../resources/tspsg.qrc"> 364 <normaloff>:/images/icons/filenew.png</normaloff>:/images/icons/filenew.png</iconset> 365 </property> 366 <property name="text"> 367 <string>&New</string> 360 368 </property> 361 369 <property name="toolTip"> 362 363 </property> 364 <property name="statusTip"> 365 370 <string>New task</string> 371 </property> 372 <property name="statusTip"> 373 <string>Create new task</string> 366 374 </property> 367 375 <property name="shortcut"> 368 376 <string>Ctrl+N</string> 369 377 </property> 370 378 </action> 371 379 <action name="actionFileOpen"> 372 380 <property name="icon"> 373 374 375 </property> 376 <property name="text"> 377 381 <iconset resource="../resources/tspsg.qrc"> 382 <normaloff>:/images/icons/fileopen.png</normaloff>:/images/icons/fileopen.png</iconset> 383 </property> 384 <property name="text"> 385 <string>&Open...</string> 378 386 </property> 379 387 <property name="toolTip"> 380 381 </property> 382 <property name="statusTip"> 383 388 <string>Open task</string> 389 </property> 390 <property name="statusTip"> 391 <string>Open saved task</string> 384 392 </property> 385 393 <property name="shortcut"> 386 394 <string>Ctrl+O</string> 387 395 </property> 388 396 </action> 389 397 <action name="actionSettingsPreferences"> 390 398 <property name="icon"> 391 392 393 </property> 394 <property name="text"> 395 396 </property> 397 <property name="statusTip"> 398 399 <iconset resource="../resources/tspsg.qrc"> 400 <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset> 401 </property> 402 <property name="text"> 403 <string>&Preferences...</string> 404 </property> 405 <property name="statusTip"> 406 <string>Application preferences</string> 399 407 </property> 400 408 </action> 401 409 <action name="actionHelpContents"> 402 410 <property name="enabled"> 403 404 </property> 405 <property name="icon"> 406 407 408 </property> 409 <property name="text"> 410 411 </property> 412 <property name="statusTip"> 413 411 <bool>false</bool> 412 </property> 413 <property name="icon"> 414 <iconset resource="../resources/tspsg.qrc"> 415 <normaloff>:/images/icons/contents.png</normaloff>:/images/icons/contents.png</iconset> 416 </property> 417 <property name="text"> 418 <string>&Contents</string> 419 </property> 420 <property name="statusTip"> 421 <string>Open help contents</string> 414 422 </property> 415 423 <property name="shortcut"> 416 424 <string>Ctrl+F1</string> 417 425 </property> 418 426 </action> 419 427 <action name="actionHelpContextual"> 420 428 <property name="enabled"> 421 422 </property> 423 <property name="icon"> 424 425 426 </property> 427 <property name="text"> 428 429 </property> 430 <property name="statusTip"> 431 429 <bool>false</bool> 430 </property> 431 <property name="icon"> 432 <iconset resource="../resources/tspsg.qrc"> 433 <normaloff>:/images/icons/help_browser.png</normaloff>:/images/icons/help_browser.png</iconset> 434 </property> 435 <property name="text"> 436 <string>Context &Help</string> 437 </property> 438 <property name="statusTip"> 439 <string>Open context help</string> 432 440 </property> 433 441 <property name="shortcut"> 434 442 <string>F1</string> 435 443 </property> 436 444 </action> 437 445 <action name="actionHelpAbout"> 438 446 <property name="icon"> 439 440 441 </property> 442 <property name="text"> 443 444 </property> 445 <property name="statusTip"> 446 447 <iconset resource="../resources/tspsg.qrc"> 448 <normaloff>:/images/icons/help_about.png</normaloff>:/images/icons/help_about.png</iconset> 449 </property> 450 <property name="text"> 451 <string>&About TSPSG...</string> 452 </property> 453 <property name="statusTip"> 454 <string>About application</string> 447 455 </property> 448 456 </action> 449 457 <action name="actionFileExit"> 450 458 <property name="icon"> 451 452 453 </property> 454 <property name="text"> 455 456 </property> 457 <property name="statusTip"> 458 459 <iconset resource="../resources/tspsg.qrc"> 460 <normaloff>:/images/icons/exit.png</normaloff>:/images/icons/exit.png</iconset> 461 </property> 462 <property name="text"> 463 <string>E&xit</string> 464 </property> 465 <property name="statusTip"> 466 <string>Exit application</string> 459 467 </property> 460 468 </action> 461 469 <action name="actionFileSaveAsTask"> 462 470 <property name="text"> 463 471 <string>&Task...</string> 464 472 </property> 465 473 <property name="toolTip"> 466 467 </property> 468 <property name="statusTip"> 469 474 <string>Save task</string> 475 </property> 476 <property name="statusTip"> 477 <string>Save task to file</string> 470 478 </property> 471 479 </action> 472 480 <action name="actionSettingsLanguageAutodetect"> 473 481 <property name="checkable"> 474 482 <bool>true</bool> 475 483 </property> 476 484 <property name="checked"> 477 478 </property> 479 <property name="text"> 480 485 <bool>true</bool> 486 </property> 487 <property name="text"> 488 <string>&Autodetect</string> 481 489 </property> 482 490 <property name="toolTip"> 483 484 </property> 485 <property name="statusTip"> 486 491 <string>Detect language automatically</string> 492 </property> 493 <property name="statusTip"> 494 <string>Detect language automatically based on regional settings</string> 487 495 </property> 488 496 </action> 489 497 <action name="actionSettingsLanguageEnglish"> 490 498 <property name="checkable"> 491 499 <bool>true</bool> 492 500 </property> 493 501 <property name="checked"> 494 495 </property> 496 <property name="text"> 497 502 <bool>true</bool> 503 </property> 504 <property name="text"> 505 <string notr="true">&English</string> 498 506 </property> 499 507 <property name="iconText"> 500 508 <string notr="true">English</string> 501 509 </property> 502 510 </action> 503 511 <action name="actionFileSave"> 504 512 <property name="icon"> 505 506 507 </property> 508 <property name="text"> 509 513 <iconset resource="../resources/tspsg.qrc"> 514 <normaloff>:/images/icons/filesave.png</normaloff>:/images/icons/filesave.png</iconset> 515 </property> 516 <property name="text"> 517 <string>&Save</string> 510 518 </property> 511 519 <property name="toolTip"> 512 513 </property> 514 <property name="statusTip"> 515 520 <string>Save task</string> 521 </property> 522 <property name="statusTip"> 523 <string>Save current task</string> 516 524 </property> 517 525 <property name="shortcut"> 518 526 <string>Ctrl+S</string> 519 527 </property> 520 528 </action> 521 529 <action name="actionHelpAboutQt"> 522 530 <property name="icon"> 523 524 525 </property> 526 <property name="text"> 527 528 </property> 529 <property name="statusTip"> 530 531 <iconset resource="../resources/tspsg.qrc"> 532 <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset> 533 </property> 534 <property name="text"> 535 <string>About &Qt...</string> 536 </property> 537 <property name="statusTip"> 538 <string>About Qt library</string> 531 539 </property> 532 540 </action> … … 542 550 <slot>close()</slot> 543 551 <hints> 544 545 546 547 548 549 550 551 552 <hint type="sourcelabel"> 553 <x>-1</x> 554 <y>-1</y> 555 </hint> 556 <hint type="destinationlabel"> 557 <x>294</x> 558 <y>229</y> 559 </hint> 552 560 </hints> 553 561 </connection> … … 558 566 <slot>trigger()</slot> 559 567 <hints> 560 561 562 563 564 565 566 567 568 <hint type="sourcelabel"> 569 <x>58</x> 570 <y>327</y> 571 </hint> 572 <hint type="destinationlabel"> 573 <x>-1</x> 574 <y>-1</y> 575 </hint> 568 576 </hints> 569 577 </connection>
Note: See TracChangeset
for help on using the changeset viewer.