]> git.sesse.net Git - kdenlive/blobdiff - src/smallruler.h
Update a few strings for better user info
[kdenlive] / src / smallruler.h
index 02f55433e0b63940087b27d3280b9cd316c5e3b4..621ce75120ec013b8aabd5f808f46ed8c009e1bd 100644 (file)
 
 #include <QWidget>
 
-class SmallRuler : public QWidget {
+#include "monitormanager.h"
+
+class SmallRuler : public QWidget
+{
     Q_OBJECT
 
 public:
-    SmallRuler(QWidget *parent = 0);
+    SmallRuler(MonitorManager *manager, QWidget *parent = 0);
     virtual void mousePressEvent(QMouseEvent * event);
     virtual void mouseMoveEvent(QMouseEvent * event);
     void adjustScale(int maximum);
+    void setZone(int start, int end);
+    QPoint zone();
+    void setMarkers(QList < int > list);
+    int position() const;
 
 protected:
     virtual void paintEvent(QPaintEvent *e);
@@ -43,12 +50,20 @@ private:
     int m_medium;
     int m_small;
     int m_maxval;
+    int m_zoneStart;
+    int m_zoneEnd;
+    QColor m_zoneColor;
+    QList <int> m_markers;
+    QPixmap m_pixmap;
+    MonitorManager *m_manager;
+    void updatePixmap();
 
 public slots:
-    void slotNewValue(int value);
+    bool slotNewValue(int value);
 
 signals:
     void seekRenderer(int);
+    void zoneChanged(QPoint);
 };
 
 #endif