Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoShapeContainerModel.h
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
150 | virtual void proposeMove(KoShape *shape, QPointF &move); | 150 | virtual void proposeMove(KoShape *shape, QPointF &move); | ||
151 | 151 | | |||
152 | /** | 152 | /** | ||
153 | * This method is called when one of the shape shapes has been modified. | 153 | * This method is called when one of the shape shapes has been modified. | ||
154 | * When a shape shape is rotated, moved or scaled/skewed this method will be called | 154 | * When a shape shape is rotated, moved or scaled/skewed this method will be called | ||
155 | * to inform the container of such a change. The change has already happened at the | 155 | * to inform the container of such a change. The change has already happened at the | ||
156 | * time this method is called. | 156 | * time this method is called. | ||
157 | * The base implementation notifies the grand parent of the shape that there was a | 157 | * The base implementation notifies the grand parent of the shape that there was a | ||
158 | * change in a shape. A reimplentation if this function should call this method when | 158 | * change in a shape. A reimplementation if this function should call this method when | ||
159 | * overwriding the function. | 159 | * overriding the function. | ||
160 | * | 160 | * | ||
161 | * @param shape the shape that has been changed | 161 | * @param shape the shape that has been changed | ||
162 | * @param type this enum shows which change the shape has had. | 162 | * @param type this enum shows which change the shape has had. | ||
163 | */ | 163 | */ | ||
164 | virtual void childChanged(KoShape *shape, KoShape::ChangeType type); | 164 | virtual void childChanged(KoShape *shape, KoShape::ChangeType type); | ||
165 | 165 | | |||
166 | virtual void shapeHasBeenAddedToHierarchy(KoShape *shape, KoShapeContainer *addedToSubtree); | 166 | virtual void shapeHasBeenAddedToHierarchy(KoShape *shape, KoShapeContainer *addedToSubtree); | ||
167 | virtual void shapeToBeRemovedFromHierarchy(KoShape *shape, KoShapeContainer *removedFromSubtree); | 167 | virtual void shapeToBeRemovedFromHierarchy(KoShape *shape, KoShapeContainer *removedFromSubtree); | ||
168 | 168 | | |||
169 | protected: | 169 | protected: | ||
170 | KoShapeContainerModel(const KoShapeContainerModel &rhs); | 170 | KoShapeContainerModel(const KoShapeContainerModel &rhs); | ||
171 | }; | 171 | }; | ||
172 | 172 | | |||
173 | #endif | 173 | #endif |