Changeset 117 in tspsg-svn
- Timestamp:
- May 2, 2010, 12:51:20 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 88 added
- 20 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/tspsg.qrc
r116 r117 1 1 <RCC> 2 <qresource prefix="/images" 2 <qresource prefix="/images"> 3 3 <file>tspsg.png</file> 4 <file>icons/back.png</file> 5 <file>icons/button_cancel.png</file> 6 <file>icons/button_ok.png</file> 7 <file>icons/color_line.png</file> 8 <file>icons/contents.png</file> 9 <file>icons/contexthelp.png</file> 10 <file>icons/document_preview.png</file> 11 <file>icons/exit.png</file> 12 <file>icons/filenew.png</file> 13 <file>icons/fileopen.png</file> 14 <file>icons/fileprint.png</file> 15 <file>icons/filesave.png</file> 16 <file>icons/filesaveas.png</file> 17 <file>icons/fonts.png</file> 18 <file>icons/help_about.png</file> 19 <file>icons/help_browser.png</file> 20 <file>icons/help_hint.png</file> 21 <file>icons/locale.png</file> 22 <file>icons/preferences_system.png</file> 4 <file>icons/application-exit.png</file> 5 <file>icons/configure-toolbars.png</file> 6 <file>icons/dialog-cancel.png</file> 7 <file>icons/dialog-ok.png</file> 8 <file>icons/document-new.png</file> 9 <file>icons/document-open.png</file> 10 <file>icons/document-print.png</file> 11 <file>icons/document-print-preview.png</file> 12 <file>icons/document-save.png</file> 13 <file>icons/document-save-as.png</file> 14 <file>icons/format-text-color.png</file> 15 <file>icons/go-down.png</file> 16 <file>icons/go-next.png</file> 17 <file>icons/go-previous.png</file> 18 <file>icons/go-up.png</file> 19 <file>icons/help-about.png</file> 20 <file>icons/help-contents.png</file> 21 <file>icons/help-contextual.png</file> 22 <file>icons/help-hint.png</file> 23 <file>icons/list-add.png</file> 24 <file>icons/list-remove.png</file> 25 <file>icons/preferences-desktop-font.png</file> 26 <file>icons/preferences-desktop-locale.png</file> 27 <file>icons/preferences-desktop-theme.png</file> 28 <file>icons/preferences-system.png</file> 23 29 <file>icons/qtlogo-64.png</file> 24 30 <file>icons/roll.png</file> 31 <file>icons/system-software-update.png</file> 25 32 </qresource> 26 33 </RCC> -
trunk/src/globals.h
r116 r117 35 35 #include <QtSvg> 36 36 #endif // NOSVG && QT_VERSION >= 0x040500 37 #include <QtToolBarDialog> 37 38 38 39 // Version info -
trunk/src/mainwindow.cpp
r116 r117 316 316 { 317 317 QPrintDialog pd(printer,this); 318 #if QT_VERSION >= 0x040500319 // No such methods in Qt < 4.5320 pd.setOption(QAbstractPrintDialog::PrintSelection,false);321 pd.setOption(QAbstractPrintDialog::PrintPageRange,false);322 #endif323 318 if (pd.exec() != QDialog::Accepted) 324 319 return; 325 320 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); 326 solutionText-> document()->print(printer);321 solutionText->print(printer); 327 322 QApplication::restoreOverrideCursor(); 328 323 } … … 520 515 dlg->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); 521 516 dlg->setWindowTitle(tr("About %1").arg(QApplication::applicationName())); 517 dlg->setWindowIcon(QIcon(":/images/icons/help-about.png")); 522 518 dlg->setLayout(vb); 523 519 … … 1233 1229 actionFilePrintPreview->setObjectName("actionFilePrintPreview"); 1234 1230 actionFilePrintPreview->setEnabled(false); 1235 actionFilePrintPreview->setIcon(QIcon(":/images/icons/document _preview.png"));1231 actionFilePrintPreview->setIcon(QIcon(":/images/icons/document-print-preview.png")); 1236 1232 1237 1233 actionFilePrint = new QAction(this); 1238 1234 actionFilePrint->setObjectName("actionFilePrint"); 1239 1235 actionFilePrint->setEnabled(false); 1240 actionFilePrint->setIcon(QIcon(":/images/icons/ fileprint.png"));1236 actionFilePrint->setIcon(QIcon(":/images/icons/document-print.png")); 1241 1237 1242 1238 menuFile->insertAction(actionFileExit,actionFilePrintPreview); … … 1261 1257 #ifdef Q_OS_WIN32 1262 1258 actionHelpCheck4Updates = new QAction(this); 1259 actionHelpCheck4Updates->setIcon(QIcon(":/images/icons/system-software-update.png")); 1263 1260 actionHelpCheck4Updates->setEnabled(hasUpdater()); 1264 1261 menuHelp->insertAction(actionHelpAboutQt, actionHelpCheck4Updates); … … 1276 1273 } 1277 1274 #endif // Q_OS_WIN32 1275 1276 #ifndef HANDHELD 1277 toolBarManager = new QtToolBarManager; 1278 toolBarManager->setMainWindow(this); 1279 QString cat = toolBar->windowTitle(); 1280 toolBarManager->addToolBar(toolBar, cat); 1281 #ifndef QT_NO_PRINTER 1282 toolBarManager->addAction(actionFilePrintPreview, cat); 1283 #endif // QT_NO_PRINTER 1284 toolBarManager->addAction(actionHelpContents, cat); 1285 toolBarManager->addAction(actionHelpContextual, cat); 1286 // toolBarManager->addAction(action, cat); 1287 #endif // HANDHELD 1278 1288 } 1279 1289 … … 1301 1311 #endif // Q_OS_WIN32 1302 1312 } 1313 1314 #ifndef HANDHELD 1315 void MainWindow::on_actionSettingsToolbars_triggered() 1316 { 1317 QtToolBarDialog dlg(this); 1318 dlg.setToolBarManager(toolBarManager); 1319 dlg.exec(); 1320 } 1321 #endif // HANDHELD -
trunk/src/mainwindow.h
r116 r117 63 63 void actionSettingsPreferencesTriggered(); 64 64 void actionSettingsLanguageAutodetectTriggered(bool checked); 65 #ifndef HANDHELD 66 void on_actionSettingsToolbars_triggered(); 67 #endif // HANDHELD 65 68 void groupSettingsLanguageListTriggered(QAction *action); 66 69 void actionSettingsStyleSystemTriggered(bool checked); … … 91 94 QActionGroup *groupSettingsLanguageList; 92 95 QActionGroup *groupSettingsStyleList; 96 #ifndef HANDHELD 97 QtToolBarManager *toolBarManager; 98 #endif // HANDHELD 93 99 #ifndef QT_NO_PRINTER 94 100 QPrinter *printer; -
trunk/src/settingsdialog.cpp
r116 r117 35 35 setupUi(this); 36 36 37 buttonBox->button(QDialogButtonBox::Save)->setIcon(QIcon(":/images/icons/ button_ok.png"));37 buttonBox->button(QDialogButtonBox::Save)->setIcon(QIcon(":/images/icons/dialog-ok.png")); 38 38 buttonBox->button(QDialogButtonBox::Save)->setStatusTip(tr("Save new preferences")); 39 39 buttonBox->button(QDialogButtonBox::Save)->setCursor(QCursor(Qt::PointingHandCursor)); 40 buttonBox->button(QDialogButtonBox::Cancel)->setIcon(QIcon(":/images/icons/ button_cancel.png"));40 buttonBox->button(QDialogButtonBox::Cancel)->setIcon(QIcon(":/images/icons/dialog-cancel.png")); 41 41 buttonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Close without saving preferences")); 42 42 buttonBox->button(QDialogButtonBox::Cancel)->setCursor(QCursor(Qt::PointingHandCursor)); … … 108 108 imgIcon->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Expanding); 109 109 imgIcon->setFrameShape(QFrame::NoFrame); 110 imgIcon->setPixmap(QPixmap(":/images/icons/preferences _system.png"));110 imgIcon->setPixmap(QPixmap(":/images/icons/preferences-system.png")); 111 111 imgIcon->setStyleSheet("background-color: #0080C0; padding-top: 11px;"); 112 112 imgIcon->setAlignment(Qt::AlignTop | Qt::AlignHCenter); -
trunk/tspsg.pro
r109 r117 35 35 #REVISION = 100 36 36 REVISION = $$system(svnversion) 37 REVISION = $$replace(REVISION,":","") 37 38 REVISION = $$replace(REVISION,"M","") 38 VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION) 39 #VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION) 40 win32-msvc* { 41 VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) 42 } else { 43 VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION) 44 } 39 45 40 46 DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ … … 76 82 UI_DIR = ./tmp 77 83 84 # Include 3rd party libraries 85 include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) 86 78 87 # Include file(s) 79 88 include(tspsg.pri) -
trunk/ui/mainwindow.ui
r116 r117 162 162 <property name="icon"> 163 163 <iconset resource="../resources/tspsg.qrc"> 164 <normaloff>:/images/icons/ button_ok.png</normaloff>:/images/icons/button_ok.png</iconset>164 <normaloff>:/images/icons/dialog-ok.png</normaloff>:/images/icons/dialog-ok.png</iconset> 165 165 </property> 166 166 </widget> … … 212 212 <property name="icon"> 213 213 <iconset resource="../resources/tspsg.qrc"> 214 <normaloff>:/images/icons/ filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>214 <normaloff>:/images/icons/document-save-as.png</normaloff>:/images/icons/document-save-as.png</iconset> 215 215 </property> 216 216 </widget> … … 242 242 <property name="icon"> 243 243 <iconset resource="../resources/tspsg.qrc"> 244 <normaloff>:/images/icons/ back.png</normaloff>:/images/icons/back.png</iconset>244 <normaloff>:/images/icons/go-previous.png</normaloff>:/images/icons/go-previous.png</iconset> 245 245 </property> 246 246 </widget> … … 275 275 <property name="icon"> 276 276 <iconset resource="../resources/tspsg.qrc"> 277 <normaloff>:/images/icons/ filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>277 <normaloff>:/images/icons/document-save-as.png</normaloff>:/images/icons/document-save-as.png</iconset> 278 278 </property> 279 279 <addaction name="actionFileSaveAsTask"/> … … 303 303 <property name="icon"> 304 304 <iconset resource="../resources/tspsg.qrc"> 305 <normaloff>:/images/icons/ locale.png</normaloff>:/images/icons/locale.png</iconset>305 <normaloff>:/images/icons/preferences-desktop-locale.png</normaloff>:/images/icons/preferences-desktop-locale.png</iconset> 306 306 </property> 307 307 <addaction name="actionSettingsLanguageAutodetect"/> … … 313 313 <string>Style</string> 314 314 </property> 315 <property name="icon"> 316 <iconset resource="../resources/tspsg.qrc"> 317 <normaloff>:/images/icons/preferences-desktop-theme.png</normaloff>:/images/icons/preferences-desktop-theme.png</iconset> 318 </property> 315 319 </widget> 316 320 <addaction name="menuSettingsLanguage"/> 317 321 <addaction name="menuSettingsStyle"/> 322 <addaction name="actionSettingsToolbars"/> 323 <addaction name="separator"/> 318 324 <addaction name="actionSettingsPreferences"/> 319 325 </widget> … … 370 376 <property name="icon"> 371 377 <iconset resource="../resources/tspsg.qrc"> 372 <normaloff>:/images/icons/ filenew.png</normaloff>:/images/icons/filenew.png</iconset>378 <normaloff>:/images/icons/document-new.png</normaloff>:/images/icons/document-new.png</iconset> 373 379 </property> 374 380 <property name="text"> … … 388 394 <property name="icon"> 389 395 <iconset resource="../resources/tspsg.qrc"> 390 <normaloff>:/images/icons/ fileopen.png</normaloff>:/images/icons/fileopen.png</iconset>396 <normaloff>:/images/icons/document-open.png</normaloff>:/images/icons/document-open.png</iconset> 391 397 </property> 392 398 <property name="text"> … … 406 412 <property name="icon"> 407 413 <iconset resource="../resources/tspsg.qrc"> 408 <normaloff>:/images/icons/preferences _system.png</normaloff>:/images/icons/preferences_system.png</iconset>414 <normaloff>:/images/icons/preferences-system.png</normaloff>:/images/icons/preferences-system.png</iconset> 409 415 </property> 410 416 <property name="text"> … … 421 427 <property name="icon"> 422 428 <iconset resource="../resources/tspsg.qrc"> 423 <normaloff>:/images/icons/ contents.png</normaloff>:/images/icons/contents.png</iconset>429 <normaloff>:/images/icons/help-contents.png</normaloff>:/images/icons/help-contents.png</iconset> 424 430 </property> 425 431 <property name="text"> … … 439 445 <property name="icon"> 440 446 <iconset resource="../resources/tspsg.qrc"> 441 <normaloff>:/images/icons/help _browser.png</normaloff>:/images/icons/help_browser.png</iconset>447 <normaloff>:/images/icons/help-contextual.png</normaloff>:/images/icons/help-contextual.png</iconset> 442 448 </property> 443 449 <property name="text"> … … 454 460 <property name="icon"> 455 461 <iconset resource="../resources/tspsg.qrc"> 456 <normaloff>:/images/icons/help _about.png</normaloff>:/images/icons/help_about.png</iconset>462 <normaloff>:/images/icons/help-about.png</normaloff>:/images/icons/help-about.png</iconset> 457 463 </property> 458 464 <property name="text"> … … 466 472 <property name="icon"> 467 473 <iconset resource="../resources/tspsg.qrc"> 468 <normaloff>:/images/icons/ exit.png</normaloff>:/images/icons/exit.png</iconset>474 <normaloff>:/images/icons/application-exit.png</normaloff>:/images/icons/application-exit.png</iconset> 469 475 </property> 470 476 <property name="text"> … … 520 526 <property name="icon"> 521 527 <iconset resource="../resources/tspsg.qrc"> 522 <normaloff>:/images/icons/ filesave.png</normaloff>:/images/icons/filesave.png</iconset>528 <normaloff>:/images/icons/document-save.png</normaloff>:/images/icons/document-save.png</iconset> 523 529 </property> 524 530 <property name="text"> … … 559 565 <property name="statusTip"> 560 566 <string>Automatically choose the most appropriate style</string> 567 </property> 568 </action> 569 <action name="actionSettingsToolbars"> 570 <property name="icon"> 571 <iconset resource="../resources/tspsg.qrc"> 572 <normaloff>:/images/icons/configure-toolbars.png</normaloff>:/images/icons/configure-toolbars.png</iconset> 573 </property> 574 <property name="text"> 575 <string>Toolbars...</string> 576 </property> 577 <property name="statusTip"> 578 <string>Customize toolbars</string> 561 579 </property> 562 580 </action> -
trunk/ui/settingsdialog.ui
r116 r117 9 9 <property name="windowIcon"> 10 10 <iconset resource="../resources/tspsg.qrc"> 11 <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>11 <normaloff>:/images/icons/preferences-system.png</normaloff>:/images/icons/preferences-system.png</iconset> 12 12 </property> 13 13 <widget class="QWidget" name="bgGrey" native="true"> 14 <property name="geometry">15 <rect>16 <x>0</x>17 <y>0</y>18 <width>197</width>19 <height>37</height>20 </rect>21 </property>22 14 <property name="sizePolicy"> 23 24 25 26 15 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 16 <horstretch>0</horstretch> 17 <verstretch>0</verstretch> 18 </sizepolicy> 27 19 </property> 28 20 <property name="autoFillBackground"> 29 21 <bool>true</bool> 30 22 </property> 31 23 <layout class="QVBoxLayout" name="_2"> 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 <normaloff>:/images/icons/help_hint.png</normaloff>:/images/icons/help_hint.png</iconset>85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 24 <property name="spacing"> 25 <number>0</number> 26 </property> 27 <property name="margin"> 28 <number>0</number> 29 </property> 30 <item> 31 <widget class="Line" name="lineHorizontal"> 32 <property name="maximumSize"> 33 <size> 34 <width>16777215</width> 35 <height>2</height> 36 </size> 37 </property> 38 <property name="frameShadow"> 39 <enum>QFrame::Plain</enum> 40 </property> 41 <property name="lineWidth"> 42 <number>2</number> 43 </property> 44 <property name="orientation"> 45 <enum>Qt::Horizontal</enum> 46 </property> 47 </widget> 48 </item> 49 <item> 50 <layout class="QHBoxLayout" name="buttons"> 51 <property name="spacing"> 52 <number>6</number> 53 </property> 54 <property name="margin"> 55 <number>6</number> 56 </property> 57 <item> 58 <widget class="QToolButton" name="buttonHelp"> 59 <property name="enabled"> 60 <bool>false</bool> 61 </property> 62 <property name="cursor"> 63 <cursorShape>PointingHandCursor</cursorShape> 64 </property> 65 <property name="toolTip"> 66 <string>Help</string> 67 </property> 68 <property name="statusTip"> 69 <string>Get preferences help</string> 70 </property> 71 <property name="text"> 72 <string>Help</string> 73 </property> 74 <property name="icon"> 75 <iconset resource="../resources/tspsg.qrc"> 76 <normaloff>:/images/icons/help-hint.png</normaloff>:/images/icons/help-hint.png</iconset> 77 </property> 78 <property name="autoRaise"> 79 <bool>true</bool> 80 </property> 81 </widget> 82 </item> 83 <item> 84 <widget class="QDialogButtonBox" name="buttonBox"> 85 <property name="standardButtons"> 86 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set> 87 </property> 88 </widget> 89 </item> 90 </layout> 91 </item> 100 92 </layout> 101 93 </widget> 102 94 <widget class="QWidget" name="bgWhite" native="true"> 103 <property name="geometry">104 <rect>105 <x>0</x>106 <y>0</y>107 <width>226</width>108 <height>253</height>109 </rect>110 </property>111 95 <property name="autoFillBackground"> 112 96 <bool>true</bool> 113 97 </property> 114 98 <layout class="QHBoxLayout" name="_3"> 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 163 164 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 240 241 242 243 244 245 246 247 248 249 250 251 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 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 99 <item> 100 <widget class="QTabWidget" name="tabWidget"> 101 <widget class="QWidget" name="tabGeneral"> 102 <attribute name="title"> 103 <string>General</string> 104 </attribute> 105 <attribute name="toolTip"> 106 <string>General TSPSG settings</string> 107 </attribute> 108 <layout class="QVBoxLayout" name="_4"> 109 <item> 110 <widget class="QCheckBox" name="cbAutosize"> 111 <property name="cursor"> 112 <cursorShape>PointingHandCursor</cursorShape> 113 </property> 114 <property name="statusTip"> 115 <string>Automatically resize rows and columns to their contents</string> 116 </property> 117 <property name="text"> 118 <string>Autosize of rows and columns</string> 119 </property> 120 </widget> 121 </item> 122 <item> 123 <widget class="QCheckBox" name="cbUseNativeDialogs"> 124 <property name="cursor"> 125 <cursorShape>PointingHandCursor</cursorShape> 126 </property> 127 <property name="statusTip"> 128 <string>Use native File Open and File Save dialogs (uncheck to use Qt's Dialogs)</string> 129 </property> 130 <property name="text"> 131 <string>Use native file dialogs</string> 132 </property> 133 </widget> 134 </item> 135 <item> 136 <spacer name="spacer"> 137 <property name="orientation"> 138 <enum>Qt::Vertical</enum> 139 </property> 140 <property name="sizeHint" stdset="0"> 141 <size> 142 <width>0</width> 143 <height>0</height> 144 </size> 145 </property> 146 </spacer> 147 </item> 148 </layout> 149 </widget> 150 <widget class="QWidget" name="tabTask"> 151 <attribute name="title"> 152 <string>Task</string> 153 </attribute> 154 <attribute name="toolTip"> 155 <string>Task generation and solving settings</string> 156 </attribute> 157 <layout class="QVBoxLayout" name="_9"> 158 <item> 159 <layout class="QFormLayout" name="_5"> 160 <property name="fieldGrowthPolicy"> 161 <enum>QFormLayout::ExpandingFieldsGrow</enum> 162 </property> 163 <item row="0" column="0"> 164 <widget class="QLabel" name="labelFractionalAccuracy"> 165 <property name="text"> 166 <string>Fractional accuracy:</string> 167 </property> 168 <property name="buddy"> 169 <cstring>spinFractionalAccuracy</cstring> 170 </property> 171 </widget> 172 </item> 173 <item row="0" column="1"> 174 <widget class="QSpinBox" name="spinFractionalAccuracy"> 175 <property name="cursor"> 176 <cursorShape>PointingHandCursor</cursorShape> 177 </property> 178 <property name="statusTip"> 179 <string>Accuracy of the fractional values (in decimal places)</string> 180 </property> 181 <property name="maximum"> 182 <number>6</number> 183 </property> 184 </widget> 185 </item> 186 </layout> 187 </item> 188 <item> 189 <widget class="QCheckBox" name="cbSymmetricMode"> 190 <property name="cursor"> 191 <cursorShape>PointingHandCursor</cursorShape> 192 </property> 193 <property name="statusTip"> 194 <string>In this mode the cost of travel from city 1 to city 2 and vice versa is the same</string> 195 </property> 196 <property name="text"> 197 <string>Symmetric mode</string> 198 </property> 199 </widget> 200 </item> 201 <item> 202 <widget class="QGroupBox" name="gbTaskGeneration"> 203 <property name="title"> 204 <string>Task generation</string> 205 </property> 206 <layout class="QVBoxLayout" name="_7"> 207 <item> 208 <layout class="QFormLayout" name="_8"> 209 <property name="fieldGrowthPolicy"> 210 <enum>QFormLayout::ExpandingFieldsGrow</enum> 211 </property> 212 <item row="0" column="0"> 213 <widget class="QLabel" name="labelRandMin"> 214 <property name="text"> 215 <string>Minimal random:</string> 216 </property> 217 <property name="buddy"> 218 <cstring>spinRandMin</cstring> 219 </property> 220 </widget> 221 </item> 222 <item row="0" column="1"> 223 <widget class="QSpinBox" name="spinRandMin"> 224 <property name="cursor"> 225 <cursorShape>PointingHandCursor</cursorShape> 226 </property> 227 <property name="statusTip"> 228 <string>Minimum for random number generation</string> 229 </property> 230 </widget> 231 </item> 232 <item row="1" column="0"> 233 <widget class="QLabel" name="labelRandMax"> 234 <property name="text"> 235 <string>Maximal random:</string> 236 </property> 237 <property name="buddy"> 238 <cstring>spinRandMax</cstring> 239 </property> 240 </widget> 241 </item> 242 <item row="1" column="1"> 243 <widget class="QSpinBox" name="spinRandMax"> 244 <property name="cursor"> 245 <cursorShape>PointingHandCursor</cursorShape> 246 </property> 247 <property name="statusTip"> 248 <string>Maximum for random number generation</string> 249 </property> 250 </widget> 251 </item> 252 </layout> 253 </item> 254 <item> 255 <widget class="QCheckBox" name="cbFractionalRandom"> 256 <property name="cursor"> 257 <cursorShape>PointingHandCursor</cursorShape> 258 </property> 259 <property name="statusTip"> 260 <string>Generate fractional random values with the Fractional accuracy</string> 261 </property> 262 <property name="text"> 263 <string>Fractional random values</string> 264 </property> 265 </widget> 266 </item> 267 </layout> 268 </widget> 269 </item> 270 <item> 271 <spacer name="spacer_2"> 272 <property name="orientation"> 273 <enum>Qt::Vertical</enum> 274 </property> 275 <property name="sizeHint" stdset="0"> 276 <size> 277 <width>10</width> 278 <height>0</height> 279 </size> 280 </property> 281 </spacer> 282 </item> 283 </layout> 284 </widget> 285 <widget class="QWidget" name="tabOutput"> 286 <attribute name="title"> 287 <string>Output</string> 288 </attribute> 289 <attribute name="toolTip"> 290 <string>Solution output settings</string> 291 </attribute> 292 <layout class="QVBoxLayout" name="_6"> 293 <item> 294 <widget class="QCheckBox" name="cbShowGraph"> 295 <property name="cursor"> 296 <cursorShape>PointingHandCursor</cursorShape> 297 </property> 298 <property name="statusTip"> 299 <string>Show graphical representation of the solution</string> 300 </property> 301 <property name="text"> 302 <string>Show solution graph</string> 303 </property> 304 </widget> 305 </item> 306 <item> 307 <layout class="QHBoxLayout" name="_10"> 308 <property name="spacing"> 309 <number>5</number> 310 </property> 311 <item> 312 <spacer name="spacer_7"> 313 <property name="orientation"> 314 <enum>Qt::Horizontal</enum> 315 </property> 316 <property name="sizeType"> 317 <enum>QSizePolicy::Fixed</enum> 318 </property> 319 <property name="sizeHint" stdset="0"> 320 <size> 321 <width>10</width> 322 <height>0</height> 323 </size> 324 </property> 325 </spacer> 326 </item> 327 <item> 328 <widget class="QLabel" name="labelGraphImageFormat"> 329 <property name="text"> 330 <string>Save solution graph as</string> 331 </property> 332 <property name="buddy"> 333 <cstring>comboGraphImageFormat</cstring> 334 </property> 335 </widget> 336 </item> 337 <item> 338 <widget class="QComboBox" name="comboGraphImageFormat"> 339 <property name="cursor"> 340 <cursorShape>PointingHandCursor</cursorShape> 341 </property> 342 <property name="statusTip"> 343 <string>What image format to use for graph when saving solution as HTML</string> 344 </property> 345 </widget> 346 </item> 347 <item> 348 <spacer name="horizontalSpacer"> 349 <property name="orientation"> 350 <enum>Qt::Horizontal</enum> 351 </property> 352 <property name="sizeHint" stdset="0"> 353 <size> 354 <width>0</width> 355 <height>0</height> 356 </size> 357 </property> 358 </spacer> 359 </item> 360 </layout> 361 </item> 362 <item> 363 <widget class="QCheckBox" name="cbShowMatrix"> 364 <property name="cursor"> 365 <cursorShape>PointingHandCursor</cursorShape> 366 </property> 367 <property name="statusTip"> 368 <string>Show solution steps' matrices for every solution step</string> 369 </property> 370 <property name="text"> 371 <string>Show solution steps' matrices</string> 372 </property> 373 </widget> 374 </item> 375 <item> 376 <layout class="QHBoxLayout" name="_12"> 377 <property name="spacing"> 378 <number>0</number> 379 </property> 380 <item> 381 <spacer name="spacer_3"> 382 <property name="orientation"> 383 <enum>Qt::Horizontal</enum> 384 </property> 385 <property name="sizeType"> 386 <enum>QSizePolicy::Fixed</enum> 387 </property> 388 <property name="sizeHint" stdset="0"> 389 <size> 390 <width>10</width> 391 <height>0</height> 392 </size> 393 </property> 394 </spacer> 395 </item> 396 <item> 397 <widget class="QCheckBox" name="cbCitiesLimit"> 398 <property name="cursor"> 399 <cursorShape>PointingHandCursor</cursorShape> 400 </property> 401 <property name="statusTip"> 402 <string>Show or hide solution steps' matrices based on number of cities in the task</string> 403 </property> 404 <property name="text"> 405 <string>Only when <=</string> 406 </property> 407 </widget> 408 </item> 409 <item> 410 <widget class="QSpinBox" name="spinCitiesLimit"> 411 <property name="cursor"> 412 <cursorShape>PointingHandCursor</cursorShape> 413 </property> 414 <property name="statusTip"> 415 <string>Maximum number of cities to show solution steps' matrices</string> 416 </property> 417 <property name="suffix"> 418 <string comment="Don't forget a space at the beginning!"> cities</string> 419 </property> 420 <property name="minimum"> 421 <number>1</number> 422 </property> 423 </widget> 424 </item> 425 <item> 426 <spacer name="spacer_4"> 427 <property name="orientation"> 428 <enum>Qt::Horizontal</enum> 429 </property> 430 <property name="sizeHint" stdset="0"> 431 <size> 432 <width>0</width> 433 <height>0</height> 434 </size> 435 </property> 436 </spacer> 437 </item> 438 </layout> 439 </item> 440 <item> 441 <widget class="QCheckBox" name="cbScrollToEnd"> 442 <property name="cursor"> 443 <cursorShape>PointingHandCursor</cursorShape> 444 </property> 445 <property name="statusTip"> 446 <string>Scroll to the end of solution output after solving</string> 447 </property> 448 <property name="text"> 449 <string>Scroll to solution end</string> 450 </property> 451 </widget> 452 </item> 453 <item> 454 <layout class="QHBoxLayout" name="_11"> 455 <item> 456 <widget class="QGroupBox" name="groupOutput"> 457 <property name="title"> 458 <string>Output font settings</string> 459 </property> 460 <layout class="QHBoxLayout" name="_13"> 461 <item> 462 <widget class="QPushButton" name="buttonFont"> 463 <property name="cursor"> 464 <cursorShape>PointingHandCursor</cursorShape> 465 </property> 466 <property name="statusTip"> 467 <string>Font face for solution output</string> 468 </property> 469 <property name="text"> 470 <string>&Font...</string> 471 </property> 472 <property name="icon"> 473 <iconset resource="../resources/tspsg.qrc"> 474 <normaloff>:/images/icons/preferences-desktop-font.png</normaloff>:/images/icons/preferences-desktop-font.png</iconset> 475 </property> 476 </widget> 477 </item> 478 <item> 479 <widget class="QPushButton" name="buttonColor"> 480 <property name="cursor"> 481 <cursorShape>PointingHandCursor</cursorShape> 482 </property> 483 <property name="statusTip"> 484 <string>Font color for solution output</string> 485 </property> 486 <property name="text"> 487 <string>&Color...</string> 488 </property> 489 <property name="icon"> 490 <iconset resource="../resources/tspsg.qrc"> 491 <normaloff>:/images/icons/format-text-color.png</normaloff>:/images/icons/format-text-color.png</iconset> 492 </property> 493 </widget> 494 </item> 495 <item> 496 <spacer name="spacer_5"> 497 <property name="orientation"> 498 <enum>Qt::Horizontal</enum> 499 </property> 500 <property name="sizeHint" stdset="0"> 501 <size> 502 <width>0</width> 503 <height>0</height> 504 </size> 505 </property> 506 </spacer> 507 </item> 508 </layout> 509 </widget> 510 </item> 511 </layout> 512 </item> 513 <item> 514 <spacer name="spacer_6"> 515 <property name="orientation"> 516 <enum>Qt::Vertical</enum> 517 </property> 518 <property name="sizeHint" stdset="0"> 519 <size> 520 <width>0</width> 521 <height>0</height> 522 </size> 523 </property> 524 </spacer> 525 </item> 526 </layout> 527 </widget> 528 </widget> 529 </item> 546 530 </layout> 547 531 </widget> … … 557 541 <slot>accept()</slot> 558 542 <hints> 559 560 561 562 563 564 565 566 543 <hint type="sourcelabel"> 544 <x>190</x> 545 <y>30</y> 546 </hint> 547 <hint type="destinationlabel"> 548 <x>306</x> 549 <y>231</y> 550 </hint> 567 551 </hints> 568 552 </connection> … … 573 557 <slot>reject()</slot> 574 558 <hints> 575 576 577 578 579 580 581 582 559 <hint type="sourcelabel"> 560 <x>190</x> 561 <y>30</y> 562 </hint> 563 <hint type="destinationlabel"> 564 <x>262</x> 565 <y>245</y> 566 </hint> 583 567 </hints> 584 568 </connection> … … 589 573 <slot>setEnabled(bool)</slot> 590 574 <hints> 591 592 593 594 595 596 597 598 575 <hint type="sourcelabel"> 576 <x>91</x> 577 <y>107</y> 578 </hint> 579 <hint type="destinationlabel"> 580 <x>113</x> 581 <y>132</y> 582 </hint> 599 583 </hints> 600 584 </connection> … … 605 589 <slot>setChecked(bool)</slot> 606 590 <hints> 607 608 609 610 611 612 613 614 591 <hint type="sourcelabel"> 592 <x>91</x> 593 <y>107</y> 594 </hint> 595 <hint type="destinationlabel"> 596 <x>113</x> 597 <y>132</y> 598 </hint> 615 599 </hints> 616 600 </connection> … … 621 605 <slot>setEnabled(bool)</slot> 622 606 <hints> 623 624 625 626 627 628 629 630 607 <hint type="sourcelabel"> 608 <x>113</x> 609 <y>132</y> 610 </hint> 611 <hint type="destinationlabel"> 612 <x>183</x> 613 <y>134</y> 614 </hint> 631 615 </hints> 632 616 </connection> … … 637 621 <slot>setEnabled(bool)</slot> 638 622 <hints> 639 640 641 642 643 644 645 646 623 <hint type="sourcelabel"> 624 <x>113</x> 625 <y>48</y> 626 </hint> 627 <hint type="destinationlabel"> 628 <x>72</x> 629 <y>73</y> 630 </hint> 647 631 </hints> 648 632 </connection> … … 653 637 <slot>setEnabled(bool)</slot> 654 638 <hints> 655 656 657 658 659 660 661 662 639 <hint type="sourcelabel"> 640 <x>113</x> 641 <y>48</y> 642 </hint> 643 <hint type="destinationlabel"> 644 <x>149</x> 645 <y>73</y> 646 </hint> 663 647 </hints> 664 648 </connection>
Note: See TracChangeset
for help on using the changeset viewer.