X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcustomtrackscene.h;h=c9506568c6508ce3b04d5aae123fd42e52b8c0be;hb=3c844989ad9fdb96bb9258a990a9874773b3d792;hp=d0f37060acbe8d4ccfeb9ad5ed6d320c26430821;hpb=5aa1199079acf6eaf504803df910b31aa3b288ae;p=kdenlive diff --git a/src/customtrackscene.h b/src/customtrackscene.h index d0f37060..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 @@ -30,8 +35,6 @@ class KdenliveDoc; class MltVideoProfile; -/** This class holds all scene properties that need to be used by clip items */ - enum EDITMODE { NORMALEDIT = 0 , OVERWRITEEDIT = 1 , INSERTEDIT = 2 }; class CustomTrackScene : public QGraphicsScene @@ -40,10 +43,10 @@ class CustomTrackScene : public QGraphicsScene public: explicit CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0); - virtual ~ CustomTrackScene(); - void setSnapList(QList snaps); - GenTime previousSnapPoint(GenTime pos) const; - GenTime nextSnapPoint(GenTime pos) const; + ~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 vscale); QPointF scale() const;