- Timestamp:
- Mar 22, 2011, 9:31:18 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 15 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.pri
r156 r157 95 95 96 96 share.sources = $$share.files 97 # qmake for Symbian (as of Qt 4.6.2) has a bug: file masks do esn't work, so we need to specify all files manually97 # qmake for Symbian (as of Qt 4.6.2) has a bug: file masks don't work, so we need to specify all files manually 98 98 # l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \ 99 99 # $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \ -
trunk/resources/handheld.qrc
r136 r157 1 1 <RCC> 2 2 <qresource prefix="/images"> 3 <file>icons/ 32x32/application-exit.png</file>4 <file>icons/ 32x32/dialog-cancel.png</file>5 <file>icons/ 32x32/dialog-ok.png</file>6 <file>icons/ 32x32/document-new.png</file>7 <file>icons/ 32x32/document-open.png</file>8 <file>icons/ 32x32/document-save.png</file>9 <file>icons/ 32x32/document-save-as.png</file>10 <file>icons/ 32x32/format-text-color.png</file>11 <file>icons/ 32x32/go-previous.png</file>12 <file>icons/ 32x32/help-about.png</file>13 <file>icons/ 32x32/help-hint.png</file>14 <file>icons/ 32x32/preferences-desktop-font.png</file>15 <file>icons/ 32x32/preferences-system.png</file>16 <file>icons/ 32x32/roll.png</file>3 <file>icons/48x48/application-exit.png</file> 4 <file>icons/48x48/dialog-cancel.png</file> 5 <file>icons/48x48/dialog-ok.png</file> 6 <file>icons/48x48/document-new.png</file> 7 <file>icons/48x48/document-open.png</file> 8 <file>icons/48x48/document-save.png</file> 9 <file>icons/48x48/document-save-as.png</file> 10 <file>icons/48x48/format-text-color.png</file> 11 <file>icons/48x48/go-previous.png</file> 12 <file>icons/48x48/help-about.png</file> 13 <file>icons/48x48/help-hint.png</file> 14 <file>icons/48x48/preferences-desktop-font.png</file> 15 <file>icons/48x48/preferences-system.png</file> 16 <file>icons/48x48/roll.png</file> 17 17 </qresource> 18 18 </RCC> -
trunk/src/globals.h
r151 r157 143 143 144 144 #ifdef HANDHELD 145 # define ICON_SIZE " 32x32"145 # define ICON_SIZE "48x48" 146 146 # define ICON_FORMAT "png" 147 147 #else -
trunk/src/mainwindow.cpp
r154 r157 606 606 dlg->setWindowTitle(tr("About %1").arg(QCoreApplication::applicationName())); 607 607 dlg->setWindowIcon(GET_ICON("help-about")); 608 608 609 dlg->setLayout(vb); 609 610 … … 715 716 QMessageBox::warning(this, tr("Solution Result"), tr("Unable to find a solution.\nMaybe, this task has no solution.")); 716 717 } 717 pd.setLabelText(tr(" Cleaningup..."));718 pd.setLabelText(tr("Memory cleanup...")); 718 719 pd.setMaximum(0); 719 720 pd.setCancelButton(NULL); … … 801 802 while ((step->next != SStep::NoNextStep) && (c < spinCities->value())) { 802 803 if (pd.wasCanceled()) { 803 pd.setLabelText(tr(" Cleaningup..."));804 pd.setLabelText(tr("Memory cleanup...")); 804 805 pd.setMaximum(0); 805 806 pd.setCancelButton(NULL); … … 934 935 solutionText->moveCursor(QTextCursor::Start); 935 936 936 pd.setLabelText(tr(" Cleaningup..."));937 pd.setLabelText(tr("Memory cleanup...")); 937 938 pd.setMaximum(0); 938 939 pd.setCancelButton(NULL); … … 1106 1107 int r; 1107 1108 if (settings->value("Output/HQGraph", DEF_HQ_GRAPH).toBool()) 1108 r = 70;1109 r = logicalDpiX() / 1.27; 1109 1110 else 1110 r = 35;1111 r = logicalDpiX() / 2.54; 1111 1112 qreal x, y; 1112 1113 if (step != NULL) -
trunk/src/tspmodel.cpp
r155 r157 376 376 return false; 377 377 else if (status == QDataStream::ReadPastEnd) 378 err = tr("Unexpected end of file. ");378 err = tr("Unexpected end of file. The file could be corrupted."); 379 379 else if (status == QDataStream::ReadCorruptData) 380 err = tr("Corrupt data read. File possiblycorrupted.");380 err = tr("Corrupt data read. The file could be corrupted."); 381 381 else 382 err = tr("Unknown error. ");382 err = tr("Unknown error. The file could be corrupted."); 383 383 QApplication::restoreOverrideCursor(); 384 384 QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor)); … … 402 402 QApplication::restoreOverrideCursor(); 403 403 QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor)); 404 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" + tr("File version is newer than application supports.\nPlease, try to update application.")); 404 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" 405 + tr("File version (%1) is newer than this version of %3 supports (%2).\n" 406 "Please, try to update the application. Also, the file might be corrupted.") 407 .arg(version).arg(TSPT_VERSION).arg(QApplication::applicationName())); 405 408 QApplication::restoreOverrideCursor(); 406 409 return false; … … 415 418 if (loadError(ds->status())) 416 419 return false; 417 if ((size < 3) || (size > MAX_NUM_CITIES)) { 418 QApplication::restoreOverrideCursor(); 419 QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor)); 420 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" + tr("Unexpected data read.\nFile is possibly corrupted.")); 420 if (size < 3) { 421 QApplication::restoreOverrideCursor(); 422 QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor)); 423 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" 424 + tr("Unexpected data read. The file could be corrupted.")); 425 QApplication::restoreOverrideCursor(); 426 return false; 427 } 428 if (size > MAX_NUM_CITIES) { 429 QApplication::restoreOverrideCursor(); 430 QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor)); 431 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" 432 + tr("The task contains more cities (%1) than this version of %3 supports (%2).\n" 433 "You might be using an old version of the application or the file could be corrupted.") 434 .arg(size).arg(MAX_NUM_CITIES).arg(QApplication::applicationName())); 421 435 QApplication::restoreOverrideCursor(); 422 436 return false; … … 458 472 QApplication::restoreOverrideCursor(); 459 473 QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor)); 460 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" + tr("File version is newer than application supports.\nPlease, try to update application.")); 474 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" 475 + tr("File version (%1) is newer than this version of %3 supports (%2).\n" 476 "Please, try to update the application. Also, the file could be corrupted.") 477 .arg(version).arg(TSPT_VERSION).arg(QApplication::applicationName())); 461 478 QApplication::restoreOverrideCursor(); 462 479 return false; … … 470 487 QApplication::restoreOverrideCursor(); 471 488 QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor)); 472 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" + tr("Unexpected data read.\nFile is possibly corrupted.")); 489 QMessageBox::critical(QApplication::activeWindow(), tr("Task Load"), tr("Unable to load task:") + "\n" 490 + tr("Unexpected data read. The file could be corrupted.")); 473 491 QApplication::restoreOverrideCursor(); 474 492 return false; -
trunk/tspsg.pro
r156 r157 29 29 QMAKE_TARGET_PRODUCT = TSP Solver and Generator 30 30 QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator 31 QMAKE_TARGET_COPYRIGHT = Copyright © 20 10-2011 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name>31 QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2011 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name> 32 32 33 33 # Versioning … … 66 66 macx { 67 67 PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl 68 } else:symbian|maemo* {68 } else:symbian|maemo*|simulator { 69 69 # Nothing here 70 70 } else:unix {
Note: See TracChangeset
for help on using the changeset viewer.