]> git.sesse.net Git - kdenlive/blobdiff - src/clipitem.h
copy / paste clips and transitions, move several clips
[kdenlive] / src / clipitem.h
index e2e501b6c586dd7dcb8b732e3977fc2584a20ce1..6e72adb44937b7d492ef8fd38c77ce112fdf9362 100644 (file)
@@ -52,6 +52,7 @@ public:
     DocClipBase *baseClip() const;
     QString clipName() const;
     QDomElement xml() const;
+    ClipItem *clone(double scale) const;
 
     void setFadeOut(int pos, double scale);
     void setFadeIn(int pos, double scale);
@@ -79,12 +80,17 @@ public:
     void refreshClip();
     /** Returns a list of times for this clip's markers */
     QList <GenTime> snapMarkers() const;
+    QList <CommentedTime> commentedSnapMarkers() const;
     uint fadeIn() const;
     uint fadeOut() const;
-    void setSelectedEffect(int ix);
+    void setSelectedEffect(const int ix);
     void updateKeyframeEffect();
     QDomElement selectedEffect();
     int selectedEffectIndex() const;
+    void initEffect(QDomElement effect);
+    QString keyframes(const int index);
+    void setKeyframes(const int ix, const QString keyframes);
+    void setEffectList(const EffectsList effectList);
 
 protected:
     //virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * event);
@@ -129,6 +135,8 @@ private:
     bool audioThumbWasDrawn, audioThumbReady;
     double framePixelWidth;
     QMap<int, QPainterPath > channelPaths;
+    /** Called when clip start is resized, adjust keyframes values */
+    void checkEffectsKeyframesPos(const int previous, const int current, bool fromStart);
 
 private slots:
     void slotThumbReady(int frame, QPixmap pix);
@@ -136,13 +144,12 @@ private slots:
     void slotGetStartThumb();
     void slotGetEndThumb();
     void slotGotAudioData();
-    void slotPrepareAudioThumb(double, QPainterPath, int, int);
+    void slotPrepareAudioThumb(double pixelForOneFrame, QPainterPath path, int startpixel, int endpixel, int channels);
     void animate(qreal value);
 
 signals:
     void getThumb(int, int);
-    void prepareAudioThumb(double, QPainterPath, int, int);
-
+    void prepareAudioThumb(double, QPainterPath, int, int, int);
 };
 
 #endif