|
Krita Source Code Documentation
|
#include <KoShapeRegistry.h>
Inheritance diagram for KoShapeRegistry:Public Member Functions | |
| void | addFactory (KoShapeFactoryBase *factory) |
| QList< KoShapeFactoryBase * > | factoriesForElement (const QString &nameSpace, const QString &elementName) |
| void | init (KoShapeRegistry *q) |
| void | insertFactory (KoShapeFactoryBase *factory) |
| KoShapeRegistry () | |
| ~KoShapeRegistry () override | |
Public Member Functions inherited from KoGenericRegistry< KoShapeFactoryBase * > | |
| void | add (const QString &id, KoShapeFactoryBase * item) |
| void | add (KoShapeFactoryBase * item) |
| void | addAlias (const QString &alias, const QString &id) |
| QHash< QString, KoShapeFactoryBase * >::const_iterator | constBegin () const |
| QHash< QString, KoShapeFactoryBase * >::const_iterator | constEnd () const |
| bool | contains (const QString &id) const |
| int | count () const |
| QList< KoShapeFactoryBase * > | doubleEntries () const |
| KoShapeFactoryBase * | get (const QString &id) const |
| QList< QString > | keys () const |
| KoGenericRegistry () | |
| void | remove (const QString &id) |
| void | removeAlias (const QString &alias) |
| const KoShapeFactoryBase * | value (const QString &id) const |
| QList< KoShapeFactoryBase * > | values () const |
| virtual | ~KoGenericRegistry () |
Static Public Member Functions | |
| static KoShapeRegistry * | instance () |
Public Attributes | |
| QHash< QPair< QString, QString >, QMultiMap< int, KoShapeFactoryBase * > > | factoryMap |
Private Member Functions | |
| KoShapeRegistry (const KoShapeRegistry &) | |
| KoShapeRegistry | operator= (const KoShapeRegistry &) |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
This singleton class keeps a register of all available flake shapes, or rather, of the factories that applications can use to create flake shape objects.
Definition at line 34 of file KoShapeRegistry.cpp.
| KoShapeRegistry::KoShapeRegistry | ( | ) |
Definition at line 44 of file KoShapeRegistry.cpp.
|
override |
Definition at line 49 of file KoShapeRegistry.cpp.
References d, KoGenericRegistry< KoShapeFactoryBase * >::doubleEntries(), and KoGenericRegistry< KoShapeFactoryBase * >::values().
|
private |
| void KoShapeRegistry::addFactory | ( | KoShapeFactoryBase * | factory | ) |
Add shape factory for a shape that is not a plugin This can be used also if you want to have a shape only in one application
| factory | The factory of the shape |
Definition at line 89 of file KoShapeRegistry.cpp.
References KoGenericRegistry< KoShapeFactoryBase * >::add(), and d.
| QList< KoShapeFactoryBase * > KoShapeRegistry::factoriesForElement | ( | const QString & | nameSpace, |
| const QString & | elementName ) |
Returns a list of shape factories supporting the specified xml element.
| nameSpace | the namespace of the xml element, see KoXmlNS for valid namespaces |
| elementName | the tag name of the element |
Definition at line 129 of file KoShapeRegistry.cpp.
| void KoShapeRegistry::init | ( | KoShapeRegistry * | q | ) |
| void KoShapeRegistry::insertFactory | ( | KoShapeFactoryBase * | factory | ) |
|
static |
Return an instance of the KoShapeRegistry Creates an instance if that has never happened before and returns the singleton instance.
Definition at line 81 of file KoShapeRegistry.cpp.
References d.
|
private |
|
private |
Definition at line 59 of file KoShapeRegistry.h.
| QHash<QPair<QString, QString>, QMultiMap<int, KoShapeFactoryBase*> > KoShapeRegistry::factoryMap |
Definition at line 41 of file KoShapeRegistry.cpp.