X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fmdictionary.pro;h=fd4b0bcbb88c0d0e634ebe339a44c9191def2df2;hb=4cb16abfc532777b32ce3489dcc36fa44b6a0e1b;hp=f0cf4bd7f3684507178c827a877bc8cf8f115ee9;hpb=a8a828abad6c5c81f70c772a17da939110871c9d;p=mdictionary diff --git a/src/mdictionary/mdictionary.pro b/src/mdictionary/mdictionary.pro index f0cf4bd..fd4b0bc 100644 --- a/src/mdictionary/mdictionary.pro +++ b/src/mdictionary/mdictionary.pro @@ -3,6 +3,18 @@ TEMPLATE = app include(../../mdictionary.pri) +QT = core \ + gui \ + xml \ + xmlpatterns \ + sql \ + dbus \ + webkit \ + declarative + +maemo5:QT += maemo5 + +message($$CONFIG) SOURCES += gui/main.cpp \ backbone/ConfigGenerator.cpp \ @@ -23,9 +35,10 @@ SOURCES += gui/main.cpp \ gui/BookmarksWidget.cpp \ gui/WelcomeScreenWidget.cpp \ gui/AboutWidget.cpp \ - gui/TranslationTextEdit.cpp \ + gui/TranslationView.cpp \ gui/DBusAdapter.cpp \ - gui/NotifyManager.cpp + gui/NotifyManager.cpp \ + gui/SpinBox.cpp HEADERS += gui/MainWindow.h \ backbone/ConfigGenerator.h \ @@ -51,18 +64,31 @@ HEADERS += gui/MainWindow.h \ gui/BookmarksWidget.h \ gui/WelcomeScreenWidget.h \ ../include/Notify.h \ - gui/TranslationTextEdit.h \ + gui/TranslationView.h \ ../include/AccentsNormalizer.h \ ../include/DictDialog.h \ gui/DBusAdapter.h \ - gui/NotifyManager.h + gui/NotifyManager.h \ + gui/SpinBox.h RESOURCES += ../../data/gui.qrc +TRANSLATIONS += pl_PL.ts \ + en_US.ts + +OTHER_FILES += \ + qml/WelcomeScreenWidget.qml \ + qml/Button.qml \ + qml/AboutWidget.qml \ + qml/SearchBarWidget.qml \ + qml/IconButton.qml \ + qml/MyTextLineEdit.qml + target.path = $$BIN_DIR INSTALLS += target unix { + #icons and misc maemo5 { desktop.path = $$SHARE_DIR/applications/hildon icon64.path = $$SHARE_DIR/icons/hicolor/64x64/hildon @@ -75,13 +101,85 @@ unix { desktop.files += ../../data/other/$${TARGET}.desktop icon64.files += ../../data/icons/64x64/$${TARGET}.png - bookmarks.path = $$DATA_DIR - bookmarks.files += ../../data/icons/16x16/staron.png + shared.path = $$DATA_DIR + shared.files += ../../data/icons/16x16/staron.png + shared.files += ../../data/xsl/mask.png + + #css + meego { + css.path = $$DATA_DIR/css + css.files += ../../data/css_meego/style.css + } + else:maemo5 { + css.path = $$DATA_DIR/css + css.files += ../../data/css_maemo/style.css + } + else { + css.path = $$DATA_DIR/css + css.files += ../../data/css_desktop/style.css + } + + #css images + meego { + css_images.path = $$DATA_DIR/css/images + css_images.files += ../../data/css_meego/images/header-background.png + css_images.files += ../../data/css_meego/images/header-border.png + css_images.files += ../../data/css_meego/images/shadow-grey-bg.png + css_images.files += ../../data/css_meego/images/shadow-white-bg.png + css_images.files += ../../data/css_meego/images/tab-background.png + css_images.files += ../../data/css_meego/images/key-background.png + css_images.files += ../../data/css_meego/images/shadow-transparent-bg. png + css_images.files += ../../data/css_meego/images/splash2.png + } + else:maemo5 { + css.path = $$DATA_DIR/css + css.files += ../../data/css_maemo/style.css + + css_images.path = $$DATA_DIR/css/images + css_images.files += ../../data/css_maemo/images/header-background.png + css_images.files += ../../data/css_maemo/images/header-border.png + css_images.files += ../../data/css_maemo/images/shadow-grey-bg.png + css_images.files += ../../data/css_maemo/images/shadow-white-bg.png + css_images.files += ../../data/css_maemo/images/tab-background.png + css_images.files += ../../data/css_maemo/images/key-background.png + } + else { + css.path = $$DATA_DIR/css + css.files += ../../data/css_desktop/style.css + + css_images.path = $$DATA_DIR/css/images + css_images.files += ../../data/css_desktop/images/header-background.png + css_images.files += ../../data/css_desktop/images/header-border.png + css_images.files += ../../data/css_desktop/images/shadow-grey-bg.png + css_images.files += ../../data/css_desktop/images/shadow-white-bg.png + css_images.files += ../../data/css_desktop/images/tab-background.png + css_images.files += ../../data/css_desktop/images/key-background.png + } + + #services + service.path = $$SHARE_DIR/dbus-1/services + service.files += ../../data/other/com.comarch.mdictionary.service - service.path = $$SHARE_DIR/dbus-1/services - service.files += ../../data/other/com.comarch.mdictionary.service + #qmls (stub) + meego { + qmls.path = $$DATA_DIR/qml + qmls.files += ./qml/WelcomeScreenWidget.qml + } + else:maemo5 { + qmls.path = $$DATA_DIR/qml + qmls.files += ./qml/WelcomeScreenWidget.qml + } + else { + qmls.path = $$DATA_DIR/qml + qmls.files += ./qml/WelcomeScreenWidget.qml + qmls.files += ./qml/Button.qml + qmls.files += ./qml/AboutWidget.qml + qmls.files += ./qml/SearchBarWidget.qml + qmls.files += ./qml/IconButton.qml + qmls.files += ./qml/MyTextLineEdit.qml + } - INSTALLS += desktop icon64 bookmarks service + INSTALLS += desktop icon64 shared service css css_images qmls }