]> git.sesse.net Git - kdenlive/blob - src/movetransitioncommand.cpp
Fix LADSPA effects, should work now:
[kdenlive] / src / movetransitioncommand.cpp
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 #include <KLocale>
18
19 #include "movetransitioncommand.h"
20 #include "customtrackview.h"
21 MoveTransitionCommand::MoveTransitionCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_startPos(start), m_endPos(end), m_doIt(doIt) {
22     setText(i18n("Move transition"));
23 }
24
25
26 // virtual
27 void MoveTransitionCommand::undo() {
28 // kDebug()<<"----  undoing action";
29     m_doIt = true;
30     m_view->moveTransition(m_endPos, m_startPos);
31 }
32 // virtual
33 void MoveTransitionCommand::redo() {
34     kDebug() << "----  redoing action";
35     if (m_doIt) m_view->moveTransition(m_startPos, m_endPos);
36     m_doIt = true;
37 }
38
39 #include "moveclipcommand.moc"