X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcustomtrackscene.h;h=c9506568c6508ce3b04d5aae123fd42e52b8c0be;hb=5d4e8497fc4b3681f3024bf8fc8bf4e338fbbdc4;hp=be1c712728c88790592fef48386c7c4ded9b231d;hpb=40d8c63ec12c38560be338806ca1ccd9a01ddc0d;p=kdenlive diff --git a/src/customtrackscene.h b/src/customtrackscene.h index be1c7127..c9506568 100644 --- a/src/customtrackscene.h +++ b/src/customtrackscene.h @@ -17,6 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ +/** + * @class CustomTrackScene + * @author Jean-Baptiste Mardelle + * @brief Holds all scene properties that need to be used by clip items. + */ #ifndef CUSTOMTRACKSCENE_H #define CUSTOMTRACKSCENE_H @@ -28,28 +33,33 @@ #include "gentime.h" class KdenliveDoc; +class MltVideoProfile; -/** This class holds all properties that need to be used by clip items */ +enum EDITMODE { NORMALEDIT = 0 , OVERWRITEEDIT = 1 , INSERTEDIT = 2 }; -class CustomTrackScene : public QGraphicsScene { +class CustomTrackScene : public QGraphicsScene +{ Q_OBJECT public: - CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0); - virtual ~ CustomTrackScene(); - void setSnapList(QList snaps); - GenTime previousSnapPoint(GenTime pos); - GenTime nextSnapPoint(GenTime pos); + explicit CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0); + ~CustomTrackScene(); + void setSnapList(const QList & snaps); + GenTime previousSnapPoint(const GenTime &pos) const; + GenTime nextSnapPoint(const 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 m_snapPoints; - double m_scale; + QPointF m_scale; + EDITMODE m_editMode; }; #endif