summaryrefslogtreecommitdiff
path: root/ui/qt/proto_tree.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-06-16 17:24:19 -0700
committerGerald Combs <gerald@wireshark.org>2015-06-17 01:25:27 +0000
commit26dacfc8c3befed5fb6dacd84e7d6107c6920b2e (patch)
tree21c776b6be914699bafbdd816da1fd7e632b298d /ui/qt/proto_tree.h
parentd5215c2ef6e73b5f073eb0d50e01da7d06d34923 (diff)
downloadwireshark-26dacfc8c3befed5fb6dacd84e7d6107c6920b2e.tar.gz
Qt: Add protocol preferences menus.
Add protocol preferences in the packet list and packet detail context menus. Note that we need a PreferencesEditorFrame in the main window for editing numeric and string preferences. For now we just show the prefs dialog. Change-Id: Ice0cc8e9bc25963cc14aa47698f042f2a73088d8 Reviewed-on: https://code.wireshark.org/review/8957 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/proto_tree.h')
-rw-r--r--ui/qt/proto_tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/proto_tree.h b/ui/qt/proto_tree.h
index d2b86a4345..2114fccd7c 100644
--- a/ui/qt/proto_tree.h
+++ b/ui/qt/proto_tree.h
@@ -26,6 +26,8 @@
#include <epan/proto.h>
+#include "protocol_preferences_menu.h"
+
#include <QTreeWidget>
#include <QMenu>
@@ -47,6 +49,7 @@ protected:
private:
QMenu ctx_menu_;
QMenu conv_menu_;
+ ProtocolPreferencesMenu proto_prefs_menu_;
QAction *decode_as_;
QFont mono_font_;
@@ -56,6 +59,7 @@ signals:
void openPacketInNewWindow(bool);
void goToPacket(int);
void relatedFrame(int, ft_framenum_type_t);
+ void showProtocolPreferences(const QString module_name);
public slots:
void setMonospaceFont(const QFont &mono_font);