]> git.sesse.net Git - kdenlive/blobdiff - src/guide.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / guide.h
index 14f353f9e5e372cbc2db729c77851138ff498535..6bd392ae654103839c72122962aec159b52123cf 100644 (file)
 #define GUIDE_H
 
 #include <QGraphicsLineItem>
+#include <QPen>
 
 #include "gentime.h"
+#include "definitions.h"
 
-class Guide : public QGraphicsLineItem {
+#define GUIDEITEM 8000
+
+class CustomTrackView;
+
+class Guide : public QGraphicsLineItem
+{
 
 public:
-    Guide(GenTime pos, QString label, double scale, double fps, double height);
-    void updatePosition(double scale, double height);
-       GenTime position();
+    Guide(CustomTrackView *view, const GenTime &pos, const QString &label, double height);
+    GenTime position() const;
+    void updateGuide(const GenTime &newPos, const QString &comment = QString());
+    QString label() const;
+    CommentedTime info() const;
+    void updatePos();
+    virtual int type() const;
+    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *w);
+    virtual QRectF boundingRect() const;
+    virtual QPainterPath shape() const;
+
+protected:
+    virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *);
+    virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *);
+    virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
 
 private:
     GenTime m_position;
     QString m_label;
-    double m_fps;
+    CustomTrackView *m_view;
+    int m_width;
+    QPen m_pen;
 };
 
 #endif