#define MARKERCOMMAND_H
#include <QUndoCommand>
-#include <QGraphicsView>
-#include <QPointF>
-#include <QDomElement>
-#include <KDebug>
#include "gentime.h"
#include "definitions.h"
class AddMarkerCommand : public QUndoCommand
{
public:
- AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, QUndoCommand * parent = 0);
- virtual void undo();
- virtual void redo();
+ AddMarkerCommand(CustomTrackView *view, const CommentedTime &oldMarker, const CommentedTime &newMarker, const QString &id, QUndoCommand * parent = 0);
+ void undo();
+ void redo();
private:
CustomTrackView *m_view;
- QString m_oldcomment;
- QString m_comment;
+ CommentedTime m_oldMarker;
+ CommentedTime m_newMarker;
QString m_id;
- GenTime m_pos;
};
#endif