]> git.sesse.net Git - kdenlive/blobdiff - src/addtimelineclipcommand.h
fix crash when starting under macOSX
[kdenlive] / src / addtimelineclipcommand.h
index e163d810bf3644ba4923ba54067cde2c0553021d..b4c3edb0dafb2302a42e01afd297d952c4b0fa85 100644 (file)
 #include <QUndoCommand>
 #include <QGraphicsView>
 #include <QPointF>
-
+#include <QDomElement>
 #include <KDebug>
 
-#include "projectlist.h"
-#include "customtrackview.h"
+#include "gentime.h"
+#include "definitions.h"
+#include "effectslist.h"
+
+class CustomTrackView;
 
-class AddTimelineClipCommand : public QUndoCommand
- {
- public:
-     AddTimelineClipCommand(CustomTrackView *view, QDomElement xml, int track, int startpos, QRectF rect, int duration, bool doIt);
+class AddTimelineClipCommand : public QUndoCommand {
+public:
+    AddTimelineClipCommand(CustomTrackView *view, QDomElement xml, const QString &clipId, ItemInfo info, EffectsList effects, bool doIt, bool doRemove, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
- private:
-     CustomTrackView *m_view;
-     int m_clipDuration;
-     QDomElement m_xml;
-     int m_clipTrack;
-     int m_clipPos;
-     QRectF m_clipRect;
-     bool m_doIt;
- };
+private:
+    CustomTrackView *m_view;
+    ItemInfo m_clipInfo;
+    EffectsList m_effects;
+    QString m_clipId;
+    QDomElement m_xml;
+    bool m_doIt;
+    bool m_remove;
+};
 
 #endif