]> git.sesse.net Git - vlc/blob - modules/gui/qt4/Modules.am
Qt: Preferences tree filter, Alternative clear search button
[vlc] / modules / gui / qt4 / Modules.am
1 # vim:syntax=automake
2 ## Howto
3 # For each Q_OBJECT:
4 #   - Add the .moc.cpp to BUILT_SOURCES and nodist_SOURCES_qt4
5 #   - Add the .cpp to SOURCES_qt4
6 #   - Add the .hpp to EXTRA_DIST
7 # For each UI
8 #   - Add it to EXTRA_DIST
9 #   - Add the .h to nodist_SOURCES_qt4
10 # For each ressource (icon, png, ...)
11 #   - Add it to DEPS_res
12
13 AUTOMAKE_OPTIONS = subdir-objects
14 MOSTLYCLEANFILES = $(UIH)
15 SUFFIXES = .ui .h .hpp .moc.cpp .mm
16
17 nodist_SOURCES_qt4 = \
18                 main_interface.moc.cpp \
19                 menus.moc.cpp \
20                 dialogs_provider.moc.cpp \
21                 input_manager.moc.cpp \
22                 actions_manager.moc.cpp \
23                 extensions_manager.moc.cpp \
24                 recents.moc.cpp \
25                 adapters/seekpoints.moc.cpp \
26                 variables.moc.cpp \
27                 dialogs/playlist.moc.cpp \
28                 dialogs/bookmarks.moc.cpp \
29                 dialogs/mediainfo.moc.cpp \
30                 dialogs/extended.moc.cpp \
31                 dialogs/messages.moc.cpp \
32                 dialogs/epg.moc.cpp \
33                 dialogs/errors.moc.cpp \
34                 dialogs/external.moc.cpp \
35                 dialogs/plugins.moc.cpp \
36                 dialogs/preferences.moc.cpp \
37                 dialogs/sout.moc.cpp \
38                 dialogs/convert.moc.cpp \
39                 dialogs/help.moc.cpp \
40                 dialogs/gototime.moc.cpp \
41                 dialogs/toolbar.moc.cpp \
42                 dialogs/open.moc.cpp \
43                 dialogs/openurl.moc.cpp \
44                 dialogs/podcast_configuration.moc.cpp \
45                 dialogs/vlm.moc.cpp \
46                 dialogs/firstrun.moc.cpp \
47                 dialogs/extensions.moc.cpp \
48                 components/extended_panels.moc.cpp \
49                 components/info_panels.moc.cpp \
50                 components/preferences_widgets.moc.cpp \
51                 components/complete_preferences.moc.cpp \
52                 components/simple_preferences.moc.cpp \
53                 components/open_panels.moc.cpp \
54                 components/interface_widgets.moc.cpp \
55                 components/controller.moc.cpp \
56                 components/controller_widget.moc.cpp \
57                 components/epg/EPGChannels.moc.cpp \
58                 components/epg/EPGRuler.moc.cpp \
59                 components/epg/EPGView.moc.cpp \
60                 components/epg/EPGWidget.moc.cpp \
61                 components/playlist/views.moc.cpp \
62                 components/playlist/vlc_model.moc.cpp \
63                 components/playlist/playlist_model.moc.cpp \
64                 components/playlist/playlist.moc.cpp \
65                 components/playlist/standardpanel.moc.cpp \
66                 components/playlist/selector.moc.cpp \
67                 components/sout/profile_selector.moc.cpp \
68                 components/sout/sout_widgets.moc.cpp \
69                 util/input_slider.moc.cpp \
70                 util/timetooltip.moc.cpp \
71                 util/customwidgets.moc.cpp \
72                 util/searchlineedit.moc.cpp \
73                 util/qvlcapp.moc.cpp \
74                 util/pictureflow.moc.cpp \
75                 util/buttons/RoundButton.moc.cpp \
76                 util/buttons/DeckButtonsLayout.moc.cpp \
77                 util/buttons/BrowseButton.moc.cpp \
78                 resources.cpp \
79                 ui/equalizer.h \
80                 ui/video_effects.h \
81                 ui/open_file.h \
82                 ui/open_disk.h \
83                 ui/open_net.h \
84                 ui/open_capture.h \
85                 ui/open.h \
86                 ui/vlm.h \
87                 ui/podcast_configuration.h \
88                 ui/profiles.h \
89                 ui/sprefs_audio.h \
90                 ui/sprefs_input.h \
91                 ui/sprefs_interface.h \
92                 ui/sprefs_subtitles.h \
93                 ui/sprefs_video.h \
94                 ui/streampanel.h \
95                 ui/messages_panel.h \
96                 ui/about.h \
97                 ui/update.h \
98                 dialogs/ml_configuration.moc.cpp \
99                 components/playlist/ml_model.moc.cpp \
100                 ui/sout.h
101
102 DEPS_res = \
103         pixmaps/arrow_down_dark.png \
104         pixmaps/clear.png \
105         pixmaps/eject.png \
106         pixmaps/faster.png \
107         pixmaps/go-next.png \
108         pixmaps/menus/help_16px.png \
109         pixmaps/menus/info_16px.png \
110         pixmaps/menus/messages_16px.png \
111         pixmaps/menus/playlist_16px.png \
112         pixmaps/menus/preferences_16px.png \
113         pixmaps/menus/quit_16px.png \
114         pixmaps/menus/settings_16px.png \
115         pixmaps/menus/stream_16px.png \
116         pixmaps/next.png \
117         pixmaps/next_16px.png \
118         pixmaps/noart-64.png \
119         pixmaps/noart.png \
120         pixmaps/pause.png \
121         pixmaps/pause_16px.png \
122         pixmaps/play.png \
123         pixmaps/play_16px.png \
124         pixmaps/playlist/add.png \
125         pixmaps/playlist/jumpto.png \
126         pixmaps/playlist/playlist.png \
127         pixmaps/playlist/remove.png \
128         pixmaps/playlist/repeat_all.png \
129         pixmaps/playlist/repeat_off.png \
130         pixmaps/playlist/repeat_one.png \
131         pixmaps/playlist/shuffle_off.png \
132         pixmaps/playlist/shuffle_on.png \
133         pixmaps/prefs/advprefs_audio.png \
134         pixmaps/prefs/advprefs_codec.png \
135         pixmaps/prefs/advprefs_extended.png \
136         pixmaps/prefs/advprefs_intf.png \
137         pixmaps/prefs/advprefs_playlist.png \
138         pixmaps/prefs/advprefs_sout.png \
139         pixmaps/prefs/advprefs_video.png \
140         pixmaps/prefs/spref_cone_Audio_64.png \
141         pixmaps/prefs/spref_cone_Hotkeys_64.png \
142         pixmaps/prefs/spref_cone_Input_64.png \
143         pixmaps/prefs/spref_cone_Interface_64.png \
144         pixmaps/prefs/spref_cone_Subtitles_64.png \
145         pixmaps/prefs/spref_cone_Video_64.png \
146         pixmaps/previous.png \
147         pixmaps/previous_16px.png \
148         pixmaps/profile_new.png \
149         pixmaps/sample_complete.png \
150         pixmaps/sample_minimal.png \
151         pixmaps/sample_skins.png \
152         pixmaps/slower.png \
153         pixmaps/space.png \
154         pixmaps/stop.png \
155         pixmaps/stop_16px.png \
156         pixmaps/toolbar/arrows.png \
157         pixmaps/toolbar/aspect-ratio.png \
158         pixmaps/toolbar/atob.png \
159         pixmaps/toolbar/atob_noa.png \
160         pixmaps/toolbar/atob_nob.png \
161         pixmaps/toolbar/defullscreen.png \
162         pixmaps/toolbar/dvd_menu.png \
163         pixmaps/toolbar/dvd_next.png \
164         pixmaps/toolbar/dvd_prev.png \
165         pixmaps/toolbar/extended_16px.png \
166         pixmaps/toolbar/frame-by-frame.png \
167         pixmaps/toolbar/fullscreen.png \
168         pixmaps/toolbar/play_reverse.png \
169         pixmaps/toolbar/record_16px.png \
170         pixmaps/toolbar/snapshot.png \
171         pixmaps/toolbar/skip_for.png \
172         pixmaps/toolbar/skip_back.png \
173         pixmaps/toolbar/tv.png \
174         pixmaps/toolbar/tvtelx.png \
175         pixmaps/toolbar/visu.png \
176         pixmaps/toolbar/volume-high.png \
177         pixmaps/toolbar/volume-low.png \
178         pixmaps/toolbar/volume-medium.png \
179         pixmaps/toolbar/volume-muted.png \
180         pixmaps/toolbar/volume-slider-inside.png \
181         pixmaps/toolbar/volume-slider-outside.png \
182         pixmaps/types/capture-card_16px.png \
183         pixmaps/types/cdda_16px.png \
184         pixmaps/types/disc_16px.png \
185         pixmaps/types/file-asym_16px.png \
186         pixmaps/types/file-wide_16px.png \
187         pixmaps/types/folder-blue_16px.png \
188         pixmaps/types/folder-grey_16px.png \
189         pixmaps/types/harddisk_16px.png \
190         pixmaps/types/network_16px.png \
191         pixmaps/types/tape_16px.png \
192         pixmaps/types/type_directory.png \
193         pixmaps/types/type_file.png \
194         pixmaps/types/type_net.png \
195         pixmaps/types/type_node.png \
196         pixmaps/types/type_playlist.png \
197         pixmaps/types/type_unknown.xpm \
198         pixmaps/util/wait0.png \
199         pixmaps/util/wait1.png \
200         pixmaps/util/wait2.png \
201         pixmaps/util/wait3.png \
202         pixmaps/util/wait4.png \
203         pixmaps/win7/win7thumbnail_pause.png \
204         pixmaps/win7/win7thumbnail_prev.png \
205         pixmaps/win7/win7thumbnail_next.png \
206         pixmaps/win7/win7thumbnail_play.png \
207         pixmaps/update.png \
208         pixmaps/search_clear.png \
209         pixmaps/lock.png
210
211 BUILT_SOURCES += $(nodist_SOURCES_qt4)
212
213 moc_verbose = $(moc_verbose_$(V))
214 moc_verbose_ = $(moc_verbose__$(AM_DEFAULT_VERBOSITY))
215 moc_verbose_0 = @echo "  MOC   " $@;
216 moc_verbose__0 = $(moc_verbose_0)
217
218 uic_verbose = $(uic_verbose_$(V))
219 uic_verbose_ = $(uic_verbose__$(AM_DEFAULT_VERBOSITY))
220 uic_verbose_0 = @echo "  UIC   " $@;
221 uic_verbose__0 = $(uic_verbose_0)
222
223 resources.cpp: vlc.qrc $(DEPS_res)
224         $(AM_V_GEN)$(RCC) -name vlc -o $@ $<
225
226 .hpp.moc.cpp:
227 if HAVE_DARWIN
228         $(moc_verbose)$(MOC) -DQ_WS_MAC $(DEFS) -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) `$(VLC_CONFIG) --cppflags plugin qt4` -o $@ $<
229 else
230 if HAVE_WIN32
231         $(moc_verbose)$(MOC) -DWIN32 $(DEFS) -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) `$(VLC_CONFIG) --cppflags plugin qt4` -o $@ $<
232 else
233         $(moc_verbose)$(MOC) $(DEFS) -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) `$(VLC_CONFIG) --cppflags plugin qt4` -o $@ $<
234 endif
235 endif
236
237 .ui.h:
238         $(AM_V_at)mkdir -p -- ui
239         $(AM_V_at)rm -f $@ $@.tmp
240         $(AM_V_at)echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
241         $(uic_verbose)$(UIC) -tr "Q_" $< >> $@.tmp
242         $(AM_V_at)sed -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp >$@
243         $(AM_V_at)rm -f $@.tmp
244
245 .mm.lo: 
246         $(top_builddir)/libtool --verbose --mode=compile $(CXX) $(objcxxflags) -DQ_WS_MAC -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) `$(VLC_CONFIG) --cxxflags plugin qt4` -c $< -o $@ 
247
248 SOURCES_qt4 =   qt4.cpp \
249                 menus.cpp \
250                 main_interface.cpp \
251                 dialogs_provider.cpp \
252                 input_manager.cpp \
253                 actions_manager.cpp \
254                 extensions_manager.cpp \
255                 recents.cpp \
256                 adapters/seekpoints.cpp \
257                 variables.cpp \
258                 dialogs/playlist.cpp \
259                 dialogs/bookmarks.cpp \
260                 dialogs/preferences.cpp \
261                 dialogs/mediainfo.cpp \
262                 dialogs/ml_configuration.cpp \
263                 dialogs/epg.cpp \
264                 dialogs/extended.cpp \
265                 dialogs/messages.cpp \
266                 dialogs/errors.cpp \
267                 dialogs/external.cpp \
268                 dialogs/plugins.cpp \
269                 dialogs/sout.cpp \
270                 dialogs/convert.cpp \
271                 dialogs/help.cpp \
272                 dialogs/gototime.cpp \
273                 dialogs/toolbar.cpp \
274                 dialogs/open.cpp \
275                 dialogs/openurl.cpp \
276                 dialogs/vlm.cpp \
277                 dialogs/firstrun.cpp \
278                 dialogs/podcast_configuration.cpp \
279                 dialogs/extensions.cpp \
280                 components/extended_panels.cpp \
281                 components/info_panels.cpp \
282                 components/preferences_widgets.cpp \
283                 components/complete_preferences.cpp \
284                 components/simple_preferences.cpp \
285                 components/open_panels.cpp \
286                 components/interface_widgets.cpp \
287                 components/controller.cpp \
288                 components/controller_widget.cpp \
289                 components/epg/EPGChannels.cpp \
290                 components/epg/EPGItem.cpp \
291                 components/epg/EPGRuler.cpp \
292                 components/epg/EPGView.cpp \
293                 components/epg/EPGWidget.cpp \
294                 components/playlist/views.cpp \
295                 components/playlist/ml_item.cpp \
296                 components/playlist/ml_model.cpp \
297                 components/playlist/vlc_model.cpp \
298                 components/playlist/playlist_model.cpp \
299                 components/playlist/playlist_item.cpp \
300                 components/playlist/standardpanel.cpp \
301                 components/playlist/playlist.cpp \
302                 components/playlist/selector.cpp \
303                 components/sout/profile_selector.cpp \
304                 components/sout/sout_widgets.cpp \
305                 util/input_slider.cpp \
306                 util/timetooltip.cpp \
307                 util/customwidgets.cpp \
308                 util/searchlineedit.cpp \
309                 util/registry.cpp \
310                 util/qt_dirs.cpp \
311                 util/pictureflow.cpp \
312                 util/buttons/BrowseButton.cpp \
313                 util/buttons/DeckButtonsLayout.cpp \
314                 util/buttons/RoundButton.cpp
315
316 if HAVE_DARWIN
317 SOURCES_qt4 +=  util/searchlineedit_mac.mm
318 endif
319
320 if HAVE_WIN32
321 SOURCES_qt4 += main_interface_win32.cpp
322 endif
323
324 noinst_HEADERS = \
325         qt4.hpp \
326         menus.hpp \
327         main_interface.hpp \
328         dialogs_provider.hpp \
329         input_manager.hpp \
330         actions_manager.hpp \
331         extensions_manager.hpp \
332         recents.hpp \
333         adapters/seekpoints.hpp \
334         variables.hpp \
335         dialogs/playlist.hpp \
336         dialogs/bookmarks.hpp \
337         dialogs/mediainfo.hpp \
338         dialogs/ml_configuration.hpp \
339         dialogs/extended.hpp \
340         dialogs/messages.hpp \
341         dialogs/epg.hpp \
342         dialogs/errors.hpp \
343         dialogs/external.hpp \
344         dialogs/plugins.hpp \
345         dialogs/preferences.hpp \
346         dialogs/sout.hpp \
347         dialogs/convert.hpp \
348         dialogs/help.hpp \
349         dialogs/gototime.hpp \
350         dialogs/toolbar.hpp \
351         dialogs/open.hpp \
352         dialogs/openurl.hpp \
353         dialogs/vlm.hpp \
354         dialogs/firstrun.hpp \
355         dialogs/podcast_configuration.hpp \
356         dialogs/extensions.hpp \
357         components/extended_panels.hpp \
358         components/info_panels.hpp \
359         components/preferences_widgets.hpp \
360         components/complete_preferences.hpp \
361         components/simple_preferences.hpp \
362         components/open_panels.hpp \
363         components/interface_widgets.hpp \
364         components/controller.hpp \
365         components/controller_widget.hpp \
366         components/epg/EPGChannels.hpp \
367         components/epg/EPGItem.hpp \
368         components/epg/EPGRuler.hpp \
369         components/epg/EPGView.hpp \
370         components/epg/EPGWidget.hpp \
371         components/playlist/views.hpp \
372         components/playlist/ml_item.hpp \
373         components/playlist/ml_model.hpp \
374         components/playlist/vlc_model.hpp \
375         components/playlist/playlist_model.hpp \
376         components/playlist/playlist_item.hpp \
377         components/playlist/standardpanel.hpp \
378         components/playlist/playlist.hpp \
379         components/playlist/selector.hpp \
380         components/playlist/sorting.h \
381         components/sout/profile_selector.hpp \
382         components/sout/sout_widgets.hpp \
383         components/sout/profiles.hpp \
384         util/input_slider.hpp \
385         util/timetooltip.hpp \
386         util/customwidgets.hpp \
387         util/searchlineedit.hpp \
388         util/qvlcframe.hpp \
389         util/qvlcapp.hpp \
390         util/qt_dirs.hpp \
391         util/registry.hpp \
392         util/pictureflow.hpp \
393         util/singleton.hpp \
394         util/buttons/RoundButton.hpp \
395         util/buttons/DeckButtonsLayout.hpp \
396         util/buttons/BrowseButton.hpp
397
398
399 EXTRA_DIST += \
400         vlc.qrc \
401         ui/equalizer.ui \
402         ui/video_effects.ui \
403         ui/open_file.ui \
404         ui/open_disk.ui \
405         ui/open_net.ui \
406         ui/open_capture.ui \
407         ui/open.ui \
408         ui/podcast_configuration.ui \
409         ui/profiles.ui \
410         ui/sprefs_audio.ui \
411         ui/sprefs_input.ui \
412         ui/sprefs_interface.ui \
413         ui/sprefs_subtitles.ui \
414         ui/sprefs_video.ui \
415         ui/streampanel.ui \
416         ui/messages_panel.ui \
417         ui/about.ui \
418         ui/update.ui \
419         ui/sout.ui \
420         ui/vlm.ui \
421         $(DEPS_res)
422