Logo Search packages:      
Sourcecode: kdenlive version File versions

kmoveclipscommand.h

/***************************************************************************
                         kmoveclipscommand.h  -  description
                            -------------------
   begin                : Thu Dec 12 2002
   copyright            : (C) 2002 by Jason Wood
   email                : jasonwood@blueyonder.co.uk
***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef KMOVECLIPSCOMMAND_H
#define KMOVECLIPSCOMMAND_H

#include <qwidget.h>
#include <qstring.h>
#include <kcommand.h>
#include <gentime.h>
#include <docclipreflist.h>

class KdenliveDoc;
class DocClipRef;
// class DocClipRefList;

namespace Command {

/**This command handles the moving of clips, and the "unexecuting" of command, for undo/redo pruposes.
  *@author Jason Wood
  */

00037     class KMoveClipsCommand:public KCommand {
      public:
      KMoveClipsCommand(KdenliveDoc * doc, DocClipRef * master);
      ~KMoveClipsCommand();
      /** Returns the (translated) name of this command */
      virtual QString name() const;
      /** Unexecute this command */
      void unexecute();
      /** Executes this command */
      void execute();
      /** Specifies where the master clip should be moved to by this command. */
      void setEndLocation(DocClipRef * master);
      /** Sets the list of clips to move */
        void setClipList(const DocClipRefList & list);

      bool doesMove() {
          return m_startTime == m_endTime;
      }

      int startTrack() {
          return m_startTrack;
      }

      GenTime startTime() {
          return m_startTime;
      }


      private:
      KdenliveDoc * m_doc;
      DocClipRefList m_clipList;
      //QValueList < QPoint > m_clipList;

      /** The track the master clip is on before execution */
00071       int m_startTrack;
      /** The start of the master clip before execution */
00073       GenTime m_startTime;

      /** The track the master clip is on after execution */
00076       int m_endTrack;
      /** The start of the master clip after execution */
00078       GenTime m_endTime;
    };

}                       // namespace Command
#endif

Generated by  Doxygen 1.6.0   Back to index