Added settings widget
[mdictionary] / trunk / src / base / base.pro
index 7b328a7..4c6b86e 100644 (file)
@@ -4,7 +4,11 @@
 #
 #-------------------------------------------------
 
-QT       += core gui 
+QT       += core gui sql
+
+maemo5 {
+    QT += maemo5
+}
 
 TARGET = mdictionary
 TEMPLATE = app
@@ -24,7 +28,14 @@ SOURCES += gui/main.cpp\
     gui/TranslationWidget.cpp \
     backbone/backbone.cpp \
     gui/MenuWidget.cpp \
-    gui/MenuTabWidget.cpp
+    gui/MenuTabWidget.cpp \
+    gui/DictManagerWidget.cpp \
+    gui/DictTypeSelectDialog.cpp \
+    backbone/History.cpp \
+    gui/HistoryListDialog.cpp \
+    gui/WordListProxyStyle.cpp \
+    backbone/Bookmarks.cpp \
+    gui/SettingsWidget.cpp
 
 HEADERS  += gui/MainWindow.h \
     gui/SearchBarWidget.h \
@@ -35,7 +46,17 @@ HEADERS  += gui/MainWindow.h \
     ../includes/settings.h \
     ../includes/CommonDictInterface.h \
     gui/MenuWidget.h \
-    gui/MenuTabWidget.h
+    gui/MenuTabWidget.h \
+    gui/DictManagerWidget.h \
+    gui/DictTypeSelectDialog.h \
+    gui/TranslationWidgetAutoResizer.h \
+    ../includes/History.h \
+    gui/HistoryListDialog.h \
+    ../includes/GUIInterface.h \
+    gui/WordListProxyStyle.h \
+    backbone/Bookmarks.h \
+    backbone/BookmarkTranslations.h \
+    gui/SettingsWidget.h
 
 FORMS    += gui/MainWindow.ui
 
@@ -51,13 +72,25 @@ unix {
 
   #MAKE INSTALL
 
-  INSTALLS += target desktop icon64
+  INSTALLS += target desktop icon64 configs
+
+  configs.path = ~/.mdictionary
+  configs.files += ../../../data/mdictionary.defaults
 
   target.path =$$BINDIR
 
+maemo5 {
   desktop.path = $$DATADIR/applications/hildon
-  desktop.files += ../../../data/other/$${TARGET}.desktop
-
   icon64.path = $$DATADIR/icons/hicolor/64x64/hildon
+}
+
+!maemo5 {
+  desktop.path = $$DATADIR/applications
+  icon64.path = $$DATADIR/icons
+}
+  desktop.files += ../../../data/other/$${TARGET}.desktop
   icon64.files += ../../../data/icons/64x64/$${TARGET}.png
 }
+
+RESOURCES += \
+    gui/gui.qrc