* 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
#include "gentime.h"
class KdenliveDoc;
-class TrackInfo;
+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 <GenTime> snaps);
- GenTime previousSnapPoint(GenTime pos);
- GenTime nextSnapPoint(GenTime pos);
+ explicit CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0);
+ ~CustomTrackScene();
+ void setSnapList(const QList <GenTime>& 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();
- QList <TrackInfo> m_tracksList;
- int tracksCount();
- QPixmap m_transitionPixmap;
+ void setScale(double scale, double vscale);
+ QPointF scale() const;
+ int tracksCount() const;
+ 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