]> git.sesse.net Git - kdenlive/blobdiff - src/transition.h
Correctly refresh transition widget when resizing a transition, move last keyframe...
[kdenlive] / src / transition.h
index 614d37eaef2536309b10279c61f2447cf6d8d59b..b0d43081937106c436440e714f41b4798caba413 100644 (file)
@@ -55,7 +55,6 @@ public:
     int transitionEndTrack() const;
     bool hasClip(const ClipItem * clip) const;
     bool belongsToClip(const ClipItem * clip) const;
-    bool invertedTransition() const;
     QString transitionTag() const;
     QStringList transitionInfo() const;
     OPERATIONTYPE operationMode(QPointF pos);
@@ -63,10 +62,7 @@ public:
     static int itemOffset();
     //const QMap < QString, QString > transitionParameters() const;
     void setTransitionParameters(const QDomElement params);
-    void setTransitionDirection(bool inv);
     void setTransitionTrack(int track);
-    //Transition *reparent(ClipItem * clip);
-    bool isValid() const;
 
     /** @brief Links the transition to another track.
      *
@@ -80,8 +76,10 @@ public:
     void setAutomatic(bool automatic);
     bool hasGeometry();
     int defaultZValue() const;
-    /** @brief When a transition is resized, check if keyframes are out of the transition and fix if necessary. */
-    bool updateKeyframes();
+    /** @brief When a transition is resized, check if keyframes are out of the transition and fix if necessary. 
+     * @param oldEnd the previous transition end, so that when we expand the transition, if there is a keyframe at end we move it
+     */
+    bool updateKeyframes(int oldEnd);
 
 protected:
     virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);