]> git.sesse.net Git - kdenlive/blob - src/customruler.h
Starting KDE4 porting
[kdenlive] / src / customruler.h
1 #ifndef CUSTOMRULER_H
2 #define CUSTOMRULER_H
3
4 #include <KRuler>
5
6 class CustomRuler : public KRuler
7 {
8   Q_OBJECT
9   
10   public:
11     CustomRuler(QWidget *parent=0);
12     virtual void mousePressEvent ( QMouseEvent * event );
13     void setPixelPerMark (double rate);
14     static const int comboScale[];
15   protected:
16     virtual void paintEvent(QPaintEvent * /*e*/);
17
18   private:
19     int m_cursorPosition;
20
21   public slots:
22     void slotNewValue ( int _value );
23 };
24
25 #endif