#define EDITEFFECTCOMMAND_H
#include <QUndoCommand>
-#include <KDebug>
#include <gentime.h>
#include <QDomElement>
class EditEffectCommand : public QUndoCommand
{
public:
- EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, int stackPos, bool doIt, QUndoCommand *parent = 0);
+ EditEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QDomElement &oldeffect, const QDomElement &effect, int stackPos, bool refreshEffectStack, bool doIt, QUndoCommand *parent = 0);
virtual int id() const;
virtual bool mergeWith(const QUndoCommand * command);
- virtual void undo();
- virtual void redo();
+ void undo();
+ void redo();
private:
CustomTrackView *m_view;
const GenTime m_pos;
int m_stackPos;
bool m_doIt;
+ bool m_refreshEffectStack;
};
#endif