|
Krita Source Code Documentation
|
#include <ImageShapeFactory.h>
Inheritance diagram for ImageShapeFactory:Public Member Functions | |
| KoShape * | createDefaultShape (KoDocumentResourceManager *documentResources=0) const override |
| KoShape * | createShape (const KoProperties *params, KoDocumentResourceManager *documentResources=0) const |
| createShape | |
| QList< KoShapeConfigWidgetBase * > | createShapeOptionPanels () override |
| ImageShapeFactory () | |
| constructor | |
| bool | supports (const QDomElement &e, KoShapeLoadingContext &context) const override |
| ~ImageShapeFactory () override | |
Public Member Functions inherited from KoShapeFactoryBase | |
| QString | family () const |
| bool | hidden () const |
| QString | iconName () const |
| QString | id () const |
| KoShapeFactoryBase (const QString &id, const QString &name, const QString &deferredPluginName=QString()) | |
| int | loadingPriority () const |
| lower prio means the shape is more generic and will be checked later | |
| QString | name () const |
| virtual void | newDocumentResourceManager (KoDocumentResourceManager *manager) const |
| QList< QPair< QString, QStringList > > | odfElements () const |
| Private (const QString &_id, const QString &_name, const QString &_deferredPluginName) | |
| QList< KoShapeTemplate > | templates () const |
| QString | toolTip () const |
| ~KoShapeFactoryBase () override | |
| ~Private () | |
Additional Inherited Members | |
Public Attributes inherited from KoShapeFactoryBase | |
| KoDeferredShapeFactoryBase * | deferredFactory |
| QString | deferredPluginName |
| QString | family |
| bool | hidden |
| QString | iconName |
| const QString | id |
| int | loadingPriority |
| const QString | name |
| QMutex | pluginLoadingMutex |
| QList< QPointer< KoDocumentResourceManager > > | resourceManagers |
| QList< KoShapeTemplate > | templates |
| QString | tooltip |
| QList< QPair< QString, QStringList > > | xmlElements |
Protected Member Functions inherited from KoShapeFactoryBase | |
| void | addTemplate (const KoShapeTemplate ¶ms) |
| void | setFamily (const QString &family) |
| void | setHidden (bool hidden) |
| void | setIconName (const char *iconName) |
| void | setLoadingPriority (int priority) |
| void | setToolTip (const QString &tooltip) |
| void | setXmlElementNames (const QString &nameSpace, const QStringList &elementNames) |
| void | setXmlElements (const QList< QPair< QString, QStringList > > &elementNamesList) |
Definition at line 16 of file ImageShapeFactory.h.
| ImageShapeFactory::ImageShapeFactory | ( | ) |
constructor
Definition at line 25 of file ImageShapeFactory.cpp.
References KoXmlNS::draw, koIconNameCStrNeededWithSubs, KoShapeFactoryBase::setIconName(), KoShapeFactoryBase::setLoadingPriority(), KoShapeFactoryBase::setToolTip(), KoShapeFactoryBase::setXmlElements(), and KoXmlNS::svg.
|
inlineoverride |
Definition at line 22 of file ImageShapeFactory.h.
|
overridevirtual |
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. |
Reimplemented from KoShapeFactoryBase.
Definition at line 38 of file ImageShapeFactory.cpp.
References ImageShapeId, and KoShape::setShapeId().
|
virtual |
createShape
| params | The parameters. Will look at keys...
|
| documentResources | – unused. |
Reimplemented from KoShapeFactoryBase.
Definition at line 47 of file ImageShapeFactory.cpp.
References ImageShapeId, KIS_SAFE_ASSERT_RECOVER, ImageShape::setImage(), KoShape::setShapeId(), ImageShape::setViewBoxTransform(), and KoProperties::value().
|
overridevirtual |
Create a list of option panels to show on creating a new shape. The shape type this factory creates may have general or specific setting panels that will be shown after inserting a new shape. The first item in the list will be shown as the first tab in the list of panels, behind all app specific panels. This is a separate list as set by setOptionPanels() and fetched by panelFactories()
Reimplemented from KoShapeFactoryBase.
Definition at line 71 of file ImageShapeFactory.cpp.
|
overridevirtual |
returns true if this shapeFactory is able to load the ODF type started at argument element. ('draw:line' / 'draw:frame' / etc)
Implements KoShapeFactoryBase.
Definition at line 64 of file ImageShapeFactory.cpp.
References KoXmlNS::draw, and KoXmlNS::svg.