]> git.sesse.net Git - kdenlive/blobdiff - src/resizeclipcommand.h
Fix crash on clip deletion, fix issues with placeholder clips
[kdenlive] / src / resizeclipcommand.h
index 6247df1222ace29685498228659a1230e1598c0d..9b5a4ae6bbc164ae54a1eb59c5242419e1d5db23 100644 (file)
 
 #include <KDebug>
 
-#include "projectlist.h"
-#include "customtrackview.h"
+#include "definitions.h"
 
-class ResizeClipCommand : public QUndoCommand {
+class CustomTrackView;
+
+class ResizeClipCommand : public QUndoCommand
+{
 public:
-    ResizeClipCommand(CustomTrackView *view, const QPointF startPos, const QPointF endPos, bool resizeClipStart, bool doIt);
+    ResizeClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, bool dontWorry, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
 private:
     CustomTrackView *m_view;
-    QPointF m_startPos;
-    QPointF m_endPos;
-    bool m_resizeClipStart;
+    ItemInfo m_startPos;
+    ItemInfo m_endPos;
     bool m_doIt;
+    bool m_dontWorry;
 };
 
 #endif