starDict dialog in qml
[mdictionary] / src / plugins / xdxf / xdxf.pro
index 982fd5b..f342bfb 100644 (file)
@@ -1,12 +1,24 @@
 TARGET = xdxf
+
 include(../plugin.pri)
+
 QT = core \
     gui \
     xml \
     sql \
-    network
+    network\
+    declarative
+
+maemo5 {
+    LIBS += -lbz2 \
+}
 
+!maemo5 {
+    LIBS += -ltar \
+        -lbz2
+}
 maemo5:QT += maemo5
+
 SOURCES += xdxfplugin.cpp \
     TranslationXdxf.cpp \
     XdxfDictDialog.cpp \
@@ -15,8 +27,8 @@ SOURCES += xdxfplugin.cpp \
     XdxfDictDownloader.cpp \
     XdxfDictSelectDialog.cpp \
     XdxfDictDownloadProgressDialog.cpp \
-    DictsModel.cpp
-
+    DictsModel.cpp \
+    HttpDownloader.cpp
 
 HEADERS += xdxfplugin.h \
     TranslationXdxf.h \
@@ -29,25 +41,44 @@ HEADERS += xdxfplugin.h \
     XdxfDialog.h \
     XdxfDictDownloader.h \
     XdxfDictSelectDialog.h \
-    XdxfDictDownloadProgressDialog.h \ 
+    XdxfDictDownloadProgressDialog.h \
     DownloadDict.h \
     DictsModel.h \
-    DictsProxyModel.h
-       
-RESOURCES += \
-    xdxf.qrc
+    DictsProxyModel.h \
+    HttpDownloader.h
+
+RESOURCES += xdxf.qrc
 
 TRANSLATIONS += pl_PL.ts \
-    en_US.ts
-unix { 
-    INSTALLS += dicts \
-        plugin-icon
+                en_US.ts
+
+OTHER_FILES += \
+    ../../mdictionary/qml/XdxfDialog.qml
+
+unix {
     dicts.path = $$PLUGINS_DIR
     dicts.files += ../../../data/dicts/eng-us.xdxf
     dicts.files += ../../../data/dicts/eng-thai.xdxf
     plugin-icon.path = $$DATA_DIR
     plugin-icon.files += xdxf.png
+
+    meego {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/XdxfDialog.qml
+    }
+    else:maemo5 {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/XdxfDialog.qml
+    }
+    else {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/XdxfDialog.qml
+    }
+
+    INSTALLS += dicts \
+        plugin-icon\
+        qmls
 }
 check.commands = echo \
-    'No check here'
+                'No check here'
 QMAKE_EXTRA_TARGETS += check