]> git.sesse.net Git - kdenlive/blob - src/movetransitioncommand.h
a3e1cb6f0d52fc1edd9ce7335a79145a71bde14a
[kdenlive] / src / movetransitioncommand.h
1 /***************************************************************************
2                           movetransitioncommand.h  -  description
3                              -------------------
4     begin                : Mar 15 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 MOVETRANSITIONCOMMAND_H
19 #define MOVETRANSITIONCOMMAND_H
20
21 #include <QUndoCommand>
22 #include <QGraphicsView>
23 #include <QPointF>
24
25 #include <KDebug>
26
27 class CustomTrackView;
28
29 class MoveTransitionCommand : public QUndoCommand {
30 public:
31     MoveTransitionCommand(CustomTrackView *view, const QPointF startPos, const QPointF endPos,int startTrack, int endTrack, bool doIt);
32     virtual void undo();
33     virtual void redo();
34
35 private:
36     CustomTrackView *m_view;
37     QPointF m_startPos;
38     QPointF m_endPos;
39     bool m_doIt;
40          int m_startTrack;
41          int m_endTrack;
42 };
43
44 #endif
45