]> git.sesse.net Git - kdenlive/blob - src/commands/addtransitioncommand.h
Const'ref
[kdenlive] / src / commands / 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 ADDTRANSITIONCOMMAND_H
19 #define ADDTRANSITIONCOMMAND_H
20
21 #include <QUndoCommand>
22 #include <QDomElement>
23
24 #include "gentime.h"
25 #include "definitions.h"
26 class CustomTrackView;
27
28
29 class AddTransitionCommand : public QUndoCommand
30 {
31 public:
32     AddTransitionCommand(CustomTrackView *view, const ItemInfo &info, int transitiontrack, const QDomElement &params, bool remove, bool doIt, QUndoCommand * parent = 0);
33     void undo();
34     void redo();
35
36 private:
37     CustomTrackView *m_view;
38     ItemInfo m_info;
39     QDomElement m_params;
40     int m_track;
41     bool m_doIt;
42     bool m_remove;
43     bool m_refresh;
44 };
45
46 #endif
47