|
Krita Source Code Documentation
|
#include <KoDeferredShapeFactoryBase.h>
Inheritance diagram for KoDeferredShapeFactoryBase:Public Member Functions | |
| virtual KoShape * | createDefaultShape (KoDocumentResourceManager *documentResources=0) const =0 |
| virtual KoShape * | createShape (const KoProperties *params, KoDocumentResourceManager *documentResources=0) const |
| virtual QString | deferredPluginName ()=0 |
| KoDeferredShapeFactoryBase (QObject *parent) | |
| ~KoDeferredShapeFactoryBase () override | |
A factory for KoShape objects. This factory differs from the public KoShapeFactorBase class that this class really creates the shape; it's the plugin entry point for the actually shape plugins.
Definition at line 25 of file KoDeferredShapeFactoryBase.h.
|
explicit |
Definition at line 8 of file KoDeferredShapeFactoryBase.cpp.
|
override |
Definition at line 14 of file KoDeferredShapeFactoryBase.cpp.
|
pure virtual |
This method should be implemented by factories to create a shape that the user gets when doing a base insert. For example from a script. The created shape should have its values set to good defaults that the user can then adjust further if needed. Including the KoShape:setShapeId(), with the Id from this factory The default shape position is not relevant, it will be moved by the caller.
| documentResources | the resources manager that has all the document wide resources which can be used to create the object. |
|
virtual |
This method should be implemented by factories to create a shape based on a set of properties that are specifically made for this shape-type. This method should also set this factories shapeId on the shape using KoShape::setShapeId() The default implementation just ignores 'params' and calls createDefaultShape()
| params | the properties object is the same as added in the addTemplate() call |
| documentResources | the resources manager that has all the document wide resources which can be used to create the object. |
Definition at line 19 of file KoDeferredShapeFactoryBase.cpp.
References createDefaultShape().
|
pure virtual |