]> git.sesse.net Git - kdenlive/blobdiff - src/smallruler.h
Rewrite audio thumbs threading
[kdenlive] / src / smallruler.h
index 7e0a907206fc2c7b229925ffe9c4ef006c2c774f..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);
@@ -46,12 +52,18 @@ private:
     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