|
Krita Source Code Documentation
|
#include <kis_paintop_factory.h>
Inheritance diagram for KisPaintOpFactory:Public Types | |
| enum | PaintopVisibility { AUTO , ALWAYS , NEVER } |
Static Public Member Functions | |
| static QString | categoryStable () |
Private Attributes | |
| int | m_priority |
| PaintopVisibility | m_visibility |
| QStringList | m_whiteListedCompositeOps |
The paintop factory is responsible for creating paintops of the specified class. If there is an optionWidget, the derived paintop itself must support settings, and it's up to the factory to do that.
Definition at line 38 of file kis_paintop_factory.h.
| Enumerator | |
|---|---|
| AUTO | |
| ALWAYS | |
| NEVER | |
Definition at line 44 of file kis_paintop_factory.h.
| KisPaintOpFactory::KisPaintOpFactory | ( | const QStringList & | whiteListedCompositeOps = QStringList() | ) |
| whiteListedCompositeOps | list of compositeops that don't work with this paintop |
Definition at line 11 of file kis_paintop_factory.cpp.
|
inlineoverride |
Definition at line 54 of file kis_paintop_factory.h.
|
pure virtual |
Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
|
static |
Definition at line 36 of file kis_paintop_factory.cpp.
|
pure virtual |
create a widget that can display paintop settings
Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
|
virtual |
Reimplemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >.
Definition at line 41 of file kis_paintop_factory.cpp.
|
pure virtual |
Create a KisPaintOp with the given settings and painter.
| settings | the settings associated with the input device |
| painter | the painter used to draw |
| node | the node used to draw |
| image | the image used to draw |
Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
|
pure virtual |
Create and return an settings object for this paintop.
Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
|
virtual |
icon
Reimplemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
Definition at line 29 of file kis_paintop_factory.cpp.
References p.
|
pure virtual |
Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
|
pure virtual |
Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
|
pure virtual |
Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
|
pure virtual |
settings. The resources are first tried to be loaded from resourcesInterface, and, if it fails, loaded from the embedded data. Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
|
pure virtual |
settings. Implemented in KisSimplePaintOpFactory< Op, OpSettings, OpSettingsWidget >, and KisMyPaintOpFactory.
| int KisPaintOpFactory::priority | ( | ) | const |
Definition at line 52 of file kis_paintop_factory.cpp.
References m_priority.
| void KisPaintOpFactory::setPriority | ( | int | newPriority | ) |
Set the priority of this paintop, as it is shown in the UI; lower number means it will be show more to the front of the list.
| newPriority | the priority |
Definition at line 46 of file kis_paintop_factory.cpp.
References m_priority.
| QStringList KisPaintOpFactory::whiteListedCompositeOps | ( | ) | const |
List of usually hidden compositeops that are useful for this paintop.
Definition at line 17 of file kis_paintop_factory.cpp.
References m_whiteListedCompositeOps.
|
private |
Definition at line 120 of file kis_paintop_factory.h.
|
private |
Definition at line 121 of file kis_paintop_factory.h.
|
private |
Definition at line 119 of file kis_paintop_factory.h.