|
Krita Source Code Documentation
|
#include <KoShapeControllerBase.h>
Inheritance diagram for KoShapeControllerBase:Public Member Functions | |
| virtual KoShapeContainer * | createParentForShapes (const QList< KoShape * > shapes, bool forceNewLayer, KUndo2Command *parentCommand) |
| QRectF | documentRect () const |
| virtual QRectF | documentRectInPixels () const =0 |
| KoShapeControllerBase () | |
| virtual qreal | pixelsPerInch () const =0 |
| virtual KoDocumentResourceManager * | resourceManager () const |
| virtual | ~KoShapeControllerBase () |
Private Attributes | |
| KoshapeControllerBasePrivate *const | d |
The KoshapeControllerBase is an abstract interface that the application's class that owns the shapes should implement. This tends to be the document.
Definition at line 30 of file KoShapeControllerBase.h.
| KoShapeControllerBase::KoShapeControllerBase | ( | ) |
Definition at line 48 of file KoShapeControllerBase.cpp.
|
virtual |
|
virtual |
When shapes are dropped to the canvas, the document should decide, where to which parent to put them. In some cases the document should even create a special layer for the new shapes.
shapes | parentCommand | the command, which should be executed before the proposed parent will be added to the document (if new layer should be created) |
Reimplemented in KisShapeController.
Definition at line 58 of file KoShapeControllerBase.cpp.
| QRectF KoShapeControllerBase::documentRect | ( | ) | const |
The size of the document measured in 'pt'
Definition at line 72 of file KoShapeControllerBase.cpp.
References documentRectInPixels(), and pixelsPerInch().
|
pure virtual |
The size of the document measured in rasterized pixels. This information is needed for loading SVG documents that use 'px' as the default unit.
Implemented in KisShapeController.
|
pure virtual |
Resolution of the rasterized representation of the document. Used to load SVG documents correctly.
Implemented in KisShapeController.
|
virtual |
Return a pointer to the resource manager associated with the shape-set (typically a document). The resource manager contains document wide resources * such as variable managers, the image collection and others.
Definition at line 67 of file KoShapeControllerBase.cpp.
References d, and KoshapeControllerBasePrivate::resourceManager.
|
private |
Definition at line 73 of file KoShapeControllerBase.h.