]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackscene.h
Clip cuts in project tree can now have a description
[kdenlive] / src / customtrackscene.h
index be1c712728c88790592fef48386c7c4ded9b231d..d0f37060acbe8d4ccfeb9ad5ed6d320c26430821 100644 (file)
 #include "gentime.h"
 
 class KdenliveDoc;
+class MltVideoProfile;
 
-/** This class holds all properties that need to be used by clip items */
+/** This class holds all scene properties that need to be used by clip items */
 
-class CustomTrackScene : public QGraphicsScene {
+enum EDITMODE { NORMALEDIT = 0 , OVERWRITEEDIT = 1 , INSERTEDIT = 2 };
+
+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;
+    void setEditMode(EDITMODE mode);
+    EDITMODE editMode() const;
 
 private:
     KdenliveDoc *m_document;
     QList <GenTime> m_snapPoints;
-    double m_scale;
+    QPointF m_scale;
+    EDITMODE m_editMode;
 };
 
 #endif