]> git.sesse.net Git - kdenlive/blob - src/commands/editkeyframecommand.h
Start a cleanup and detect Git revision
[kdenlive] / src / commands / editkeyframecommand.h
1 /***************************************************************************
2                           editkeyframecommand.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 KEYFRAMECOMMAND_H
19 #define KEYFRAMECOMMAND_H
20
21 #include <QUndoCommand>
22 #include <QGraphicsView>
23 #include <QPointF>
24 #include <QDomElement>
25 #include <KDebug>
26
27 #include "gentime.h"
28 #include "definitions.h"
29 class CustomTrackView;
30
31
32 class EditKeyFrameCommand : public QUndoCommand
33 {
34 public:
35     EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt);
36     virtual void undo();
37     virtual void redo();
38
39 private:
40     CustomTrackView *m_view;
41     const QString m_oldkfr;
42     const QString m_newkfr;
43     const int m_track;
44     const int m_index;
45     const GenTime m_pos;
46     bool m_doIt;
47 };
48
49 #endif
50