]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackscene.h
Correctly update monitor when changing a title clip duration
[kdenlive] / src / customtrackscene.h
index be1c712728c88790592fef48386c7c4ded9b231d..961927dea2d732a333680b083def2935fd919184 100644 (file)
 #include "gentime.h"
 
 class KdenliveDoc;
+class MltVideoProfile;
 
 /** This class holds all properties that need to be used by clip items */
 
-class CustomTrackScene : public QGraphicsScene {
+class CustomTrackScene : public QGraphicsScene
+{
     Q_OBJECT
 
 public:
-    CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0);
+    explicit CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0);
     virtual ~ CustomTrackScene();
     void setSnapList(QList <GenTime> snaps);
-    GenTime previousSnapPoint(GenTime pos);
-    GenTime nextSnapPoint(GenTime pos);
+    GenTime previousSnapPoint(GenTime pos) const;
+    GenTime nextSnapPoint(GenTime pos) const;
     double getSnapPointForPos(double pos, bool doSnap = true);
-    void setScale(double scale);
-    double scale() const;
+    void setScale(double scale, double vscale);
+    QPointF scale() const;
     int tracksCount() const;
-    QPixmap m_transitionPixmap;
+    MltVideoProfile profile() const;
 
 private:
     KdenliveDoc *m_document;
     QList <GenTime> m_snapPoints;
-    double m_scale;
+    QPointF m_scale;
 };
 
 #endif