starDict dialog in qml
[mdictionary] / src / plugins / xdxf / xdxf.pro
index 03ee1bd..f342bfb 100644 (file)
@@ -2,38 +2,83 @@ TARGET = xdxf
 
 include(../plugin.pri)
 
-SOURCES +=  \
-    xdxfplugin.cpp \
+QT = core \
+    gui \
+    xml \
+    sql \
+    network\
+    declarative
+
+maemo5 {
+    LIBS += -lbz2 \
+}
+
+!maemo5 {
+    LIBS += -ltar \
+        -lbz2
+}
+maemo5:QT += maemo5
+
+SOURCES += xdxfplugin.cpp \
     TranslationXdxf.cpp \
-    XdxfLoadDialog.cpp \
     XdxfDictDialog.cpp \
-    XdxfSettingsDialog.cpp \
-    XdxfCachingDialog.cpp
-
+    XdxfCachingDialog.cpp \
+    XdxfDialog.cpp \
+    XdxfDictDownloader.cpp \
+    XdxfDictSelectDialog.cpp \
+    XdxfDictDownloadProgressDialog.cpp \
+    DictsModel.cpp \
+    HttpDownloader.cpp
 
-HEADERS += \
-    xdxfplugin.h \
+HEADERS += xdxfplugin.h \
     TranslationXdxf.h \
-    XdxfLoadDialog.h \
-    ../../common/DictDialog.h \
+    ../../include/DictDialog.h \
     XdxfDictDialog.h \
-    ../../common/translation.h \
-    ../../common/settings.h \
-    ../../common/CommonDictInterface.h \
-    XdxfSettingsDialog.h \
-    XdxfCachingDialog.h
-
-RESOURCES += \
-    xdxf.qrc
-
-TRANSLATIONS += dict_xdxf_pl.ts \
-                dict_xdxf_en.ts
-    
+    ../../include/translation.h \
+    ../../include/settings.h \
+    ../../include/CommonDictInterface.h \
+    XdxfCachingDialog.h \
+    XdxfDialog.h \
+    XdxfDictDownloader.h \
+    XdxfDictSelectDialog.h \
+    XdxfDictDownloadProgressDialog.h \
+    DownloadDict.h \
+    DictsModel.h \
+    DictsProxyModel.h \
+    HttpDownloader.h
+
+RESOURCES += xdxf.qrc
+
+TRANSLATIONS += pl_PL.ts \
+                en_US.ts
+
+OTHER_FILES += \
+    ../../mdictionary/qml/XdxfDialog.qml
+
 unix {
-  INSTALLS += dicts
+    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
 
-  dicts.path = $$PLUGINS_DIR
-  dicts.files += ../../../data/dicts/eng-us.xdxf
-  dicts.files += ../../../data/dicts/eng-thai.xdxf
-}
+    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'
+QMAKE_EXTRA_TARGETS += check