]> git.sesse.net Git - kdenlive/blobdiff - src/abstractgroupitem.h
use const+reference
[kdenlive] / src / abstractgroupitem.h
index bf080a264e86d62961e3fc82ff7d3791dee29a57..0f16f32e193f12ce6bbee1b1563581353b580930 100644 (file)
@@ -38,21 +38,29 @@ public:
     virtual int type() const;
     CustomTrackScene* projectScene();
     void addItem(QGraphicsItem * item);
+    void removeItem(QGraphicsItem * item);
     int track() const;
     QPainterPath clipGroupShape(QPointF offset) const;
+    QPainterPath clipGroupSpacerShape(QPointF offset) const;
     QPainterPath transitionGroupShape(QPointF offset) const;
     void setItemLocked(bool locked);
     bool isItemLocked() const;
     //    ItemInfo info() const;
-    /** @brief Resizes all clips in this group from the end.
+
+    /** @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);
-    void resizeStart(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 *);
@@ -64,6 +72,7 @@ protected:
 private:
     void fixItemRect();
     QPainterPath groupShape(GRAPHICSRECTITEM type, QPointF offset) const;
+    QPainterPath spacerGroupShape(GRAPHICSRECTITEM type, QPointF offset) const;
     /** Stores the original info of the items beeing resized. */
     QList <ItemInfo> m_resizeInfos;
 };