From 8a6ea0e454dddcc1d9c14ad1e02a43a53a4ef667 Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Mon, 30 Oct 2017 13:58:28 +0100 Subject: Qt: Further cleanup ByteView This further separates ByteView and the rest of the system. Using FieldInformation and DataPrinter, this is the final cleanup of the ByteViewTab Change-Id: If41521167527cf5664c2564cdd0d45fea0f3f612 Reviewed-on: https://code.wireshark.org/review/22783 Petri-Dish: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall --- ui/qt/proto_tree.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ui/qt/proto_tree.h') diff --git a/ui/qt/proto_tree.h b/ui/qt/proto_tree.h index cf9c85369a..248d38f28f 100644 --- a/ui/qt/proto_tree.h +++ b/ui/qt/proto_tree.h @@ -30,6 +30,7 @@ #include "protocol_preferences_menu.h" +#include #include #include @@ -42,7 +43,6 @@ public: void fillProtocolTree(proto_tree *protocol_tree); void emitRelatedFrame(int related_frame, ft_framenum_type_t framenum_type = FT_FRAMENUM_NONE); void goToField(int hf_id); - void selectField(field_info *fi); void closeContextMenu(); void clear(); void saveSelectedField(QTreeWidgetItem *); @@ -71,8 +71,8 @@ private: capture_file *cap_file_; signals: - void protoItemSelected(const QString &); - void protoItemSelected(field_info *); + void fieldSelected(FieldInformation *); + void openPacketInNewWindow(bool); void goToPacket(int); void relatedFrame(int, ft_framenum_type_t); @@ -92,6 +92,8 @@ public slots: void collapseAll(); void itemDoubleClick(QTreeWidgetItem *item, int column); + void selectedFieldChanged(FieldInformation *); + private slots: void updateContentWidth(); }; -- cgit v1.2.3