aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/proto_tree.h
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2017-10-30 13:58:28 +0100
committerRoland Knall <rknall@gmail.com>2017-11-08 20:20:31 +0000
commit8a6ea0e454dddcc1d9c14ad1e02a43a53a4ef667 (patch)
tree1afd59377e5e62f8f0b057cfb406f077823872e4 /ui/qt/proto_tree.h
parent87431fef2836c8d77ea694844cd5dff0e8b801f8 (diff)
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 <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/proto_tree.h')
-rw-r--r--ui/qt/proto_tree.h8
1 files changed, 5 insertions, 3 deletions
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 <ui/qt/utils/field_information.h>
#include <QTreeWidget>
#include <QMenu>
@@ -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();
};