X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fmdictionary.pro;h=08d30501c86330c421e5d0ea14c4a4a3e8771a30;hb=d6bf5664a12c5a809096f1f12e9b38bdf2dd74df;hp=b1d7a3251607e0f0ecb2a3de09922da373f12f5a;hpb=9e5f16571e70910c7450254afe61ad0af816567a;p=mdictionary diff --git a/src/mdictionary/mdictionary.pro b/src/mdictionary/mdictionary.pro index b1d7a32..08d3050 100644 --- a/src/mdictionary/mdictionary.pro +++ b/src/mdictionary/mdictionary.pro @@ -9,10 +9,13 @@ QT = core \ xmlpatterns \ sql \ dbus \ - webkit + webkit \ + declarative maemo5:QT += maemo5 +message($$CONFIG) + SOURCES += gui/main.cpp \ backbone/ConfigGenerator.cpp \ gui/MainWindow.cpp \ @@ -32,9 +35,11 @@ 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 \ + gui/DictTypeModel.cpp HEADERS += gui/MainWindow.h \ backbone/ConfigGenerator.h \ @@ -60,21 +65,38 @@ 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 \ + gui/DictTypeModel.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 \ + qml/DictListDelegate.qml \ + qml/DictTypeListDelegate.qml \ + qml/WordListDelegate.qml \ + qml/ElementsListView.qml \ + qml/DictTypeListView.qml \ + qml/DictTypeSelectDialog.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 @@ -87,13 +109,91 @@ 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 + qmls.files += ./qml/DictListDelegate.qml + qmls.files += ./qml/DictTypeListDelegate.qml + qmls.files += ./qml/WordListDelegate.qml + qmls.files += ./qml/ElementsListView.qml + qmls.files += ./qml/DictTypeListView.qml + qmls.files += ./qml/DictTypeSelectDialog.qml + } - INSTALLS += desktop icon64 bookmarks service + INSTALLS += desktop icon64 shared service css css_images qmls }