#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
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.
private slots:
void hover_point_changed();
-
-private:
- boost::weak_ptr<TimeMarker> _grabbed_marker;
- QPoint _mouse_down_point;
- bool _dragging;
};
} // namespace view