aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/byte_view_tab.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-10-30 19:21:24 +0000
committerGerald Combs <gerald@wireshark.org>2012-10-30 19:21:24 +0000
commit0a28fb8f6a354aa9a446b6bf70733c305534e074 (patch)
treea075f90a96240ec13bbb5b15135e4f81cb9c75f3 /ui/qt/byte_view_tab.h
parent27b5d556cb53bee24e20a9bb5862189ee2e55a61 (diff)
Update the Qt byte view widget to reflect the recent changes in the GTK+
byte view. Move the packet_char_enc enum from packet.h to frame_data.h. Make the encoding flag a packet_char_enc and make it one bit. Get rid of the "cfile" global in a few places. C++-ize some of the font code. Clean up some variable names. svn path=/trunk/; revision=45838
Diffstat (limited to 'ui/qt/byte_view_tab.h')
-rw-r--r--ui/qt/byte_view_tab.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/qt/byte_view_tab.h b/ui/qt/byte_view_tab.h
index 425ea79fa8..c06102e5fe 100644
--- a/ui/qt/byte_view_tab.h
+++ b/ui/qt/byte_view_tab.h
@@ -30,6 +30,8 @@
#include <epan/proto.h>
#include <epan/tvbuff.h>
+#include "cfile.h"
+
#include <QTabWidget>
#include <QTreeWidget>
@@ -38,10 +40,11 @@ class ByteViewTab : public QTabWidget
Q_OBJECT
public:
explicit ByteViewTab(QWidget *parent = 0);
- void addTab(const char *name = "", tvbuff_t *tvb = NULL, proto_tree *tree = NULL, QTreeWidget *protoTree = NULL, unsigned int encoding = PACKET_CHAR_ENC_CHAR_ASCII);
+ void addTab(const char *name = "", tvbuff_t *tvb = NULL, proto_tree *tree = NULL, QTreeWidget *protoTree = NULL, packet_char_enc encoding = PACKET_CHAR_ENC_CHAR_ASCII);
private:
void setTabsVisible();
+ capture_file *cap_file_;
protected:
void tabInserted(int index);
@@ -51,6 +54,7 @@ signals:
public slots:
void protoTreeItemChanged(QTreeWidgetItem *current);
+ void setCaptureFile(capture_file *cf);
};
#endif // BYTE_VIEW_TAB_H