]> git.sesse.net Git - kdenlive/blob - src/commands/edittransitioncommand.h
Start a cleanup and detect Git revision
[kdenlive] / src / commands / edittransitioncommand.h
1 /***************************************************************************
2                           edittransitioncommand.h  -  description
3                              -------------------
4     begin                : 2008
5     copyright            : (C) 2008 by Marco Gittler
6     email                : g.marco@freenet.de
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 EDITTRANSITIONCOMMAND_H
19 #define EDITTRANSITIONCOMMAND_H
20
21 #include <QUndoCommand>
22 #include <KDebug>
23 #include <QDomElement>
24 #include "gentime.h"
25
26 class CustomTrackView;
27
28 class EditTransitionCommand : public QUndoCommand
29 {
30 public:
31     EditTransitionCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, bool doIt, QUndoCommand * parent = NULL);
32
33     virtual int id() const;
34     virtual bool mergeWith(const QUndoCommand * command);
35     virtual void undo();
36     virtual void redo();
37
38 private:
39     CustomTrackView *m_view;
40     const int m_track;
41     QDomElement m_effect;
42     QDomElement m_oldeffect;
43     const GenTime m_pos;
44     bool m_doIt;
45 };
46
47 #endif
48