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

kmmtimeline.h

/***************************************************************************
                         kmmtimeline  -  description
                            -------------------
   begin                : Wed Dec 24 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 KMMTIMELINE_H
#define KMMTIMELINE_H

#include <ktimeline.h>
#include "qstring.h"

class DocClipRef;

namespace Gui {

    class KMMRulerPanel;

/**
Implementation-specific derivation of KTimeLine. Includes correct drag/drop support, among other things.

@author Jason Wood
*/
00034     class KMMTimeLine:public KTimeLine {
      public:
      KMMTimeLine(QWidget * scrollToolWidget, QWidget * parent =
          0, const char *name = 0);

      ~KMMTimeLine();

        void fitToWidth(bool restore);
      //set the timescale combobox to last saved value -reh
      void setSliderIndex(int index);
      //Return the current timescale slider value
      int getTimeScaleSliderText() const;

      // zoom timeline up or down
      void zoomTimeline(bool up);

    public slots:
      /** Invalidates the area of the back buffer used by this clip. */
      void invalidateClipBuffer(DocClipRef * clip);
       signals:
      /** emitted when something of interest is happening over a clip on the timeline. */
      void lookingAtClip(DocClipRef *, const GenTime &);
    private:
      // A tool that can be used to change the timescale of the timeline.
00058        KMMRulerPanel * m_rulerToolWidget;
         // used to store the last used zoom
         double m_lastZoom;
         int m_lastPosition;
    };

}                       // namespace Gui
#endif

Generated by  Doxygen 1.6.0   Back to index