libs/flake
KoShapeControllerBase Class Reference
The shape controller is an abstract interface that the applications class that controls the shapes should implement. More...
#include <KoShapeControllerBase.h>
Public Member Functions | |
| KoShapeControllerBase () | |
| virtual | ~KoShapeControllerBase () |
| virtual void | addShape (KoShape *shape)=0 |
| virtual QMap< QString, KoDataCenter * > | dataCenterMap () const =0 |
| virtual void | removeShape (KoShape *shape)=0 |
Detailed Description
The shape controller is an abstract interface that the applications class that controls the shapes should implement.
This tends to be the document.
- See also:
- KoShapeDeleteCommand, KoShapeCreateCommand
Definition at line 37 of file KoShapeControllerBase.h.
Constructor & Destructor Documentation
| KoShapeControllerBase::KoShapeControllerBase | ( | ) | [inline] |
Definition at line 40 of file KoShapeControllerBase.h.
| virtual KoShapeControllerBase::~KoShapeControllerBase | ( | ) | [inline, virtual] |
Definition at line 41 of file KoShapeControllerBase.h.
Member Function Documentation
| virtual void KoShapeControllerBase::addShape | ( | KoShape * | shape | ) | [pure virtual] |
Add a shape to the shape controller, allowing it to be seen and saved.
The controller should add the shape to the ShapeManager instance(s) manually if the shape is one that should be currently shown on screen.
- Parameters:
-
shape the new shape
| virtual QMap<QString, KoDataCenter *> KoShapeControllerBase::dataCenterMap | ( | ) | const [pure virtual] |
This method returns a map of KoDataCenter classes.
Typically some class-factories have created DataCenters and added them to this map. This map is started from scratch with each new document (ehem KoShapeControllerBase)
| virtual void KoShapeControllerBase::removeShape | ( | KoShape * | shape | ) | [pure virtual] |
Remove a shape from the shape controllers control, allowing it to be deleted shortly after The controller should remove the shape from all the ShapeManager instance(s) manually.
- Parameters:
-
shape the shape to remove
The documentation for this class was generated from the following file:
