serachBar + progressBar
[mdictionary] / src / mdictionary / mdictionary.pro
1 TARGET = mdictionary
2 TEMPLATE = app
3
4 include(../../mdictionary.pri)
5
6 QT = core \
7     gui \
8     xml \
9     xmlpatterns \
10     sql \
11     dbus \
12     webkit \
13     declarative
14
15 maemo5:QT += maemo5
16
17 message($$CONFIG)
18
19 SOURCES += gui/main.cpp \
20     backbone/ConfigGenerator.cpp \
21     gui/MainWindow.cpp \
22     gui/SearchBarWidget.cpp \
23     gui/WordListWidget.cpp \
24     gui/TranslationWidget.cpp \
25     backbone/backbone.cpp \
26     gui/MenuWidget.cpp \
27     gui/MenuTabWidget.cpp \
28     gui/DictManagerWidget.cpp \
29     gui/DictTypeSelectDialog.cpp \
30     backbone/History.cpp \
31     gui/HistoryListDialog.cpp \
32     gui/WordListProxyStyle.cpp \
33     backbone/Bookmarks.cpp \
34     gui/SettingsWidget.cpp \
35     gui/BookmarksWidget.cpp \
36     gui/WelcomeScreenWidget.cpp \
37     gui/AboutWidget.cpp \
38     gui/TranslationView.cpp \
39     gui/DBusAdapter.cpp \
40     gui/NotifyManager.cpp \
41     gui/SpinBox.cpp
42
43 HEADERS += gui/MainWindow.h \
44     backbone/ConfigGenerator.h \
45     gui/AboutWidget.h \
46     gui/SearchBarWidget.h \
47     gui/WordListWidget.h \
48     gui/TranslationWidget.h \
49     backbone/backbone.h \
50     ../include/translation.h \
51     ../include/settings.h \
52     ../include/CommonDictInterface.h \
53     gui/MenuWidget.h \
54     gui/MenuTabWidget.h \
55     gui/DictManagerWidget.h \
56     gui/DictTypeSelectDialog.h \
57     ../include/History.h \
58     gui/HistoryListDialog.h \
59     ../include/GUIInterface.h \
60     gui/WordListProxyStyle.h \
61     backbone/Bookmarks.h \
62     backbone/BookmarkTranslations.h \
63     gui/SettingsWidget.h \
64     gui/BookmarksWidget.h \
65     gui/WelcomeScreenWidget.h \
66     ../include/Notify.h \
67     gui/TranslationView.h \
68     ../include/AccentsNormalizer.h \
69     ../include/DictDialog.h \
70     gui/DBusAdapter.h \
71     gui/NotifyManager.h \
72     gui/SpinBox.h
73
74 RESOURCES += ../../data/gui.qrc
75
76 TRANSLATIONS += pl_PL.ts \
77                 en_US.ts
78
79 OTHER_FILES += \
80     qml/WelcomeScreenWidget.qml \
81     qml/Button.qml \
82     qml/AboutWidget.qml \
83     qml/SearchBarWidget.qml \
84     qml/IconButton.qml \
85     qml/MyTextLineEdit.qml \
86     qml/ProgressBar.qml
87
88 target.path = $$BIN_DIR
89 INSTALLS += target
90
91 unix { 
92         #icons and misc
93         maemo5 {
94                 desktop.path = $$SHARE_DIR/applications/hildon
95                 icon64.path = $$SHARE_DIR/icons/hicolor/64x64/hildon
96         }    
97         !maemo5 {
98                 desktop.path = $$SHARE_DIR/applications
99                 icon64.path = $$SHARE_DIR/icons
100         }
101
102         desktop.files += ../../data/other/$${TARGET}.desktop
103         icon64.files += ../../data/icons/64x64/$${TARGET}.png
104
105     shared.path = $$DATA_DIR
106     shared.files += ../../data/icons/16x16/staron.png
107     shared.files += ../../data/xsl/mask.png
108
109     #css
110     meego {
111         css.path = $$DATA_DIR/css
112         css.files += ../../data/css_meego/style.css
113     }
114     else:maemo5 {
115         css.path = $$DATA_DIR/css
116         css.files += ../../data/css_maemo/style.css
117     }
118     else {
119         css.path = $$DATA_DIR/css
120         css.files += ../../data/css_desktop/style.css
121     }
122
123     #css images
124     meego {
125         css_images.path = $$DATA_DIR/css/images
126         css_images.files += ../../data/css_meego/images/header-background.png
127         css_images.files += ../../data/css_meego/images/header-border.png
128         css_images.files += ../../data/css_meego/images/shadow-grey-bg.png
129         css_images.files += ../../data/css_meego/images/shadow-white-bg.png
130         css_images.files += ../../data/css_meego/images/tab-background.png
131         css_images.files += ../../data/css_meego/images/key-background.png
132         css_images.files += ../../data/css_meego/images/shadow-transparent-bg. png
133         css_images.files += ../../data/css_meego/images/splash2.png
134     }
135     else:maemo5 {
136         css.path = $$DATA_DIR/css
137         css.files += ../../data/css_maemo/style.css
138
139         css_images.path = $$DATA_DIR/css/images
140         css_images.files += ../../data/css_maemo/images/header-background.png
141         css_images.files += ../../data/css_maemo/images/header-border.png
142         css_images.files += ../../data/css_maemo/images/shadow-grey-bg.png
143         css_images.files += ../../data/css_maemo/images/shadow-white-bg.png
144         css_images.files += ../../data/css_maemo/images/tab-background.png
145         css_images.files += ../../data/css_maemo/images/key-background.png
146     }
147     else {
148         css.path = $$DATA_DIR/css
149         css.files += ../../data/css_desktop/style.css
150
151         css_images.path = $$DATA_DIR/css/images
152         css_images.files += ../../data/css_desktop/images/header-background.png
153         css_images.files += ../../data/css_desktop/images/header-border.png
154         css_images.files += ../../data/css_desktop/images/shadow-grey-bg.png
155         css_images.files += ../../data/css_desktop/images/shadow-white-bg.png
156         css_images.files += ../../data/css_desktop/images/tab-background.png
157         css_images.files += ../../data/css_desktop/images/key-background.png
158     }
159
160     #services
161     service.path = $$SHARE_DIR/dbus-1/services
162     service.files += ../../data/other/com.comarch.mdictionary.service
163
164     #qmls (stub)
165     meego {
166         qmls.path = $$DATA_DIR/qml
167         qmls.files += ./qml/WelcomeScreenWidget.qml
168     }
169     else:maemo5 {
170         qmls.path = $$DATA_DIR/qml
171         qmls.files += ./qml/WelcomeScreenWidget.qml
172     }
173     else {
174         qmls.path = $$DATA_DIR/qml
175         qmls.files += ./qml/WelcomeScreenWidget.qml
176         qmls.files += ./qml/Button.qml 
177         qmls.files += ./qml/AboutWidget.qml
178         qmls.files += ./qml/SearchBarWidget.qml
179         qmls.files += ./qml/IconButton.qml
180         qmls.files += ./qml/MyTextLineEdit.qml
181         qmls.files += ./qml/ProgressBar.qml
182     }
183         
184     INSTALLS += desktop icon64 shared service css css_images qmls
185 }
186
187
188 check.commands = echo 'No check here'
189 QMAKE_EXTRA_TARGETS += check