]> git.sesse.net Git - kdenlive/blobdiff - src/abstractgroupitem.h
Video not needed when creating audio thumbs
[kdenlive] / src / abstractgroupitem.h
index 45ed065667b3ebdc597519c9423ac9cba8aa9f25..2c8c90f7a715bd9be193cc9f6ba661bf67d597ab 100644 (file)
@@ -45,6 +45,20 @@ public:
     bool isItemLocked() const;
     //    ItemInfo info() const;
 
+    /** @brief Resizes all clips in this group from start.
+    *@param diff Difference to startPos stored in m_resizeInfos */
+    void resizeStart(int diff);
+    /** @brief Resizes all clips in this group from end.
+    * @param diff Difference to endPos stored in m_resizeInfos */
+    void resizeEnd(int diff);
+    /** @brief Gets m_resizeInfos */
+    QList <ItemInfo> resizeInfos();
+    /** @brief Clears m_resizeInfos */
+    void clearResizeInfos();
+
+    /** @brief Gets the duration (length) of the group. */
+    GenTime duration();
+
 protected:
     virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
     virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
@@ -56,6 +70,8 @@ protected:
 private:
     void fixItemRect();
     QPainterPath groupShape(GRAPHICSRECTITEM type, QPointF offset) const;
+    /** Stores the original info of the items beeing resized. */
+    QList <ItemInfo> m_resizeInfos;
 };
 
 #endif