Changeset d45b48efe9 in tspsg


Ignore:
Timestamp:
Mar 12, 2011, 8:39:19 PM (13 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian
Parents:
7fd1756f1e
git-author:
Oleksii Serdiuk <contacts@…> (03/12/11 20:39:19)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
Message:

Initial Symbian port.

Version 0.1.3.145-beta1, as published in the Nokia Ovi Store.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • install.pri

    r7fd1756f1e rd45b48efe9  
    9494# Symbian
    9595symbian {
     96        TARGET = TSPSG$${D}
     97
    9698        # qmake for Symbian (as of Qt 4.6.2) has a bug: file masks doesn't work, so we need to specify all files manually
    9799        share.sources = $$share.files
     
    101103#       l10n.path = l10n
    102104        docs.sources = $$docs.files
    103         docs.pkg_prerules = \
    104                 "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
    105                 "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
     105#       docs.pkg_prerules = \
     106#               "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
     107#               "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
    106108        DEPLOYMENT += share docs # l10n
    107 #       DEPLOYMENT_PLUGIN += qjpeg qtiff qsvgicon
     109#       DEPLOYMENT_PLUGIN += qjpeg qtiff # qsvgicon
    108110
    109111        ICON = resources/tspsg.svg
     112        TARGET.EPOCHEAPSIZE = 0x20000 0x1100000
     113        # OVI Publish - 0x2003AEFB, Self-signed - 0xA89FD7A3
     114        TARGET.UID3 = 0xA89FD7A3
     115#       TARGET.UID3 = 0x2003AEFB
    110116
    111         appinfo = \
    112                 "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE"
    113         vendorinfo = \
    114                 "%{\"l-homes.org\"}" \
    115                 ":\"l-homes.org\""
    116         default_deployment.pkg_prerules = appinfo vendorinfo
    117         DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0"
     117        languages="&EN,RU,UK"
     118        package_header = "$$LITERAL_HASH{" \
     119                " \"$$QMAKE_TARGET_PRODUCT\"," \
     120                " \"$$QMAKE_TARGET_PRODUCT\"," \
     121                " \"$$QMAKE_TARGET_PRODUCT\"" \
     122                "},($$TARGET.UID3),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
     123        vendor = \
     124                "%{\"Oleksii Serdiuk\",\"Алексей Сердюк\",\"Олексій Сердюк\"}" \
     125                ":\"Oleksii Serdiuk\""
     126#       logo = \
     127#               "=\"resources/tspsg.png\",\"image/png\",\"\""
     128        dependencies = \
     129                "; Depend on Qt $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}" \
     130                "(0x2001E61C),$${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION},{\"Qt\",\"Qt\",\"Qt\"}" \
     131                "; Declare the supported platforms" \
     132                "; Symbian^1" \
     133                "[0x1028315F],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" \
     134                "; Symbian^3" \
     135                "[0x20022E6D],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}"
     136
     137        default_deployment.pkg_prerules -= pkg_platform_dependencies pkg_depends_qt
     138        default_deployment.pkg_prerules += languages package_header vendor dependencies
     139#       default_deployment.pkg_prerules += languages package_header vendor logo dependencies
     140        # OVI Publish - 0x2002CCCF, Self-signed - 0xA000D7CE
     141        DEPLOYMENT.installer_header = "$${LITERAL_HASH}{" \
     142                "\"$$QMAKE_TARGET_PRODUCT Installer\"," \
     143                "\"Установщик $$QMAKE_TARGET_PRODUCT\"," \
     144                "\"Встановлювач $$QMAKE_TARGET_PRODUCT\"" \
     145                "},(0xA000D7CE),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
     146#               "},(0x2002CCCF),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
    118147}
  • src/defaults.h

    r7fd1756f1e rd45b48efe9  
    9292 */
    9393#ifdef Q_WS_S60
    94         #define DEF_FONT_SIZE 8
     94    #define DEF_FONT_SIZE 6
    9595#else
    9696        #define DEF_FONT_SIZE 10
  • src/main.cpp

    r7fd1756f1e rd45b48efe9  
    4141int main(int argc, char *argv[])
    4242{
     43#ifdef Q_WS_S60
     44        // No enough memory for solution graph generation with tasks
     45        // of 20 and more cities if we use non-raster graphics system.
     46        QApplication::setGraphicsSystem("raster");
     47#endif
    4348QApplication app(argc, argv);
    4449        app.setOverrideCursor(QCursor(Qt::WaitCursor));
  • src/mainwindow.cpp

    r7fd1756f1e rd45b48efe9  
    622622#endif // Q_WS_WIN32
    623623
     624#ifndef HANDHELD
    624625        dlg->resize(450, 350);
     626#endif
    625627        QApplication::restoreOverrideCursor();
    626628
     
    11451147                }
    11461148                if (step->price != INFINITY) {
    1147                         pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, isInteger(step->price) ?  QString("\n%1").arg(step->price) : QString("\n%1").arg(step->price, 0, 'f', settings->value("Task/FractionalAccuracy", DEF_FRACTIONAL_ACCURACY).toInt()));
     1149                        pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, isInteger(step->price) ? QString("\n%1").arg(step->price) : QString("\n%1").arg(step->price, 0, 'f', settings->value("Task/FractionalAccuracy", DEF_FRACTIONAL_ACCURACY).toInt()));
    11481150                } else {
    11491151                        pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, "\n"INFSTR);
     
    15891591        //! \hack HACK: A little hack for toolbar icons to have a sane size.
    15901592#if defined(HANDHELD) && !defined(Q_WS_MAEMO_5)
     1593#ifdef Q_WS_S60
     1594        toolBarMain->setIconSize(QSize(logicalDpiX() / 5, logicalDpiY() / 5));
     1595#else
    15911596        toolBarMain->setIconSize(QSize(logicalDpiX() / 4, logicalDpiY() / 4));
     1597#endif
    15921598#endif // HANDHELD
    15931599QToolButton *tb = static_cast<QToolButton *>(toolBarMain->widgetForAction(actionFileSave));
  • src/tspsolver.h

    r7fd1756f1e rd45b48efe9  
    3636 * \brief This value means infinity :-)
    3737 *
    38  *  Some libraries already have \c INFINITY defined.
    39  *  We need to redefine it for the \c INFINITY to always have the same value.
     38 *  Define \c INFINITY if it's not already defined.
    4039 */
    41 #ifdef INFINITY
    42         #undef INFINITY
     40#ifndef INFINITY
     41        #define INFINITY std::numeric_limits<double>::infinity()
    4342#endif
    44 #define INFINITY std::numeric_limits<double>::infinity()
    4543
    4644/*!
  • tspsg.pro

    r7fd1756f1e rd45b48efe9  
    6464        PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl
    6565} else:symbian {
    66         PRL = $$[QT_INSTALL_LIBS] QtCore.prl
     66#       PRL = $$[QT_INSTALL_LIBS] QtCore.prl
    6767} else:unix {
    6868        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
     
    7070        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
    7171}
    72 include($$join(PRL, "/"))
    73 contains(QMAKE_PRL_CONFIG, static) {
    74         # We "embed" SVG icon support on static build
    75         DEFINES += STATIC_BUILD
    76 #       !nosvg:QTPLUGIN += qsvgicon
     72!isEmpty(PRL) {
     73        include($$join(PRL, "/"))
     74        contains(QMAKE_PRL_CONFIG, static) {
     75                # We "embed" SVG icon support on static build
     76                DEFINES += STATIC_BUILD
     77#               !nosvg:QTPLUGIN += qsvgicon
     78        }
    7779}
    7880
Note: See TracChangeset for help on using the changeset viewer.