]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.h
Added cursors
[pulseview.git] / pv / view / ruler.h
index f855185b904a75209ce521ec12c4399913bd6d5e..1381502d3de48f7c8c64168110e0f7e34a7d0236 100644 (file)
@@ -39,12 +39,25 @@ private:
        static const QString SIPrefixes[9];
        static const int FirstSIPrefixPower;
 
+       static const int HoverArrowSize;
+
 public:
        Ruler(View &parent);
 
 private:
        void paintEvent(QPaintEvent *event);
 
+private:
+       void draw_cursors(QPainter &p);
+
+       /**
+        * Draw a hover arrow under the cursor position.
+        */
+       void draw_hover_mark(QPainter &p);
+
+private slots:
+       void hover_point_changed();
+
 private:
        View &_view;
 };