2012-02-02 08:55:00 +00:00
|
|
|
# CMakeLists.txt
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2012-02-02 08:55:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# All .h files which inherit from QObject aka which use the Q_OBJECT macro
|
|
|
|
# need to go here.
|
2013-11-21 01:28:17 +00:00
|
|
|
set(WIRESHARK_QT_HEADERS
|
2014-01-02 17:04:10 +00:00
|
|
|
about_dialog.h
|
2012-12-18 17:21:20 +00:00
|
|
|
accordion_frame.h
|
2012-02-02 08:55:00 +00:00
|
|
|
byte_view_tab.h
|
|
|
|
byte_view_text.h
|
|
|
|
capture_file_dialog.h
|
2013-08-08 00:26:57 +00:00
|
|
|
capture_filter_combo.h
|
|
|
|
capture_filter_edit.h
|
|
|
|
capture_filter_syntax_worker.h
|
2012-02-02 08:55:00 +00:00
|
|
|
capture_info_dialog.h
|
|
|
|
capture_interface_dialog.h
|
2013-11-25 14:15:49 +00:00
|
|
|
capture_interfaces_dialog.h
|
2013-07-23 11:20:45 +00:00
|
|
|
capture_preferences_frame.h
|
2012-02-02 08:55:00 +00:00
|
|
|
color_dialog.h
|
|
|
|
color_utils.h
|
2013-01-23 19:04:36 +00:00
|
|
|
column_preferences_frame.h
|
2014-06-04 09:03:59 +00:00
|
|
|
compiled_filter_output.h
|
2013-11-22 01:07:36 +00:00
|
|
|
decode_as_dialog.h
|
2012-02-02 08:55:00 +00:00
|
|
|
display_filter_combo.h
|
|
|
|
display_filter_edit.h
|
2013-07-25 23:49:47 +00:00
|
|
|
elided_label.h
|
2012-10-12 23:40:29 +00:00
|
|
|
export_dissection_dialog.h
|
2012-10-18 22:20:36 +00:00
|
|
|
export_object_dialog.h
|
2014-01-14 18:37:40 +00:00
|
|
|
export_pdu_dialog.h
|
2012-10-01 22:40:20 +00:00
|
|
|
file_set_dialog.h
|
2013-02-06 19:03:23 +00:00
|
|
|
filter_expressions_preferences_frame.h
|
2013-09-09 19:30:30 +00:00
|
|
|
follow_stream_dialog.h
|
2013-11-14 17:37:40 +00:00
|
|
|
follow_stream_text.h
|
2013-01-24 01:10:12 +00:00
|
|
|
font_color_preferences_frame.h
|
2012-09-18 00:40:10 +00:00
|
|
|
import_text_dialog.h
|
2012-02-02 08:55:00 +00:00
|
|
|
interface_tree.h
|
Add a Qt I/O Graph dialog.
For each graph you can set:
- Its visibility
- A name
- A display filter
- Color, from a fixed list
- Plot style: Line, Impulse, Bar, Stacked Bar, Dot, Square, Diamond
- Basic Y Axes (packets/s, bytes/s, bits/s)
- Computed Y Axes (SUM, MIN, AVG, MAX)
- Smoothing
You can pan and zoom using the mouse and keyboard. Clicking on a graph
selects the last packet for that interval. If all graphs have the same Y
axis a single label is shown, otherwise a legend is shown.
The time scale (X axis) can be toggled between relative seconds and the
time of day.
Graphs can be saved as PDF, PNG, BMP, and JPEG. Settings are "sticky"
via the io_graphs UAT.
To do:
- Minimize graph drawing delays.
- Figure out why smoothing differs from GTK+
- Everything else at the top of io_graph_dialog.cpp
- Fix empty resets.
A fair amount of code was copied from TCPStreamDialog. We might want to
subclass QCustomPlot and place the shared code there.
Move common syntax checking to SyntaxLineEdit.
Move some common code from ui/gtk/io_stat.c to ui/io_graph_item.[ch] and
use it in both GTK+ and Qt.
Make the io_graph_item_t array allocation in io_stat.c static. The
behavior should be identical and this gives us additional compile-time
checks.
Change-Id: I9a3d544469b7048f0761fdbf7bcf20f44ae76577
Reviewed-on: https://code.wireshark.org/review/435
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Tested-by: Gerald Combs <gerald@wireshark.org>
2014-02-12 00:07:10 +00:00
|
|
|
io_graph_dialog.h
|
2012-02-02 08:55:00 +00:00
|
|
|
label_stack.h
|
2013-01-21 05:29:14 +00:00
|
|
|
layout_preferences_frame.h
|
2014-04-08 22:13:45 +00:00
|
|
|
lbm_lbtrm_transport_dialog.h
|
|
|
|
lbm_lbtru_transport_dialog.h
|
|
|
|
lbm_stream_dialog.h
|
|
|
|
lbm_uimflow_dialog.h
|
2012-02-02 08:55:00 +00:00
|
|
|
main_status_bar.h
|
|
|
|
main_welcome.h
|
|
|
|
main_window.h
|
2013-01-19 00:57:57 +00:00
|
|
|
main_window_preferences_frame.h
|
2014-06-24 09:36:51 +00:00
|
|
|
manage_interfaces_dialog.h
|
2013-02-08 01:30:31 +00:00
|
|
|
module_preferences_scroll_area.h
|
2012-12-23 04:37:58 +00:00
|
|
|
packet_comment_dialog.h
|
2012-10-12 23:40:29 +00:00
|
|
|
packet_format_group_box.h
|
2012-02-02 08:55:00 +00:00
|
|
|
packet_list.h
|
|
|
|
packet_list_model.h
|
2012-10-08 20:01:59 +00:00
|
|
|
packet_range_group_box.h
|
2013-01-05 02:30:58 +00:00
|
|
|
preferences_dialog.h
|
2012-11-01 20:57:45 +00:00
|
|
|
print_dialog.h
|
2012-12-29 02:58:56 +00:00
|
|
|
profile_dialog.h
|
2012-07-20 10:35:51 +00:00
|
|
|
progress_bar.h
|
2012-02-02 08:55:00 +00:00
|
|
|
proto_tree.h
|
2013-08-27 20:24:20 +00:00
|
|
|
qcustomplot.h
|
2012-02-02 08:55:00 +00:00
|
|
|
recent_file_status.h
|
2013-12-13 07:25:30 +00:00
|
|
|
sctp_all_assocs_dialog.h
|
|
|
|
sctp_assoc_analyse_dialog.h
|
|
|
|
sctp_chunk_statistics_dialog.h
|
|
|
|
sctp_graph_dialog.h
|
|
|
|
sctp_graph_arwnd_dialog.h
|
|
|
|
sctp_graph_byte_dialog.h
|
2012-12-15 01:04:39 +00:00
|
|
|
search_frame.h
|
2013-10-24 22:52:30 +00:00
|
|
|
sequence_diagram.h
|
|
|
|
sequence_dialog.h
|
2013-07-23 11:20:45 +00:00
|
|
|
simple_dialog_qt.h
|
2012-11-05 03:54:21 +00:00
|
|
|
splash_overlay.h
|
2013-11-21 01:28:17 +00:00
|
|
|
stats_tree_dialog.h
|
2013-07-23 11:20:45 +00:00
|
|
|
summary_dialog.h
|
2012-10-09 00:54:40 +00:00
|
|
|
syntax_line_edit.h
|
2013-08-27 18:13:20 +00:00
|
|
|
tcp_stream_dialog.h
|
2012-12-23 03:45:35 +00:00
|
|
|
time_shift_dialog.h
|
2013-07-25 23:49:47 +00:00
|
|
|
uat_dialog.h
|
2012-02-02 08:55:00 +00:00
|
|
|
wireshark_application.h
|
2012-02-02 12:04:22 +00:00
|
|
|
|
|
|
|
# No Q_OBJECT:
|
|
|
|
# packet_list_record.h
|
|
|
|
# qt_ui_utils.h
|
2013-07-08 16:54:18 +00:00
|
|
|
# related_packet_delegate.h
|
2013-04-25 22:11:40 +00:00
|
|
|
# sparkline_delegate.h
|
2012-02-02 08:55:00 +00:00
|
|
|
)
|
|
|
|
|
2013-11-21 01:28:17 +00:00
|
|
|
set(WIRESHARK_QT_SRC
|
2014-01-02 17:04:10 +00:00
|
|
|
about_dialog.cpp
|
2012-12-18 17:21:20 +00:00
|
|
|
accordion_frame.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
byte_view_tab.cpp
|
|
|
|
byte_view_text.cpp
|
|
|
|
capture_file_dialog.cpp
|
2013-08-08 00:26:57 +00:00
|
|
|
capture_filter_combo.cpp
|
|
|
|
capture_filter_edit.cpp
|
|
|
|
capture_filter_syntax_worker.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
capture_info_dialog.cpp
|
|
|
|
capture_interface_dialog.cpp
|
2013-11-25 14:15:49 +00:00
|
|
|
capture_interfaces_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
color_dialog.cpp
|
|
|
|
color_utils.cpp
|
2013-02-01 00:14:15 +00:00
|
|
|
capture_preferences_frame.cpp
|
2013-01-23 19:04:36 +00:00
|
|
|
column_preferences_frame.cpp
|
2014-06-04 09:03:59 +00:00
|
|
|
compiled_filter_output.cpp
|
2013-11-22 01:07:36 +00:00
|
|
|
decode_as_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
display_filter_combo.cpp
|
|
|
|
display_filter_edit.cpp
|
2013-07-25 23:49:47 +00:00
|
|
|
elided_label.cpp
|
2012-10-12 23:40:29 +00:00
|
|
|
export_dissection_dialog.cpp
|
2012-10-18 22:20:36 +00:00
|
|
|
export_object_dialog.cpp
|
2014-01-14 18:37:40 +00:00
|
|
|
export_pdu_dialog.cpp
|
2012-10-01 22:40:20 +00:00
|
|
|
file_set_dialog.cpp
|
2013-02-06 19:03:23 +00:00
|
|
|
filter_expressions_preferences_frame.cpp
|
2013-09-09 19:30:30 +00:00
|
|
|
follow_stream_dialog.cpp
|
2013-11-14 17:37:40 +00:00
|
|
|
follow_stream_text.cpp
|
2013-01-24 01:10:12 +00:00
|
|
|
font_color_preferences_frame.cpp
|
2012-09-18 00:40:10 +00:00
|
|
|
import_text_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
interface_tree.cpp
|
Add a Qt I/O Graph dialog.
For each graph you can set:
- Its visibility
- A name
- A display filter
- Color, from a fixed list
- Plot style: Line, Impulse, Bar, Stacked Bar, Dot, Square, Diamond
- Basic Y Axes (packets/s, bytes/s, bits/s)
- Computed Y Axes (SUM, MIN, AVG, MAX)
- Smoothing
You can pan and zoom using the mouse and keyboard. Clicking on a graph
selects the last packet for that interval. If all graphs have the same Y
axis a single label is shown, otherwise a legend is shown.
The time scale (X axis) can be toggled between relative seconds and the
time of day.
Graphs can be saved as PDF, PNG, BMP, and JPEG. Settings are "sticky"
via the io_graphs UAT.
To do:
- Minimize graph drawing delays.
- Figure out why smoothing differs from GTK+
- Everything else at the top of io_graph_dialog.cpp
- Fix empty resets.
A fair amount of code was copied from TCPStreamDialog. We might want to
subclass QCustomPlot and place the shared code there.
Move common syntax checking to SyntaxLineEdit.
Move some common code from ui/gtk/io_stat.c to ui/io_graph_item.[ch] and
use it in both GTK+ and Qt.
Make the io_graph_item_t array allocation in io_stat.c static. The
behavior should be identical and this gives us additional compile-time
checks.
Change-Id: I9a3d544469b7048f0761fdbf7bcf20f44ae76577
Reviewed-on: https://code.wireshark.org/review/435
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Tested-by: Gerald Combs <gerald@wireshark.org>
2014-02-12 00:07:10 +00:00
|
|
|
io_graph_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
label_stack.cpp
|
2013-01-21 05:29:14 +00:00
|
|
|
layout_preferences_frame.cpp
|
2014-04-08 22:13:45 +00:00
|
|
|
lbm_lbtrm_transport_dialog.cpp
|
|
|
|
lbm_lbtru_transport_dialog.cpp
|
|
|
|
lbm_stream_dialog.cpp
|
|
|
|
lbm_uimflow_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
main.cpp
|
|
|
|
main_status_bar.cpp
|
|
|
|
main_welcome.cpp
|
|
|
|
main_window.cpp
|
2013-01-19 00:57:57 +00:00
|
|
|
main_window_preferences_frame.cpp
|
2012-10-02 18:47:05 +00:00
|
|
|
main_window_slots.cpp
|
2014-06-24 09:36:51 +00:00
|
|
|
manage_interfaces_dialog.cpp
|
2013-02-08 01:30:31 +00:00
|
|
|
module_preferences_scroll_area.cpp
|
2012-12-23 04:37:58 +00:00
|
|
|
packet_comment_dialog.cpp
|
2012-10-12 23:40:29 +00:00
|
|
|
packet_format_group_box.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
packet_list.cpp
|
|
|
|
packet_list_model.cpp
|
2013-09-09 19:23:17 +00:00
|
|
|
packet_list_record.cpp
|
2012-10-08 20:01:59 +00:00
|
|
|
packet_range_group_box.cpp
|
2013-01-05 02:30:58 +00:00
|
|
|
preferences_dialog.cpp
|
2012-11-01 20:57:45 +00:00
|
|
|
print_dialog.cpp
|
2012-12-29 02:58:56 +00:00
|
|
|
profile_dialog.cpp
|
2012-07-20 10:35:51 +00:00
|
|
|
progress_bar.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
proto_tree.cpp
|
|
|
|
qt_ui_utils.cpp
|
|
|
|
recent_file_status.cpp
|
2013-07-08 16:54:18 +00:00
|
|
|
related_packet_delegate.cpp
|
2013-12-13 07:25:30 +00:00
|
|
|
sctp_all_assocs_dialog.cpp
|
|
|
|
sctp_assoc_analyse_dialog.cpp
|
|
|
|
sctp_chunk_statistics_dialog.cpp
|
|
|
|
sctp_graph_dialog.cpp
|
|
|
|
sctp_graph_arwnd_dialog.cpp
|
|
|
|
sctp_graph_byte_dialog.cpp
|
2013-08-27 11:19:12 +00:00
|
|
|
search_frame.cpp
|
2013-10-24 22:52:30 +00:00
|
|
|
sequence_diagram.cpp
|
|
|
|
sequence_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
simple_dialog_qt.cpp
|
2013-08-27 11:19:12 +00:00
|
|
|
splash_overlay.cpp
|
2012-08-04 00:31:31 +00:00
|
|
|
sparkline_delegate.cpp
|
2013-07-09 18:08:40 +00:00
|
|
|
summary_dialog.cpp
|
2012-10-08 20:01:59 +00:00
|
|
|
syntax_line_edit.cpp
|
2013-08-27 18:13:20 +00:00
|
|
|
tcp_stream_dialog.cpp
|
2012-12-23 03:45:35 +00:00
|
|
|
time_shift_dialog.cpp
|
2013-07-25 23:49:47 +00:00
|
|
|
uat_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
wireshark_application.cpp
|
|
|
|
)
|
|
|
|
|
2013-11-21 01:28:17 +00:00
|
|
|
set(WIRESHARK_QT_TAP_SRC
|
|
|
|
stats_tree_dialog.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(CLEAN_FILES
|
|
|
|
${WIRESHARK_QT_SRC}
|
|
|
|
${WIRESHARK_QT_TAP_SRC}
|
|
|
|
)
|
|
|
|
|
2013-09-09 19:16:40 +00:00
|
|
|
set(DIRTY_FILES
|
2013-09-09 19:23:17 +00:00
|
|
|
qcustomplot.cpp
|
2013-09-09 19:16:40 +00:00
|
|
|
)
|
|
|
|
|
2013-11-21 01:28:17 +00:00
|
|
|
set(WIRESHARK_QT_UI
|
2014-01-02 17:04:10 +00:00
|
|
|
about_dialog.ui
|
2013-02-01 00:14:15 +00:00
|
|
|
capture_preferences_frame.ui
|
2013-11-25 14:15:49 +00:00
|
|
|
capture_interfaces_dialog.ui
|
2013-01-23 19:04:36 +00:00
|
|
|
column_preferences_frame.ui
|
2014-06-04 09:03:59 +00:00
|
|
|
compiled_filter_output.ui
|
2013-11-22 01:07:36 +00:00
|
|
|
decode_as_dialog.ui
|
2012-10-18 22:20:36 +00:00
|
|
|
export_object_dialog.ui
|
2014-01-14 18:37:40 +00:00
|
|
|
export_pdu_dialog.ui
|
2012-12-11 21:51:18 +00:00
|
|
|
file_set_dialog.ui
|
2013-02-06 19:03:23 +00:00
|
|
|
filter_expressions_preferences_frame.ui
|
2013-09-09 19:30:30 +00:00
|
|
|
follow_stream_dialog.ui
|
2013-01-24 01:10:12 +00:00
|
|
|
font_color_preferences_frame.ui
|
2012-09-18 00:40:10 +00:00
|
|
|
import_text_dialog.ui
|
Add a Qt I/O Graph dialog.
For each graph you can set:
- Its visibility
- A name
- A display filter
- Color, from a fixed list
- Plot style: Line, Impulse, Bar, Stacked Bar, Dot, Square, Diamond
- Basic Y Axes (packets/s, bytes/s, bits/s)
- Computed Y Axes (SUM, MIN, AVG, MAX)
- Smoothing
You can pan and zoom using the mouse and keyboard. Clicking on a graph
selects the last packet for that interval. If all graphs have the same Y
axis a single label is shown, otherwise a legend is shown.
The time scale (X axis) can be toggled between relative seconds and the
time of day.
Graphs can be saved as PDF, PNG, BMP, and JPEG. Settings are "sticky"
via the io_graphs UAT.
To do:
- Minimize graph drawing delays.
- Figure out why smoothing differs from GTK+
- Everything else at the top of io_graph_dialog.cpp
- Fix empty resets.
A fair amount of code was copied from TCPStreamDialog. We might want to
subclass QCustomPlot and place the shared code there.
Move common syntax checking to SyntaxLineEdit.
Move some common code from ui/gtk/io_stat.c to ui/io_graph_item.[ch] and
use it in both GTK+ and Qt.
Make the io_graph_item_t array allocation in io_stat.c static. The
behavior should be identical and this gives us additional compile-time
checks.
Change-Id: I9a3d544469b7048f0761fdbf7bcf20f44ae76577
Reviewed-on: https://code.wireshark.org/review/435
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Tested-by: Gerald Combs <gerald@wireshark.org>
2014-02-12 00:07:10 +00:00
|
|
|
io_graph_dialog.ui
|
2013-01-21 05:29:14 +00:00
|
|
|
layout_preferences_frame.ui
|
2014-04-08 22:13:45 +00:00
|
|
|
lbm_lbtrm_transport_dialog.ui
|
|
|
|
lbm_lbtru_transport_dialog.ui
|
|
|
|
lbm_stream_dialog.ui
|
|
|
|
lbm_uimflow_dialog.ui
|
2012-08-18 19:40:12 +00:00
|
|
|
main_welcome.ui
|
2012-02-02 08:55:00 +00:00
|
|
|
main_window.ui
|
2013-01-19 00:57:57 +00:00
|
|
|
main_window_preferences_frame.ui
|
2014-06-24 09:36:51 +00:00
|
|
|
manage_interfaces_dialog.ui
|
2013-02-08 01:30:31 +00:00
|
|
|
module_preferences_scroll_area.ui
|
2012-12-23 04:37:58 +00:00
|
|
|
packet_comment_dialog.ui
|
2012-10-12 23:40:29 +00:00
|
|
|
packet_format_group_box.ui
|
2012-10-08 20:01:59 +00:00
|
|
|
packet_range_group_box.ui
|
2013-01-05 02:30:58 +00:00
|
|
|
preferences_dialog.ui
|
2012-11-01 20:57:45 +00:00
|
|
|
print_dialog.ui
|
2012-12-29 02:58:56 +00:00
|
|
|
profile_dialog.ui
|
2013-12-13 07:25:30 +00:00
|
|
|
sctp_all_assocs_dialog.ui
|
|
|
|
sctp_assoc_analyse_dialog.ui
|
|
|
|
sctp_chunk_statistics_dialog.ui
|
|
|
|
sctp_graph_dialog.ui
|
|
|
|
sctp_graph_arwnd_dialog.ui
|
|
|
|
sctp_graph_byte_dialog.ui
|
2012-12-15 01:04:39 +00:00
|
|
|
search_frame.ui
|
2013-10-24 22:52:30 +00:00
|
|
|
sequence_dialog.ui
|
2012-11-05 03:54:21 +00:00
|
|
|
splash_overlay.ui
|
2013-11-21 01:28:17 +00:00
|
|
|
stats_tree_dialog.ui
|
2013-08-27 11:19:12 +00:00
|
|
|
summary_dialog.ui
|
2013-08-27 18:13:20 +00:00
|
|
|
tcp_stream_dialog.ui
|
2012-12-23 03:45:35 +00:00
|
|
|
time_shift_dialog.ui
|
2013-07-25 23:49:47 +00:00
|
|
|
uat_dialog.ui
|
2012-02-02 08:55:00 +00:00
|
|
|
)
|
|
|
|
|
2013-11-21 01:28:17 +00:00
|
|
|
set(WIRESHARK_QT_QRC
|
2014-01-02 17:04:10 +00:00
|
|
|
../../image/about.qrc
|
2012-08-01 18:27:57 +00:00
|
|
|
../../image/display_filter.qrc
|
2013-01-21 16:58:33 +00:00
|
|
|
../../image/layout.qrc
|
2012-08-01 18:27:57 +00:00
|
|
|
../../image/status.qrc
|
|
|
|
../../image/toolbar.qrc
|
2012-03-07 10:23:50 +00:00
|
|
|
i18n.qrc
|
2012-02-03 17:40:55 +00:00
|
|
|
welcome.qrc
|
|
|
|
)
|
|
|
|
|
2013-11-21 01:28:17 +00:00
|
|
|
set(WIRESHARK_QT_TS
|
2012-07-20 11:59:25 +00:00
|
|
|
qtshark_de.ts
|
2013-11-14 22:35:10 +00:00
|
|
|
qtshark_en.ts # lupdate -pluralonly
|
2012-03-07 10:23:50 +00:00
|
|
|
qtshark_fr.ts
|
2013-10-30 12:31:53 +00:00
|
|
|
qtshark_pl.ts
|
2013-09-09 19:16:40 +00:00
|
|
|
qtshark_zh_CN.ts
|
2012-03-07 10:23:50 +00:00
|
|
|
)
|
|
|
|
|
2012-02-02 12:38:04 +00:00
|
|
|
include_directories(
|
2013-08-27 11:19:12 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2012-02-02 12:38:04 +00:00
|
|
|
)
|
|
|
|
|
2013-04-25 23:04:19 +00:00
|
|
|
if (QT_VERSION EQUAL 5)
|
2013-11-21 01:28:17 +00:00
|
|
|
QT5_ADD_TRANSLATION(WIRESHARK_QT_TS_QM ${WIRESHARK_QT_TS})
|
|
|
|
QT5_ADD_RESOURCES(WIRESHARK_QT_QRC_SRC ${WIRESHARK_QT_QRC})
|
|
|
|
QT5_WRAP_UI(WIRESHARK_QT_UI_SRC ${WIRESHARK_QT_UI})
|
2013-04-25 23:04:19 +00:00
|
|
|
# For now, do the moc stuff manually
|
2013-11-21 01:28:17 +00:00
|
|
|
QT5_WRAP_CPP(WIRESHARK_QT_MOC_SRC ${WIRESHARK_QT_HEADERS})
|
2013-04-25 23:04:19 +00:00
|
|
|
# Starting with cmake 2.8.6, we may also use
|
|
|
|
# set(CMAKE_AUTOMOC TRUE)
|
|
|
|
# or
|
|
|
|
# set_target_properties(${some-source-files} PROPERTIES AUTOMOC TRUE)
|
|
|
|
else()
|
2013-11-21 01:28:17 +00:00
|
|
|
QT4_ADD_TRANSLATION(WIRESHARK_QT_TS_QM ${WIRESHARK_QT_TS})
|
|
|
|
QT4_ADD_RESOURCES(WIRESHARK_QT_QRC_SRC ${WIRESHARK_QT_QRC})
|
|
|
|
QT4_WRAP_UI(WIRESHARK_QT_UI_SRC ${WIRESHARK_QT_UI})
|
2013-04-25 23:04:19 +00:00
|
|
|
# For now, do the moc stuff manually
|
2013-11-21 01:28:17 +00:00
|
|
|
QT4_WRAP_CPP(WIRESHARK_QT_MOC_SRC ${WIRESHARK_QT_HEADERS})
|
2013-04-25 23:04:19 +00:00
|
|
|
# Starting with cmake 2.8.6, we may also use
|
|
|
|
# set(CMAKE_AUTOMOC TRUE)
|
|
|
|
# or
|
|
|
|
# set_target_properties(${some-source-files} PROPERTIES AUTOMOC TRUE)
|
|
|
|
endif()
|
2012-02-02 08:55:00 +00:00
|
|
|
|
|
|
|
if (WERROR)
|
|
|
|
set_source_files_properties(
|
|
|
|
${CLEAN_FILES}
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS -Werror
|
|
|
|
)
|
2013-09-10 22:01:42 +00:00
|
|
|
# The Qt headers generate a ton of shortening errors on 64-bit systems.
|
|
|
|
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
|
|
set_source_files_properties(
|
|
|
|
${CLEAN_FILES}
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS -Wno-shorten-64-to-32
|
|
|
|
)
|
|
|
|
endif()
|
2012-02-02 08:55:00 +00:00
|
|
|
endif()
|
|
|
|
|
2012-08-23 10:30:37 +00:00
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
|
2013-11-21 01:28:17 +00:00
|
|
|
register_tap_files(wireshark-tap-register.c
|
|
|
|
taps
|
|
|
|
${WIRESHARK_QT_TAP_SRC}
|
|
|
|
)
|
|
|
|
|
2012-02-02 08:55:00 +00:00
|
|
|
add_library(qtui STATIC
|
2013-11-21 01:28:17 +00:00
|
|
|
${WIRESHARK_QT_SRC}
|
|
|
|
${WIRESHARK_QT_TAP_SRC}
|
|
|
|
${WIRESHARK_QT_UI_SRC}
|
|
|
|
${WIRESHARK_QT_MOC_SRC}
|
|
|
|
${WIRESHARK_QT_QRC_SRC}
|
|
|
|
${WIRESHARK_QT_TS_QM}
|
|
|
|
${DIRTY_FILES}
|
|
|
|
wireshark-tap-register.c
|
2012-02-02 08:55:00 +00:00
|
|
|
)
|
|
|
|
set_target_properties(qtui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
|
2013-10-13 09:21:55 +00:00
|
|
|
set_target_properties(qtui PROPERTIES FOLDER "UI")
|
2012-02-02 08:55:00 +00:00
|
|
|
|