summaryrefslogtreecommitdiff
path: root/ui/qt/packet_list_record.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-06-11 15:53:51 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-16 22:57:31 +0000
commit255d53dfc11fa49eadd30fefe3ed5950b03e6659 (patch)
tree1404c49ffb41d4f1245889f24e0e260e4cc011fd /ui/qt/packet_list_record.h
parent3e059c9d1fedf9c890f910fa88cc2ef99fb1e470 (diff)
downloadwireshark-255d53dfc11fa49eadd30fefe3ed5950b03e6659.tar.gz
Draw packet colors in the packet list scrollbar.
Inspired by (but not as fancy as) Packet Fence, an enhancement written for Ethereal a loooong time ago by Martin Visser: https://www.wireshark.org/lists/ethereal-dev/200011/msg00122.html Several text editors call this a "minimap". Color each scrollbar raster line to match the color of up to 7 packets. Note in the comments why this number was chosen. If we have any flagged frames (marked, ignored, time ref) indicate them on either side of the scrolbar. Handle HiDPI (retina) displays. This means that your window size depends on the height of your scrollbar *and* your monitor resolution. Qt's idea of the slider rect doesn't match up with the slider on OS X. This might be local to my build -- I can replicate it Qt Creator. Change-Id: Ia089d2d766ce37bab11e22d1a5721b4908935304 Reviewed-on: https://code.wireshark.org/review/8982 Reviewed-by: Gerald Combs <gerald@wireshark.org> Tested-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/packet_list_record.h')
-rw-r--r--ui/qt/packet_list_record.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/packet_list_record.h b/ui/qt/packet_list_record.h
index 085c96c7d4..17d7c6ae82 100644
--- a/ui/qt/packet_list_record.h
+++ b/ui/qt/packet_list_record.h
@@ -46,6 +46,7 @@ public:
frame_data *frameData() const { return fdata_; }
// packet_list->col_to_text in gtk/packet_list_store.c
static int textColumn(int column) { return cinfo_column_.value(column, -1); }
+ bool colorized() { return colorized_; }
struct conversation *conversation() { return conv_; }
int columnTextSize(const char *str);