7#ifndef SIMPLESHAPECONTAINERMODEL_H
8#define SIMPLESHAPECONTAINERMODEL_H
52 const int index =
indexOf(shape);
57 const int index =
indexOf(shape);
62 const int index =
indexOf(shape);
78 const int index =
indexOf(shape);
83 const int index =
indexOf(shape);
91 bool allowedToMove =
true;
92 while (allowedToMove && parent) {
93 allowedToMove = parent->isShapeEditable();
94 parent = parent->parent();
96 if (! allowedToMove) {
float value(const T *src, size_t ch)
virtual void shapeToBeRemovedFromHierarchy(KoShape *shape, KoShapeContainer *removedFromSubtree)
virtual void shapeHasBeenAddedToHierarchy(KoShape *shape, KoShapeContainer *addedToSubtree)
void remove(KoShape *shape)
void addShape(KoShape *shape, KoShapeManager::Repaint repaint=PaintShapeOnAdd)
KoShapeContainer * parent() const
ChangeType
Used by shapeChanged() to select which change was made.
virtual KoShape * cloneShape() const
creates a deep copy of the shape or shape's subtree
void proposeMove(KoShape *shape, QPointF &move) override
int indexOf(const KoShape *shape) const
KoShapeManager * m_associatedRootShapeManager
bool isClipped(const KoShape *shape) const override
SimpleShapeContainerModel(const SimpleShapeContainerModel &rhs)
void shapeHasBeenAddedToHierarchy(KoShape *shape, KoShapeContainer *addedToSubtree) override
void setClipped(const KoShape *shape, bool value) override
int count() const override
void setAssociatedRootShapeManager(KoShapeManager *manager)
void add(KoShape *child) override
void containerChanged(KoShapeContainer *, KoShape::ChangeType) override
SimpleShapeContainerModel()
QList< KoShape * > m_members
QList< KoShape * > shapes() const override
QList< bool > m_inheritsTransform
void remove(KoShape *shape) override
~SimpleShapeContainerModel() override
void shapeToBeRemovedFromHierarchy(KoShape *shape, KoShapeContainer *removedFromSubtree) override
KoShapeManager * associatedRootShapeManager() const
bool inheritsTransform(const KoShape *shape) const override
void setInheritsTransform(const KoShape *shape, bool value) override
#define KIS_ASSERT_RECOVER(cond)
#define KIS_SAFE_ASSERT_RECOVER(cond)
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)