]> git.sesse.net Git - kdenlive/blobdiff - src/addtimelineclipcommand.h
Improved timeline ruler
[kdenlive] / src / addtimelineclipcommand.h
index ad907a0211d7aafa9fa132b26d69bbfe3ef7700f..8c060c1c992efc9ed9cf0f491c3beea2632b751c 100644 (file)
 #include <QUndoCommand>
 #include <QGraphicsView>
 #include <QPointF>
-
+#include <QDomElement>
 #include <KDebug>
 
-#include "projectlist.h"
-#include "customtrackview.h"
+#include "gentime.h"
+
+class CustomTrackView;
 
-class AddTimelineClipCommand : public QUndoCommand
- {
- public:
-     AddTimelineClipCommand(CustomTrackView *view, int clipType, QString clipName, int clipProducer, int maxDuration, QRectF rect, bool doIt);
+class AddTimelineClipCommand : public QUndoCommand {
+public:
+    AddTimelineClipCommand(CustomTrackView *view, QDomElement xml, int clipId, int track, GenTime startpos, QRectF rect, GenTime duration, bool doIt, bool doRemove);
     virtual void undo();
     virtual void redo();
 
- private:
-     CustomTrackView *m_view;
-     int m_clipType;
-     QString m_clipName;
-     int m_clipProducer;
-     int m_maxDuration;
-     QRectF m_clipRect;
-     bool m_doIt;
- };
+private:
+    CustomTrackView *m_view;
+    GenTime m_clipDuration;
+    int m_clipId;
+    QDomElement m_xml;
+    int m_clipTrack;
+    GenTime m_clipPos;
+    QRectF m_clipRect;
+    bool m_doIt;
+    bool m_remove;
+};
 
 #endif