]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.h
Added cursors
[pulseview.git] / pv / view / ruler.h
index 18b565eb1b48374b85391ce7122a527c5fb7112c..1381502d3de48f7c8c64168110e0f7e34a7d0236 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PV_VIEW_RULER_H
-#define PV_VIEW_RULER_H
+#ifndef PULSEVIEW_PV_VIEW_RULER_H
+#define PULSEVIEW_PV_VIEW_RULER_H
 
 #include <QWidget>
 
@@ -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;
 };
@@ -52,4 +65,4 @@ private:
 } // namespace view
 } // namespace pv
 
-#endif // PV_VIEW_HEADER_H
+#endif // PULSEVIEW_PV_VIEW_RULER_H