]> git.sesse.net Git - kdenlive/blob - src/commands/addmarkercommand.h
Const'ref
[kdenlive] / src / commands / addmarkercommand.h
1 /***************************************************************************
2                           addmarkercommand.h  -  description
3                              -------------------
4     begin                : 2008
5     copyright            : (C) 2008 by Jean-Baptiste Mardelle
6     email                : jb@kdenlive.org
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #ifndef MARKERCOMMAND_H
19 #define MARKERCOMMAND_H
20
21 #include <QUndoCommand>
22
23 #include "gentime.h"
24 #include "definitions.h"
25 class CustomTrackView;
26
27
28 class AddMarkerCommand : public QUndoCommand
29 {
30 public:
31     AddMarkerCommand(CustomTrackView *view, const CommentedTime &oldMarker, const CommentedTime &newMarker, const QString &id, QUndoCommand * parent = 0);
32     void undo();
33     void redo();
34
35 private:
36     CustomTrackView *m_view;
37     CommentedTime m_oldMarker;
38     CommentedTime m_newMarker;
39     QString m_id;
40 };
41
42 #endif
43