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 void setPixelPerMark(double rate);
17 static const int comboScale[];
20 void setDuration(int d);
23 virtual void paintEvent(QPaintEvent * /*e*/);
24 virtual void wheelEvent(QWheelEvent * e);
25 virtual void mousePressEvent(QMouseEvent * event);
26 virtual void mouseMoveEvent(QMouseEvent * event);
31 CustomTrackView *m_view;
36 RULER_MOVE m_moveCursor;
40 void slotMoveRuler(int newPos);
41 void slotCursorMoved(int oldpos, int newpos);