|
Krita Source Code Documentation
|
#include <kis_paintop_registry.h>
Inheritance diagram for KisPaintOpRegistry:Public Member Functions | |
| KisInterstrokeDataFactory * | createInterstrokeDataFactory (KisPaintOpPresetSP preset) const |
| KisPaintOpSettingsSP | createSettings (const KoID &id, KisResourcesInterfaceSP resourcesInterface) const |
| KisPaintOpPresetSP | defaultPreset (const KoID &id, KisResourcesInterfaceSP resourcesInterface) const |
| QIcon | icon (const KoID &id) const |
| KisPaintOpRegistry () | |
| QList< KoID > | listKeys () const |
| KisPaintOp * | paintOp (const KisPaintOpPresetSP preset, KisPainter *painter, KisNodeSP node, KisImageSP image) const |
| ~KisPaintOpRegistry () override | |
Public Member Functions inherited from KoGenericRegistry< KisPaintOpFactory * > | |
| void | add (const QString &id, KisPaintOpFactory * item) |
| void | add (KisPaintOpFactory * item) |
| void | addAlias (const QString &alias, const QString &id) |
| QHash< QString, KisPaintOpFactory * >::const_iterator | constBegin () const |
| QHash< QString, KisPaintOpFactory * >::const_iterator | constEnd () const |
| bool | contains (const QString &id) const |
| int | count () const |
| QList< KisPaintOpFactory * > | doubleEntries () const |
| KisPaintOpFactory * | get (const QString &id) const |
| QList< QString > | keys () const |
| KoGenericRegistry () | |
| void | remove (const QString &id) |
| void | removeAlias (const QString &alias) |
| const KisPaintOpFactory * | value (const QString &id) const |
| QList< KisPaintOpFactory * > | values () const |
| virtual | ~KoGenericRegistry () |
Static Public Member Functions | |
| static KisPaintOpRegistry * | instance () |
Private Member Functions | |
| void | initRegistry () |
| KisPaintOpRegistry (const KisPaintOpRegistry &) | |
| KisPaintOpRegistry | operator= (const KisPaintOpRegistry &) |
| KisPaintOp * | paintOp (const QString &id, const KisPaintOpSettingsSP settings, KisPainter *painter, KisNodeSP node, KisImageSP image) const |
Friends | |
| class | KisPaintOpSettings |
Manages the loading and creating of all paintop plugins.
Definition at line 30 of file kis_paintop_registry.h.
| KisPaintOpRegistry::KisPaintOpRegistry | ( | ) |
Definition at line 30 of file kis_paintop_registry.cc.
|
override |
Definition at line 34 of file kis_paintop_registry.cc.
References dbgRegistry, KoGenericRegistry< KisPaintOpFactory * >::get(), and KoGenericRegistry< KisPaintOpFactory * >::keys().
|
private |
| KisInterstrokeDataFactory * KisPaintOpRegistry::createInterstrokeDataFactory | ( | KisPaintOpPresetSP | preset | ) | const |
Definition at line 94 of file kis_paintop_registry.cc.
References KoGenericRegistry< KisPaintOpFactory * >::value().
| KisPaintOpSettingsSP KisPaintOpRegistry::createSettings | ( | const KoID & | id, |
| KisResourcesInterfaceSP | resourcesInterface ) const |
Create and return an (abstracted) configuration widget for using the specified paintop with the specified input device, with the specified parent as widget parent. Returns 0 if there are no settings available for the given device.
Definition at line 106 of file kis_paintop_registry.cc.
References KoGenericRegistry< KisPaintOpFactory * >::value().
| KisPaintOpPresetSP KisPaintOpRegistry::defaultPreset | ( | const KoID & | id, |
| KisResourcesInterfaceSP | resourcesInterface ) const |
Definition at line 118 of file kis_paintop_registry.cc.
References createSettings(), and KisSharedPtr< T >::isNull().
| QIcon KisPaintOpRegistry::icon | ( | const KoID & | id | ) | const |
Definition at line 135 of file kis_paintop_registry.cc.
References dbgRegistry, p, and KoGenericRegistry< KisPaintOpFactory * >::value().
|
private |
Definition at line 43 of file kis_paintop_registry.cc.
References KoPluginLoader::instance(), and KoPluginLoader::load().
|
static |
Definition at line 48 of file kis_paintop_registry.cc.
References dbgRegistry, and initRegistry().
This function return a list of all the keys in KoID format by using the name() method on the objects stored in the registry.
Definition at line 149 of file kis_paintop_registry.cc.
References KoGenericRegistry< KisPaintOpFactory * >::get(), and KoGenericRegistry< KisPaintOpFactory * >::keys().
|
private |
| KisPaintOp * KisPaintOpRegistry::paintOp | ( | const KisPaintOpPresetSP | preset, |
| KisPainter * | painter, | ||
| KisNodeSP | node, | ||
| KisImageSP | image ) const |
Create and return a paintop based on the given preset. A preset defines a paintop, a settings object and possible a brush tip.
Definition at line 87 of file kis_paintop_registry.cc.
References paintOp().
|
private |
Return a newly created paintop. You are responsible for deleting
Definition at line 67 of file kis_paintop_registry.cc.
References KoGenericRegistry< KisPaintOpFactory * >::value(), and warnKrita.
|
friend |
Definition at line 85 of file kis_paintop_registry.h.