summaryrefslogtreecommitdiff
path: root/ui/qt/overlay_scroll_bar.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-22 10:28:04 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-23 00:24:08 +0000
commit1514fe06cd53c5facab83ebd5f275167651e40c2 (patch)
treeaa478ca6e84dd9f22b517d92b1c99ab7dae8fcbb /ui/qt/overlay_scroll_bar.h
parent093aef0e28f25d1c6be0d78969c8348decbefb25 (diff)
downloadwireshark-1514fe06cd53c5facab83ebd5f275167651e40c2.tar.gz
Show the current selection in the overlay scrollbar.
Change-Id: Ie92b7ae170938eac71ede751d9067e1d47293092 Reviewed-on: https://code.wireshark.org/review/9750 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/overlay_scroll_bar.h')
-rw-r--r--ui/qt/overlay_scroll_bar.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/ui/qt/overlay_scroll_bar.h b/ui/qt/overlay_scroll_bar.h
index 76e7612292..d1e37d408c 100644
--- a/ui/qt/overlay_scroll_bar.h
+++ b/ui/qt/overlay_scroll_bar.h
@@ -33,8 +33,18 @@ public:
virtual QSize sizeHint() const;
- // Images are assumed to be 1 pixel wide and grooveRect.height() high.
- void setNearOverlayImage(QImage &overlay_image);
+ /** Set the "near" overlay image.
+ * @param overlay_image An image containing a 1:1 mapping of nearby
+ * packet colors to raster lines.
+ * @param selected_pos The position of the selected packet within the
+ * image. -1 means no packet is selected.
+ */
+ void setNearOverlayImage(QImage &overlay_image, int selected_pos = -1);
+
+ /** Set the "far" overlay image.
+ * @param overlay_image An image showing the position of marked, ignored,
+ * and reference time packets over the entire packet list.
+ */
void setFarOverlayImage(QImage &overlay_image);
QRect grooveRect();
@@ -44,6 +54,7 @@ protected:
private:
QImage near_overlay_;
QImage far_overlay_;
+ int selected_pos_;
};
#endif // __OVERLAY_SCROLL_BAR_H__