2012-09-14 20:23:18 +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
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
set(COMMON_UI_SRC
|
|
|
|
alert_box.c
|
2014-06-30 05:38:29 +00:00
|
|
|
capture.c
|
2014-06-30 01:36:22 +00:00
|
|
|
capture_ui_utils.c
|
2014-09-25 23:21:02 +00:00
|
|
|
console.c
|
2013-12-10 19:23:26 +00:00
|
|
|
decode_as_utils.c
|
2012-10-18 21:14:43 +00:00
|
|
|
export_object.c
|
2012-10-16 22:57:22 +00:00
|
|
|
export_object_dicom.c
|
|
|
|
export_object_http.c
|
|
|
|
export_object_smb.c
|
2014-06-05 21:51:49 +00:00
|
|
|
export_object_tftp.c
|
2014-06-30 23:19:59 +00:00
|
|
|
filters.c
|
2013-09-09 19:30:30 +00:00
|
|
|
follow.c
|
2012-09-18 21:51:22 +00:00
|
|
|
help_url.c
|
2012-09-14 20:23:18 +00:00
|
|
|
iface_lists.c
|
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_item.c
|
2013-12-21 16:55:43 +00:00
|
|
|
language.c
|
2014-10-27 22:00:54 +00:00
|
|
|
mcast_stream.c
|
2014-06-30 21:08:24 +00:00
|
|
|
packet_list_utils.c
|
2013-11-19 19:45:38 +00:00
|
|
|
persfilepath_opt.c
|
2013-01-18 00:50:14 +00:00
|
|
|
preference_utils.c
|
2012-12-27 17:10:51 +00:00
|
|
|
profile.c
|
2014-06-30 21:08:24 +00:00
|
|
|
proto_hier_stats.c
|
2013-02-02 05:25:39 +00:00
|
|
|
recent.c
|
2015-09-18 22:13:29 +00:00
|
|
|
rtp_media.c
|
2015-01-15 01:25:56 +00:00
|
|
|
rtp_stream.c
|
2015-06-05 20:17:13 +00:00
|
|
|
service_response_time.c
|
2013-02-20 06:51:16 +00:00
|
|
|
software_update.c
|
2014-01-20 07:53:42 +00:00
|
|
|
ssl_key_export.c
|
|
|
|
tap_export_pdu.c
|
2015-09-03 18:46:20 +00:00
|
|
|
tap-iax2-analysis.c
|
2013-06-26 02:12:12 +00:00
|
|
|
tap-rtp-common.c
|
2013-10-29 12:11:23 +00:00
|
|
|
tap-sctp-analysis.c
|
2013-10-24 22:52:30 +00:00
|
|
|
tap-sequence-analysis.c
|
2015-10-10 22:53:45 +00:00
|
|
|
tap-rlc-graph.c
|
2013-08-27 18:13:20 +00:00
|
|
|
tap-tcp-stream.c
|
2012-09-14 20:23:18 +00:00
|
|
|
text_import.c
|
2012-12-21 17:37:57 +00:00
|
|
|
time_shift.c
|
2014-08-06 17:07:42 +00:00
|
|
|
traffic_table_ui.c
|
2012-09-14 20:23:18 +00:00
|
|
|
util.c
|
2014-11-18 00:43:39 +00:00
|
|
|
voip_calls.c
|
2012-09-14 20:23:18 +00:00
|
|
|
)
|
|
|
|
|
2015-01-15 01:25:56 +00:00
|
|
|
# Enables visibility in IDEs
|
|
|
|
file(GLOB EXTRA_UI_HEADERS
|
2015-09-18 22:13:29 +00:00
|
|
|
rtp_media.h
|
2015-01-15 01:25:56 +00:00
|
|
|
rtp_stream.h
|
2015-09-03 18:46:20 +00:00
|
|
|
tap-iax2-analysis.h
|
|
|
|
tap-rtp-analysis.h
|
2015-01-15 01:25:56 +00:00
|
|
|
)
|
|
|
|
|
2012-12-17 21:24:22 +00:00
|
|
|
set(DIRTY_UI_SRC)
|
2012-09-14 20:23:18 +00:00
|
|
|
|
2012-12-17 21:24:22 +00:00
|
|
|
add_lex_files(DIRTY_UI_SRC
|
2012-09-14 20:23:18 +00:00
|
|
|
text_import_scanner.l
|
|
|
|
)
|
|
|
|
|
2012-12-17 21:24:22 +00:00
|
|
|
set(CLEAN_FILES
|
|
|
|
${COMMON_UI_SRC}
|
|
|
|
)
|
|
|
|
|
CMake: Add /WX
Add "/WX" to the Visual C++ compiler flags if DISABLE_WERROR is off,
similar to config.nmake.
We haven't compiled C++ code with -Wshorten-64-to-32 for quite
some time so there's no need to add -Wno-shorten-64-to-32 in
ui/qt/CMakeLists.txt.
Additionally, squelch
----
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3050) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3065) : see reference to function template instantiation 'void std::_Median<_RanIt,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3127) : see reference to function template instantiation 'std::pair<_RanIt,_RanIt> std::_Unguarded_partition<_RanIt,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3157) : see reference to function template instantiation 'void std::_Sort<_Iter,int,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Diff,_Pr)' being compiled
with
[
_Iter=QList<QString>::iterator
, _RanIt=QList<QString>::iterator
, _Diff=int
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
.\rpc_service_response_time_dialog.cpp(130) : see reference to function template instantiation 'void std::sort<QList<QString>::iterator,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3051) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3052) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3053) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
----
in both rpc_service_response_time_dialog.cpp and wireshark_application.cpp
so that we'll compile successfully.
Change-Id: I457bcede99dcb1f3c1001f1f559c4901bb000357
Reviewed-on: https://code.wireshark.org/review/10533
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-09-15 00:19:02 +00:00
|
|
|
if (WERROR_COMMON_FLAGS)
|
2012-09-14 20:23:18 +00:00
|
|
|
set_source_files_properties(
|
2013-04-22 19:00:29 +00:00
|
|
|
${CLEAN_FILES}
|
2012-09-14 20:23:18 +00:00
|
|
|
PROPERTIES
|
CMake: Add /WX
Add "/WX" to the Visual C++ compiler flags if DISABLE_WERROR is off,
similar to config.nmake.
We haven't compiled C++ code with -Wshorten-64-to-32 for quite
some time so there's no need to add -Wno-shorten-64-to-32 in
ui/qt/CMakeLists.txt.
Additionally, squelch
----
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3050) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3065) : see reference to function template instantiation 'void std::_Median<_RanIt,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3127) : see reference to function template instantiation 'std::pair<_RanIt,_RanIt> std::_Unguarded_partition<_RanIt,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3157) : see reference to function template instantiation 'void std::_Sort<_Iter,int,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Diff,_Pr)' being compiled
with
[
_Iter=QList<QString>::iterator
, _RanIt=QList<QString>::iterator
, _Diff=int
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
.\rpc_service_response_time_dialog.cpp(130) : see reference to function template instantiation 'void std::sort<QList<QString>::iterator,bool(__cdecl *)(const QString &,const QString &)>(_RanIt,_RanIt,_Pr)' being compiled
with
[
_RanIt=QList<QString>::iterator
, _Pr=bool (__cdecl *)(const QString &,const QString &)
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3051) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3052) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\algorithm(3053) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (.\rpc_service_response_time_dialog.cpp)
----
in both rpc_service_response_time_dialog.cpp and wireshark_application.cpp
so that we'll compile successfully.
Change-Id: I457bcede99dcb1f3c1001f1f559c4901bb000357
Reviewed-on: https://code.wireshark.org/review/10533
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-09-15 00:19:02 +00:00
|
|
|
COMPILE_FLAGS ${WERROR_COMMON_FLAGS}
|
2012-09-14 20:23:18 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
add_library(ui STATIC
|
|
|
|
${COMMON_UI_SRC}
|
2012-12-17 21:24:22 +00:00
|
|
|
${DIRTY_UI_SRC}
|
|
|
|
)
|
|
|
|
|
2013-04-22 19:00:29 +00:00
|
|
|
set_target_properties(ui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
|
2013-10-13 09:21:55 +00:00
|
|
|
set_target_properties(ui PROPERTIES FOLDER "UI")
|
2015-11-16 13:59:16 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
#
|
|
|
|
# Local variables:
|
|
|
|
# c-basic-offset: 8
|
|
|
|
# tab-width: 8
|
|
|
|
# indent-tabs-mode: t
|
|
|
|
# End:
|
|
|
|
#
|
|
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
#
|