Use a separate widget to hold the cursor labels.
[pulseview.git] / pv / view / ruler.h
index c48f25a0bb8a826dbcd8f4234ce805a001115845..cee76c685c5a5e3d40dbf8a5a78caa6e6b97a9a9 100644 (file)
 #ifndef PULSEVIEW_PV_VIEW_RULER_H
 #define PULSEVIEW_PV_VIEW_RULER_H
 
-#include <boost/weak_ptr.hpp>
+#include <memory>
 
 #include "marginwidget.h"
 
 namespace pv {
 namespace view {
 
-class TimeMarker;
-class View;
-
 class Ruler : public MarginWidget
 {
        Q_OBJECT
@@ -45,18 +42,12 @@ private:
 public:
        Ruler(View &parent);
 
-       void clear_selection();
-
 public:
        QSize sizeHint() const;
 
 private:
        void paintEvent(QPaintEvent *event);
 
-       void mouseMoveEvent(QMouseEvent *e);
-       void mousePressEvent(QMouseEvent *e);
-       void mouseReleaseEvent(QMouseEvent *);
-
 private:
        /**
         * Draw a hover arrow under the cursor position.
@@ -65,11 +56,6 @@ private:
 
 private slots:
        void hover_point_changed();
-
-private:
-       boost::weak_ptr<TimeMarker> _grabbed_marker;
-       QPoint _mouse_down_point;
-       bool _dragging;
 };
 
 } // namespace view