]> git.sesse.net Git - kdenlive/blobdiff - src/addmarkercommand.h
start implementing markers
[kdenlive] / src / addmarkercommand.h
diff --git a/src/addmarkercommand.h b/src/addmarkercommand.h
new file mode 100644 (file)
index 0000000..0c839da
--- /dev/null
@@ -0,0 +1,48 @@
+/***************************************************************************
+                          addmarkercommand.h  -  description
+                             -------------------
+    begin                : 2008
+    copyright            : (C) 2008 by Jean-Baptiste Mardelle
+    email                : jb@kdenlive.org
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef MARKERCOMMAND_H
+#define MARKERCOMMAND_H
+
+#include <QUndoCommand>
+#include <QGraphicsView>
+#include <QPointF>
+#include <QDomElement>
+#include <KDebug>
+
+#include "gentime.h"
+#include "definitions.h"
+class CustomTrackView;
+
+
+class AddMarkerCommand : public QUndoCommand {
+public:
+    AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const int id, const GenTime &pos, bool doIt);
+    virtual void undo();
+    virtual void redo();
+
+private:
+    CustomTrackView *m_view;
+    QString m_oldcomment;
+    QString m_comment;
+    int m_id;
+    GenTime m_pos;
+    bool m_doIt;
+};
+
+#endif
+