namespace pv {
namespace view {
+class TimeMarker;
class View;
class Ruler : public QWidget
static const QString SIPrefixes[9];
static const int FirstSIPrefixPower;
+ static const int HoverArrowSize;
+
public:
Ruler(View &parent);
private:
void paintEvent(QPaintEvent *event);
+ void mouseMoveEvent(QMouseEvent *e);
+ void mousePressEvent(QMouseEvent *e);
+ void mouseReleaseEvent(QMouseEvent *);
+
+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;
+
+ TimeMarker *_grabbed_marker;
};
} // namespace view