X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fabstractgroupitem.h;h=3e0594ec824ebd7ec03acb0fd7833b5611d41f25;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=23bf850ce54e7ad880b31b5ed54198fa24baff09;hpb=35a5c83d59396a357f49d73a7c5127cc06bbb686;p=kdenlive diff --git a/src/abstractgroupitem.h b/src/abstractgroupitem.h index 23bf850c..3e0594ec 100644 --- a/src/abstractgroupitem.h +++ b/src/abstractgroupitem.h @@ -38,20 +38,26 @@ public: virtual int type() const; CustomTrackScene* projectScene(); void addItem(QGraphicsItem * item); + void removeItem(QGraphicsItem * item); int track() const; - QPainterPath clipGroupShape(QPointF offset) const; - QPainterPath transitionGroupShape(QPointF offset) const; + QPainterPath clipGroupShape(const QPointF &offset) const; + QPainterPath clipGroupSpacerShape(const QPointF &offset) const; + QPainterPath transitionGroupShape(const 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 resizeInfos(); /** @brief Clears m_resizeInfos */ void clearResizeInfos(); + /** @brief Gets the duration (length) of the group. */ GenTime duration(); @@ -65,7 +71,8 @@ protected: private: void fixItemRect(); - QPainterPath groupShape(GRAPHICSRECTITEM type, QPointF offset) const; + QPainterPath groupShape(GraphicsRectItem type, const QPointF &offset) const; + QPainterPath spacerGroupShape(GraphicsRectItem type, const QPointF &offset) const; /** Stores the original info of the items beeing resized. */ QList m_resizeInfos; };