]> git.sesse.net Git - kdenlive/blob - src/movetransitioncommand.cpp
Comment out names of unused parameters [PATCH by Ray Lehtiniemi]
[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
18 #include "movetransitioncommand.h"
19 #include "customtrackview.h"
20
21 #include <KLocale>
22
23 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) {
24     setText(i18n("Move transition"));
25 }
26
27
28 // virtual
29 void MoveTransitionCommand::undo() {
30 // kDebug()<<"----  undoing action";
31     m_doIt = true;
32     m_view->moveTransition(m_endPos, m_startPos);
33 }
34 // virtual
35 void MoveTransitionCommand::redo() {
36     kDebug() << "----  redoing action";
37     if (m_doIt) m_view->moveTransition(m_startPos, m_endPos);
38     m_doIt = true;
39 }
40
41 #include "moveclipcommand.moc"