3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef PACKET_DIALOG_H
11 #define PACKET_DIALOG_H
13 #include "wireshark_dialog.h"
15 #include "epan/epan_dissect.h"
16 #include "wiretap/wtap.h"
17 #include "wsutil/buffer.h"
19 #include <ui/qt/utils/field_information.h>
28 class PacketDialog
: public WiresharkDialog
33 explicit PacketDialog(QWidget
&parent
, CaptureFile
&cf
, frame_data
*fdata
);
37 void captureFileClosing();
40 void showProtocolPreferences(const QString module_name
);
41 void editProtocolPreference(struct preference
*pref
, struct pref_module
*module
);
44 void on_buttonBox_helpRequested();
45 #if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
46 void viewVisibilityStateChanged(Qt::CheckState
);
48 void viewVisibilityStateChanged(int);
50 void layoutChanged(int);
52 void setHintText(FieldInformation
*);
53 void setHintTextSelected(FieldInformation
*);
58 pref_t
*pref_packet_dialog_layout_
;
60 ProtoTree
*proto_tree_
;
61 ByteViewTab
*byte_view_tab_
;
67 #endif // PACKET_DIALOG_H