Qt: Add dialog geometry restore
[gd/wireshark/.git] / ui / qt / Makefile.common
1 # Makefile.common
2 #     Contains the stuff from Makefile.am and Makefile.nmake that is
3 #     a) common to both files and
4 #     b) portable between both files
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23
24 #
25 include Makefile_custom.common
26
27 # Generated header files that we want in the distribution.
28 GENERATED_HEADER_FILES =
29
30 # Generated header files that we don't want in the distribution.
31 NODIST_GENERATED_HEADER_FILES = \
32         ui_about_dialog.h       \
33         ui_address_editor_frame.h       \
34         ui_bluetooth_att_server_attributes_dialog.h     \
35         ui_bluetooth_devices_dialog.h   \
36         ui_bluetooth_hci_summary_dialog.h       \
37         ui_capture_file_properties_dialog.h     \
38         ui_capture_interfaces_dialog.h  \
39         ui_capture_preferences_frame.h  \
40         ui_coloring_rules_dialog.h      \
41         ui_column_preferences_frame.h   \
42         ui_column_editor_frame.h        \
43         ui_compiled_filter_output.h             \
44         ui_conversation_hash_tables_dialog.h    \
45         ui_decode_as_dialog.h   \
46         ui_display_filter_expression_dialog.h   \
47         ui_dissector_tables_dialog.h    \
48         ui_enabled_protocols_dialog.h   \
49         ui_expert_info_dialog.h \
50         ui_export_object_dialog.h       \
51         ui_export_pdu_dialog.h  \
52         ui_extcap_options_dialog.h      \
53         ui_file_set_dialog.h    \
54         ui_filter_dialog.h      \
55         ui_filter_expression_frame.h    \
56         ui_filter_expressions_preferences_frame.h       \
57         ui_follow_stream_dialog.h       \
58         ui_font_color_preferences_frame.h       \
59         ui_funnel_string_dialog.h       \
60         ui_funnel_text_dialog.h \
61         ui_gsm_map_summary_dialog.h     \
62         ui_iax2_analysis_dialog.h       \
63         ui_import_text_dialog.h \
64         ui_io_graph_dialog.h    \
65         ui_layout_preferences_frame.h   \
66         ui_lbm_lbtrm_transport_dialog.h \
67         ui_lbm_lbtru_transport_dialog.h \
68         ui_lbm_stream_dialog.h \
69         ui_lbm_uimflow_dialog.h \
70         ui_lte_rlc_graph_dialog.h       \
71         ui_main_welcome.h       \
72         ui_main_window.h        \
73         ui_main_window_preferences_frame.h      \
74         ui_manage_interfaces_dialog.h   \
75         ui_module_preferences_scroll_area.h     \
76         ui_mtp3_summary_dialog.h        \
77         ui_overlay_scroll_bar.h \
78         ui_packet_comment_dialog.h      \
79         ui_packet_dialog.h      \
80         ui_packet_format_group_box.h    \
81         ui_packet_range_group_box.h     \
82         ui_preference_editor_frame.h    \
83         ui_preferences_dialog.h \
84         ui_print_dialog.h       \
85         ui_profile_dialog.h     \
86         ui_progress_frame.h \
87         ui_protocol_hierarchy_dialog.h  \
88         ui_remote_capture_dialog.h      \
89         ui_remote_settings_dialog.h     \
90         ui_resolved_addresses_dialog.h  \
91         ui_rtp_analysis_dialog.h        \
92         ui_rtp_player_dialog.h  \
93         ui_rtp_stream_dialog.h  \
94         ui_sctp_all_assocs_dialog.h     \
95         ui_sctp_assoc_analyse_dialog.h  \
96         ui_sctp_chunk_statistics_dialog.h       \
97         ui_sctp_graph_dialog.h  \
98         ui_sctp_graph_arwnd_dialog.h    \
99         ui_sctp_graph_byte_dialog.h     \
100         ui_search_frame.h       \
101         ui_sequence_dialog.h    \
102         ui_show_packet_bytes_dialog.h   \
103         ui_splash_overlay.h     \
104         ui_supported_protocols_dialog.h \
105         ui_tap_parameter_dialog.h       \
106         ui_tcp_stream_dialog.h  \
107         ui_time_shift_dialog.h  \
108         ui_traffic_table_dialog.h       \
109         ui_uat_dialog.h         \
110         ui_voip_calls_dialog.h  \
111         ui_wireless_frame.h
112
113 # Generated C source files that we want in the distribution.
114 GENERATED_C_FILES =     \
115         wireshark-tap-register.c
116
117 # Generated C source files that we don't want in the distribution.
118 NODIST_GENERATED_C_FILES =
119
120 # Generated C++ source files that we want in the distribution.
121 GENERATED_CPP_FILES =
122
123 # Generated C++ source files that we don't want in the distribution.
124 NODIST_GENERATED_CPP_FILES =    \
125         $(MOC_SRC)      \
126         $(QRC_SRC)
127
128 # All the generated files we want in the distribution.
129 GENERATED_FILES =       \
130         $(GENERATED_HEADER_FILES)       \
131         $(GENERATED_C_FILES)    \
132         $(GENERATED_CPP_FILES)
133
134 # All the generated files we don't want in the distribution.
135 NODIST_GENERATED_FILES =        \
136         $(NODIST_GENERATED_HEADER_FILES)        \
137         $(NODIST_GENERATED_C_FILES)     \
138         $(NODIST_GENERATED_CPP_FILES)
139
140 # Files that generate compileable files
141 GENERATOR_FILES =
142
143 #
144 # Headers that have to be run through moc.
145 #
146 MOC_HDRS =      \
147         about_dialog.h  \
148         accordion_frame.h       \
149         address_editor_frame.h  \
150         bluetooth_att_server_attributes_dialog.h        \
151         bluetooth_devices_dialog.h      \
152         bluetooth_hci_summary_dialog.h  \
153         byte_view_tab.h \
154         byte_view_text.h        \
155         capture_file.h  \
156         capture_file_dialog.h   \
157         capture_file_properties_dialog.h        \
158         capture_filter_combo.h  \
159         capture_filter_edit.h   \
160         capture_filter_syntax_worker.h  \
161         capture_info_dialog.h   \
162         capture_interfaces_dialog.h     \
163         capture_preferences_frame.h     \
164         coloring_rules_dialog.h \
165         color_utils.h   \
166         column_preferences_frame.h      \
167         column_editor_frame.h   \
168         compiled_filter_output.h        \
169         conversation_dialog.h   \
170         conversation_hash_tables_dialog.h       \
171         decode_as_dialog.h      \
172         display_filter_combo.h  \
173         display_filter_edit.h   \
174         display_filter_expression_dialog.h      \
175         dissector_tables_dialog.h       \
176         elided_label.h  \
177         enabled_protocols_dialog.h      \
178         endpoint_dialog.h       \
179         expert_info_dialog.h    \
180         export_dissection_dialog.h      \
181         export_object_dialog.h  \
182         export_pdu_dialog.h     \
183         extcap_argument.h       \
184         extcap_argument_file.h  \
185         extcap_argument_multiselect.h   \
186         extcap_options_dialog.h \
187         file_set_dialog.h       \
188         filter_action.h \
189         filter_dialog.h \
190         filter_expression_frame.h       \
191         filter_expressions_preferences_frame.h  \
192         find_line_edit.h        \
193         follow_stream_dialog.h  \
194         follow_stream_text.h    \
195         font_color_preferences_frame.h  \
196         funnel_string_dialog.h  \
197         funnel_text_dialog.h    \
198         funnel_statistics.h     \
199         geometry_state_dialog.h \
200         gsm_map_summary_dialog.h        \
201         iax2_analysis_dialog.h  \
202         import_text_dialog.h    \
203         interface_tree.h        \
204         io_graph_dialog.h       \
205         label_stack.h   \
206         layout_preferences_frame.h      \
207         lbm_lbtrm_transport_dialog.h    \
208         lbm_lbtru_transport_dialog.h    \
209         lbm_stream_dialog.h     \
210         lbm_uimflow_dialog.h    \
211         lte_mac_statistics_dialog.h     \
212         lte_rlc_graph_dialog.h  \
213         lte_rlc_statistics_dialog.h     \
214         main_status_bar.h       \
215         main_welcome.h  \
216         main_window.h   \
217         main_window_preferences_frame.h \
218         manage_interfaces_dialog.h      \
219         module_preferences_scroll_area.h        \
220         multicast_statistics_dialog.h   \
221         mtp3_summary_dialog.h   \
222         overlay_scroll_bar.h    \
223         packet_comment_dialog.h \
224         packet_dialog.h \
225         packet_format_group_box.h       \
226         packet_list.h   \
227         packet_list_model.h     \
228         packet_range_group_box.h        \
229         percent_bar_delegate.h  \
230         preference_editor_frame.h       \
231         preferences_dialog.h    \
232         print_dialog.h  \
233         profile_dialog.h        \
234         progress_frame.h        \
235         proto_tree.h    \
236         protocol_hierarchy_dialog.h     \
237         protocol_preferences_menu.h     \
238         qcustomplot.h   \
239         recent_file_status.h    \
240         related_packet_delegate.h       \
241         remote_capture_dialog.h \
242         remote_settings_dialog.h        \
243         resolved_addresses_dialog.h     \
244         response_time_delay_dialog.h    \
245         rpc_service_response_time_dialog.h      \
246         rtp_analysis_dialog.h   \
247         rtp_audio_stream.h      \
248         rtp_player_dialog.h     \
249         rtp_stream_dialog.h     \
250         sctp_all_assocs_dialog.h        \
251         sctp_assoc_analyse_dialog.h     \
252         search_frame.h  \
253         sctp_chunk_statistics_dialog.h  \
254         sctp_graph_dialog.h     \
255         sctp_graph_arwnd_dialog.h       \
256         sctp_graph_byte_dialog.h        \
257         search_frame.h  \
258         sequence_diagram.h      \
259         sequence_dialog.h       \
260         service_response_time_dialog.h  \
261         show_packet_bytes_dialog.h      \
262         simple_dialog.h \
263         simple_statistics_dialog.h      \
264         sparkline_delegate.h    \
265         splash_overlay.h        \
266         stats_tree_dialog.h     \
267         stock_icon_tool_button.h        \
268         supported_protocols_dialog.h    \
269         syntax_line_edit.h      \
270         tap_parameter_dialog.h  \
271         tcp_stream_dialog.h     \
272         time_shift_dialog.h     \
273         traffic_table_dialog.h  \
274         uat_dialog.h    \
275         voip_calls_dialog.h     \
276         wireless_frame.h        \
277         wireshark_application.h \
278         wireshark_dialog.h      \
279         wlan_statistics_dialog.h
280
281 #
282 # .ui files.
283 #
284 UI_FILES =      \
285         about_dialog.ui \
286         address_editor_frame.ui \
287         bluetooth_att_server_attributes_dialog.ui       \
288         bluetooth_devices_dialog.ui     \
289         bluetooth_hci_summary_dialog.ui \
290         capture_file_properties_dialog.ui       \
291         capture_interfaces_dialog.ui    \
292         capture_preferences_frame.ui    \
293         coloring_rules_dialog.ui        \
294         column_preferences_frame.ui     \
295         column_editor_frame.ui  \
296         compiled_filter_output.ui \
297         conversation_hash_tables_dialog.ui      \
298         decode_as_dialog.ui     \
299         display_filter_expression_dialog.ui     \
300         dissector_tables_dialog.ui      \
301         enabled_protocols_dialog.ui     \
302         expert_info_dialog.ui   \
303         export_object_dialog.ui \
304         export_pdu_dialog.ui    \
305         extcap_options_dialog.ui        \
306         file_set_dialog.ui      \
307         filter_dialog.ui        \
308         filter_expression_frame.ui      \
309         filter_expressions_preferences_frame.ui \
310         follow_stream_dialog.ui \
311         font_color_preferences_frame.ui \
312         funnel_string_dialog.ui \
313         funnel_text_dialog.ui   \
314         gsm_map_summary_dialog.ui       \
315         iax2_analysis_dialog.ui \
316         import_text_dialog.ui   \
317         io_graph_dialog.ui      \
318         layout_preferences_frame.ui     \
319         lbm_lbtrm_transport_dialog.ui   \
320         lbm_lbtru_transport_dialog.ui   \
321         lbm_stream_dialog.ui    \
322         lbm_uimflow_dialog.ui   \
323         lte_rlc_graph_dialog.ui \
324         main_welcome.ui \
325         main_window.ui  \
326         main_window_preferences_frame.ui        \
327         manage_interfaces_dialog.ui             \
328         module_preferences_scroll_area.ui       \
329         mtp3_summary_dialog.ui  \
330         packet_format_group_box.ui      \
331         packet_range_group_box.ui       \
332         packet_comment_dialog.ui        \
333         packet_dialog.ui        \
334         preference_editor_frame.ui      \
335         preferences_dialog.ui   \
336         print_dialog.ui \
337         profile_dialog.ui       \
338         progress_frame.ui       \
339         protocol_hierarchy_dialog.ui    \
340         remote_capture_dialog.ui        \
341         remote_settings_dialog.ui       \
342         resolved_addresses_dialog.ui    \
343         rtp_analysis_dialog.ui  \
344         rtp_player_dialog.ui    \
345         rtp_stream_dialog.ui    \
346         sctp_all_assocs_dialog.ui       \
347         sctp_assoc_analyse_dialog.ui    \
348         sctp_chunk_statistics_dialog.ui \
349         sctp_graph_dialog.ui    \
350         sctp_graph_arwnd_dialog.ui      \
351         sctp_graph_byte_dialog.ui       \
352         search_frame.ui \
353         sequence_dialog.ui      \
354         show_packet_bytes_dialog.ui     \
355         splash_overlay.ui       \
356         supported_protocols_dialog.ui   \
357         tap_parameter_dialog.ui \
358         tcp_stream_dialog.ui    \
359         time_shift_dialog.ui    \
360         traffic_table_dialog.ui \
361         uat_dialog.ui           \
362         voip_calls_dialog.ui    \
363         wireless_frame.ui
364
365 #
366 # The .moc.cpp files generated from them.
367 # We do *not* include these in the distribution; if you have the Qt SDK
368 # installed, so that you can build Qt-based applications, you have moc
369 # installed.
370 #
371 MOC_SRC = $(MOC_HDRS:.h=.moc.cpp)
372
373 #
374 # .qrc files.
375 #
376 # Should QRC_FILES or QRC_SRC depend on QRC_IMAGES?
377 QRC_FILES =     \
378         ../../image/about.qrc   \
379         ../../image/languages/languages.qrc     \
380         ../../image/layout.qrc  \
381         ../../image/toolbar.qrc \
382         ../../image/wsicon.qrc  \
383         i18n.qrc
384
385 #
386 # .ts files.
387 # wireshark_en should be pluralonly.
388 #
389 TS_FILES =      \
390         wireshark_de.ts \
391         wireshark_en.ts \
392         wireshark_fr.ts \
393         wireshark_it.ts \
394         wireshark_ja_JP.ts      \
395         wireshark_pl.ts \
396         wireshark_zh_CN.ts
397
398 #
399 # .qm files.
400 #
401 # Should they be auto-generated ?
402 QM_FILES = $(TS_FILES:.ts=.qm)
403
404 #
405 # The .rcc.cpp files generated from them.
406 # We do *not* include these in the distribution; if you have the Qt SDK
407 # installed, so that you can build Qt-based applications, you have moc
408 # installed.
409 #
410 QRC_SRC = $(QRC_FILES:.qrc=.rcc.cpp)
411
412 WIRESHARK_QT_SRC =      \
413         about_dialog.cpp        \
414         accordion_frame.cpp     \
415         address_editor_frame.cpp        \
416         bluetooth_att_server_attributes_dialog.cpp      \
417         bluetooth_devices_dialog.cpp    \
418         bluetooth_hci_summary_dialog.cpp        \
419         byte_view_tab.cpp       \
420         byte_view_text.cpp      \
421         capture_file.cpp        \
422         capture_file_dialog.cpp \
423         capture_file_properties_dialog.cpp      \
424         capture_filter_combo.cpp        \
425         capture_filter_edit.cpp \
426         capture_filter_syntax_worker.cpp        \
427         capture_info_dialog.cpp \
428         capture_interfaces_dialog.cpp   \
429         capture_preferences_frame.cpp   \
430         color_utils.cpp \
431         coloring_rules_dialog.cpp       \
432         column_preferences_frame.cpp    \
433         column_editor_frame.cpp \
434         compiled_filter_output.cpp \
435         conversation_dialog.cpp \
436         conversation_hash_tables_dialog.cpp     \
437         decode_as_dialog.cpp    \
438         display_filter_combo.cpp        \
439         display_filter_edit.cpp \
440         display_filter_expression_dialog.cpp    \
441         dissector_tables_dialog.cpp     \
442         elided_label.cpp        \
443         enabled_protocols_dialog.cpp    \
444         endpoint_dialog.cpp     \
445         export_dissection_dialog.cpp    \
446         export_object_dialog.cpp        \
447         export_pdu_dialog.cpp   \
448         extcap_argument.cpp     \
449         extcap_argument_file.cpp        \
450         extcap_argument_multiselect.cpp \
451         extcap_options_dialog.cpp       \
452         file_set_dialog.cpp     \
453         filter_action.cpp       \
454         filter_dialog.cpp       \
455         filter_expression_frame.cpp     \
456         filter_expressions_preferences_frame.cpp        \
457         find_line_edit.cpp      \
458         follow_stream_dialog.cpp        \
459         follow_stream_text.cpp  \
460         font_color_preferences_frame.cpp        \
461         funnel_string_dialog.cpp        \
462         funnel_text_dialog.cpp  \
463         geometry_state_dialog.cpp       \
464         iax2_analysis_dialog.cpp        \
465         import_text_dialog.cpp  \
466         interface_tree.cpp      \
467         label_stack.cpp \
468         layout_preferences_frame.cpp    \
469         lbm_lbtrm_transport_dialog.cpp  \
470         lbm_lbtru_transport_dialog.cpp  \
471         lbm_stream_dialog.cpp   \
472         lbm_uimflow_dialog.cpp  \
473         lte_mac_statistics_dialog.cpp   \
474         lte_rlc_graph_dialog.cpp        \
475         lte_rlc_statistics_dialog.cpp   \
476         main_status_bar.cpp     \
477         main_welcome.cpp        \
478         main_window.cpp \
479         main_window_preferences_frame.cpp       \
480         main_window_slots.cpp   \
481         manage_interfaces_dialog.cpp    \
482         module_preferences_scroll_area.cpp      \
483         overlay_scroll_bar.cpp  \
484         packet_comment_dialog.cpp       \
485         packet_dialog.cpp       \
486         packet_format_group_box.cpp     \
487         packet_list.cpp \
488         packet_list_model.cpp   \
489         packet_list_record.cpp  \
490         packet_range_group_box.cpp      \
491         percent_bar_delegate.cpp        \
492         preference_editor_frame.cpp     \
493         preferences_dialog.cpp  \
494         print_dialog.cpp        \
495         profile_dialog.cpp      \
496         progress_frame.cpp      \
497         proto_tree.cpp  \
498         protocol_hierarchy_dialog.cpp   \
499         protocol_preferences_menu.cpp   \
500         qcustomplot.cpp \
501         qt_ui_utils.cpp \
502         recent_file_status.cpp  \
503         related_packet_delegate.cpp     \
504         remote_capture_dialog.cpp       \
505         remote_settings_dialog.cpp      \
506         resolved_addresses_dialog.cpp   \
507         response_time_delay_dialog.cpp  \
508         rpc_service_response_time_dialog.cpp    \
509         rtp_analysis_dialog.cpp \
510         rtp_audio_stream.cpp    \
511         rtp_player_dialog.cpp   \
512         rtp_stream_dialog.cpp   \
513         sctp_all_assocs_dialog.cpp      \
514         sctp_assoc_analyse_dialog.cpp   \
515         sctp_chunk_statistics_dialog.cpp        \
516         sctp_graph_dialog.cpp   \
517         sctp_graph_arwnd_dialog.cpp     \
518         sctp_graph_byte_dialog.cpp      \
519         search_frame.cpp        \
520         sequence_diagram.cpp    \
521         sequence_dialog.cpp     \
522         service_response_time_dialog.cpp        \
523         show_packet_bytes_dialog.cpp    \
524         simple_dialog.cpp       \
525         simple_statistics_dialog.cpp    \
526         sparkline_delegate.cpp  \
527         splash_overlay.cpp      \
528         stock_icon.cpp          \
529         stock_icon_tool_button.cpp      \
530         supported_protocols_dialog.cpp  \
531         syntax_line_edit.cpp    \
532         tap_parameter_dialog.cpp        \
533         tcp_stream_dialog.cpp   \
534         time_shift_dialog.cpp   \
535         traffic_table_dialog.cpp        \
536         uat_dialog.cpp  \
537         voip_calls_dialog.cpp   \
538         wireless_frame.cpp      \
539         wireshark_application.cpp       \
540         wireshark_dialog.cpp
541
542 WIRESHARK_QT_TAP_SRC =  \
543         expert_info_dialog.cpp  \
544         funnel_statistics.cpp   \
545         gsm_map_summary_dialog.cpp      \
546         io_graph_dialog.cpp     \
547         lte_mac_statistics_dialog.cpp   \
548         lte_rlc_statistics_dialog.cpp   \
549         mtp3_summary_dialog.cpp \
550         multicast_statistics_dialog.cpp \
551         rtp_stream_dialog.cpp   \
552         sctp_all_assocs_dialog.cpp      \
553         sctp_assoc_analyse_dialog.cpp   \
554         stats_tree_dialog.cpp   \
555         wlan_statistics_dialog.cpp
556
557 noinst_HEADERS =        \
558         $(MOC_HDRS)     \
559         packet_list_record.h    \
560         qcustomplot.h   \
561         qt_ui_utils.h   \
562         stock_icon.h    \
563         tango_colors.h