Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

kaddmarkercommand.h

/***************************************************************************
                          kaddmarkercommand  -  Command to add/remove a marker from a clip.
                             -------------------
    begin                : Sat Nov 29 2003
    copyright            : (C) 2003 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 COMMANDKADDMARKERCOMMAND_H
#define COMMANDKADDMARKERCOMMAND_H

#include <kcommand.h>

#include "gentime.h"

class KdenliveDoc;


namespace Command {

/**
@author Jason Wood
*/
00032     class KAddMarkerCommand:public KCommand {
      public:
      KAddMarkerCommand(KdenliveDoc & document, int clipId,
          const GenTime & clipTime, QString comment, bool create = true);

      ~KAddMarkerCommand();

      /** Unexecute the command */
      void unexecute();
      /** Execute the command */
      void execute();
      /** Returns the name of this command */
      QString name() const;
      private:
       KdenliveDoc & m_document;
      /** True if this command creates a marker when executed, false otherwise. */
00048       bool m_create;
      QString m_comment;
      /** The time (in clip time) that the marker should be placed at. */
00051       GenTime m_clipTime;

      /** The id of the clip on which the marker is to be placed. */
00054       int m_id;

      /** Adds the marker that this command is supposed to add. */
      void addMarker();

      /** Removes the marker this command is supposed to remove. */
      void deleteMarker();
    };

}
#endif

Generated by  Doxygen 1.6.0   Back to index