6 #include "customtrackview.h"
9 enum RULER_MOVE { RULER_CURSOR = 0, RULER_START = 1, RULER_MIDDLE = 2, RULER_END = 3 };
11 class CustomRuler : public KRuler {
15 CustomRuler(Timecode tc, CustomTrackView *parent);
16 virtual void mousePressEvent(QMouseEvent * event);
17 virtual void mouseMoveEvent(QMouseEvent * event);
18 void setPixelPerMark(double rate);
19 static const int comboScale[];
22 void setDuration(int d);
25 virtual void paintEvent(QPaintEvent * /*e*/);
30 CustomTrackView *m_view;
34 RULER_MOVE m_moveCursor;
37 void slotMoveRuler(int newPos);
38 void slotCursorMoved(int oldpos, int newpos);