]> git.sesse.net Git - kdenlive/blobdiff - src/effectstack/effectstackview2.h
Implement drag & drop of effects in effect stack
[kdenlive] / src / effectstack / effectstackview2.h
index fc8e601f8126788cb05af0cde0b94de135ca8c03..1ab3f1b7ce93503901a8a3ae640c19fbbd85a1e3 100644 (file)
@@ -130,10 +130,10 @@ private slots:
     /** @brief Move an effect in the stack.
      * @param index The effect index in the stack
      * @param up true if we want to move effect up, false for down */
-    void slotMoveEffect(int index, bool up);
+    void slotMoveEffectUp(int index, bool up);
 
     /** @brief Delete an effect in the stack. */
-    void slotDeleteEffect(const QDomElement effect, int index);
+    void slotDeleteEffect(const QDomElement effect);
 
     /** @brief Pass position changes of the timeline cursor to the effects to keep their local timelines in sync. */
     void slotRenderPos(int pos);
@@ -154,11 +154,12 @@ private slots:
     
     /** @brief Move an effect into a group.
       ** @param ix the index of effect to move in stack layout
-      ** @param group the effect group where the effect is moved
+      ** @param group the effect on which the effect was dropped
       ** @param lastEffectIndex the last effect index in the group, effect will be inserted after that index
       */
-    void slotMoveEffectToGroup(int ix, CollapsibleEffect *group, int lastEffectIndex);
-
+    void slotMoveEffect(int currentIndex, int newIndex, CollapsibleEffect* target);
+    /** @brief Remove effects from a group */
+    void slotUnGroup(CollapsibleEffect* group);
 
 signals:
     void removeEffect(ClipItem*, int, QDomElement);