Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paintop_registry.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2004 Boudewijn Rempt <boud@valdyas.org>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef KIS_PAINTOP_REGISTRY_H_
8
#define KIS_PAINTOP_REGISTRY_H_
9
10
#include <QObject>
11
12
#include "
KoGenericRegistry.h
"
13
14
#include "
kis_paintop.h
"
15
#include <
brushengine/kis_paintop_factory.h
>
16
#include "
kis_types.h
"
17
#include <
brushengine/kis_paintop_settings.h
>
18
#include <
brushengine/kis_paintop_preset.h
>
19
#include <
kis_threaded_text_rendering_workaround.h
>
20
21
#include <kritaimage_export.h>
22
23
24
class
KisPaintOp
;
25
class
KisPainter
;
26
30
class
KRITAIMAGE_EXPORT
KisPaintOpRegistry
:
public
QObject,
public
KoGenericRegistry
<KisPaintOpFactory*>
31
{
32
33
Q_OBJECT
34
35
public
:
36
KisPaintOpRegistry
();
37
~KisPaintOpRegistry
()
override
;
38
39
#ifdef HAVE_THREADED_TEXT_RENDERING_WORKAROUND
40
void
preinitializePaintOpIfNeeded(
const
KisPaintOpPresetSP
preset);
41
#endif
/* HAVE_THREADED_TEXT_RENDERING_WORKAROUND */
42
47
KisPaintOp
* paintOp(
const
KisPaintOpPresetSP
preset,
KisPainter
* painter,
KisNodeSP
node,
KisImageSP
image)
const
;
48
49
KisInterstrokeDataFactory
* createInterstrokeDataFactory(
KisPaintOpPresetSP
preset)
const
;
50
57
KisPaintOpSettingsSP
createSettings(
const
KoID
&
id
,
KisResourcesInterfaceSP
resourcesInterface)
const
;
58
62
KisPaintOpPresetSP
defaultPreset(
const
KoID
&
id
,
KisResourcesInterfaceSP
resourcesInterface)
const
;
63
64
// Get the icon to show in the user interface
65
QIcon icon(
const
KoID
&
id
)
const
;
66
71
QList<KoID>
listKeys()
const
;
72
73
public
:
74
75
static
KisPaintOpRegistry
*
instance
();
76
77
private
:
78
79
KisPaintOpRegistry
(
const
KisPaintOpRegistry
&);
80
KisPaintOpRegistry
operator=
(
const
KisPaintOpRegistry
&);
81
void
initRegistry();
82
83
84
// So the settings can get a paintop to render their sample image
85
friend
class
KisPaintOpSettings
;
86
90
KisPaintOp
* paintOp(
const
QString&
id
,
const
KisPaintOpSettingsSP
settings,
KisPainter
* painter,
KisNodeSP
node,
KisImageSP
image)
const
;
91
92
};
93
94
#endif
// KIS_PAINTOP_REGISTRY_H_
95
KoGenericRegistry.h
instance
PythonPluginManager * instance
Definition
PythonPluginManager.cpp:37
KisInterstrokeDataFactory
Definition
KisInterstrokeDataFactory.h:25
KisPaintOpRegistry
Definition
kis_paintop_registry.h:31
KisPaintOpRegistry::KisPaintOpRegistry
KisPaintOpRegistry(const KisPaintOpRegistry &)
KisPaintOpRegistry::operator=
KisPaintOpRegistry operator=(const KisPaintOpRegistry &)
KisPainter
Definition
kis_painter.h:66
KisPinnedSharedPtr< KisPaintOpSettings >
KisSharedPtr< KisNode >
KoGenericRegistry
Definition
KoGenericRegistry.h:47
KoID
Definition
KoID.h:30
QList
Definition
KisQStringListFwd.h:16
QSharedPointer< KisPaintOpPreset >
kis_paintop.h
kis_paintop_factory.h
kis_paintop_preset.h
kis_paintop_settings.h
kis_threaded_text_rendering_workaround.h
kis_types.h
KisPaintOpSettings
Definition
kis_paintop_settings.cpp:54
KisPaintOp
Definition
kis_paintop.cc:39
libs
image
brushengine
kis_paintop_registry.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52