libs/flake
SimpleShapeContainerModel Class Reference
#include <SimpleShapeContainerModel.h>

Public Member Functions | |
| SimpleShapeContainerModel () | |
| ~SimpleShapeContainerModel () | |
| void | add (KoShape *child) |
| bool | childClipped (const KoShape *) const |
| QList< KoShape * > | childShapes () const |
| void | containerChanged (KoShapeContainer *) |
| int | count () const |
| bool | isChildLocked (const KoShape *child) const |
| void | remove (KoShape *child) |
| void | setClipping (const KoShape *, bool) |
Detailed Description
For internal use only.
Definition at line 25 of file SimpleShapeContainerModel.h.
Constructor & Destructor Documentation
| SimpleShapeContainerModel::SimpleShapeContainerModel | ( | ) | [inline] |
Definition at line 28 of file SimpleShapeContainerModel.h.
| SimpleShapeContainerModel::~SimpleShapeContainerModel | ( | ) | [inline] |
Definition at line 29 of file SimpleShapeContainerModel.h.
Member Function Documentation
| void SimpleShapeContainerModel::add | ( | KoShape * | child | ) | [inline, virtual] |
Add a child to this models store.
- Parameters:
-
child the child to be managed in the container.
Implements KoShapeContainerModel.
Definition at line 30 of file SimpleShapeContainerModel.h.
| bool SimpleShapeContainerModel::childClipped | ( | const KoShape * | child | ) | const [inline, virtual] |
Returns if the argument child has its 'clipping' property set.
See KoShapeContainerModel for an explenation of what this bool is for.
- Returns:
- if the argument child has its 'clipping' property set.
- Parameters:
-
child the child for which the property will be returned.
Implements KoShapeContainerModel.
Definition at line 36 of file SimpleShapeContainerModel.h.
Create and return an iterator over all child objects.
- Returns:
- an interator over all child objects.
Implements KoShapeContainerModel.
Definition at line 45 of file SimpleShapeContainerModel.h.
| void SimpleShapeContainerModel::containerChanged | ( | KoShapeContainer * | container | ) | [inline, virtual] |
This method is called as a notification that one of the properties of the container changed.
This can be one of size, position, rotation and skew. Note that clipped children will automatically get all these changes, the model does not have to do anything for that.
- Parameters:
-
container the actual container that changed.
Implements KoShapeContainerModel.
Definition at line 48 of file SimpleShapeContainerModel.h.
| int SimpleShapeContainerModel::count | ( | ) | const [inline, virtual] |
Return the current number of children registered.
- Returns:
- the current number of children registered.
Implements KoShapeContainerModel.
Definition at line 42 of file SimpleShapeContainerModel.h.
| bool SimpleShapeContainerModel::isChildLocked | ( | const KoShape * | child | ) | const [inline, virtual] |
Return wheather the child has the effective state of being locked for user modifications.
The model has to call KoShape::isGeometryProtected() and base its return value upon that, it can additionally find rules on wheather the child is locked based on the container state.
- Parameters:
-
child the shape that the user wants to move.
Implements KoShapeContainerModel.
Definition at line 49 of file SimpleShapeContainerModel.h.
| void SimpleShapeContainerModel::remove | ( | KoShape * | child | ) | [inline, virtual] |
Remove a child to be completely separated from the model.
- Parameters:
-
child the child to be removed.
Implements KoShapeContainerModel.
Definition at line 39 of file SimpleShapeContainerModel.h.
| void SimpleShapeContainerModel::setClipping | ( | const KoShape * | child, | |
| bool | clipping | |||
| ) | [inline, virtual] |
Set the argument child to have its 'clipping' property set.
- Parameters:
-
child the child for which the property will be changed. clipping the property; see KoShapeContainerModel for an explenation of what this bool is for.
Implements KoShapeContainerModel.
Definition at line 35 of file SimpleShapeContainerModel.h.
The documentation for this class was generated from the following file:
