]> git.sesse.net Git - kdenlive/blobdiff - src/editeffectcommand.h
- Sync AUTHORS and KAboutData.
[kdenlive] / src / editeffectcommand.h
index 9f871e196215a385cfbb2f9e1e2112829e4266b1..c793fd4f842ac3962644dd5d8ec9b3fb7381b7f1 100644 (file)
 
 #include <QUndoCommand>
 #include <KDebug>
+#include <gentime.h>
+#include <QDomElement>
 
-#include "customtrackview.h"
+class CustomTrackView;
 
 class EditEffectCommand : public QUndoCommand
- {
- public:
-     EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, bool doIt);
+{
+public:
+    EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, int stackPos, bool doIt, QUndoCommand *parent = 0);
 
+    virtual int id() const;
+    virtual bool mergeWith(const QUndoCommand * command);
     virtual void undo();
     virtual void redo();
 
- private:
-     CustomTrackView *m_view;
-     int m_track;
-     QDomElement m_effect;
-     QDomElement m_oldeffect;
-     GenTime m_pos;
-     bool m_doIt;
- };
+private:
+    CustomTrackView *m_view;
+    const int m_track;
+    QDomElement m_oldeffect;
+    QDomElement m_effect;
+    const GenTime m_pos;
+    int m_stackPos;
+    bool m_doIt;
+};
 
 #endif