]> git.sesse.net Git - kdenlive/blob - src/addtransitioncommand.h
First big cleanup of transition / clipitem. Transitions are a bit broken for now...
[kdenlive] / src / addtransitioncommand.h
1 /***************************************************************************
2                           addtransitioncommand.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 TIMELINETRANSITIONCOMMAND_H
19 #define TIMELINETRANSITIONCOMMAND_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 AddTransitionCommand : public QUndoCommand {
33 public:
34     AddTransitionCommand(CustomTrackView *view, ItemInfo info, int transitiontrack, QMap <QString, QString> desc, QDomElement params, bool doIt);
35     virtual void undo();
36     virtual void redo();
37
38 private:
39     CustomTrackView *m_view;
40     ItemInfo m_info;
41     QMap <QString, QString> m_desc;
42     QDomElement m_params;
43     int m_track;
44     bool m_doIt;
45 };
46
47 #endif
48