#include <KDebug>
#include "gentime.h"
+#include "definitions.h"
+#include "effectslist.h"
class CustomTrackView;
class AddTimelineClipCommand : public QUndoCommand {
public:
- AddTimelineClipCommand(CustomTrackView *view, QDomElement xml, int clipId, int track, GenTime startpos, QRectF rect, GenTime duration, bool doIt, bool doRemove);
+ 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;
- GenTime m_clipDuration;
- int m_clipId;
+ ItemInfo m_clipInfo;
+ EffectsList m_effects;
+ QString m_clipId;
QDomElement m_xml;
- int m_clipTrack;
- GenTime m_clipPos;
- QRectF m_clipRect;
bool m_doIt;
bool m_remove;
};