Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paintop_factory.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2008 Boudewijn Rempt <boud@valdyas.org>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#include <
brushengine/kis_paintop_factory.h
>
7
8
#include <klocalizedstring.h>
9
#include <
KoColorSpace.h
>
10
11
KisPaintOpFactory::KisPaintOpFactory
(
const
QStringList
& whiteListedCompositeOps)
12
: m_whiteListedCompositeOps(whiteListedCompositeOps), m_priority(100)
13
, m_visibility(AUTO)
14
{
15
}
16
17
QStringList
KisPaintOpFactory::whiteListedCompositeOps
()
const
18
{
19
return
m_whiteListedCompositeOps
;
20
}
21
22
#ifdef HAVE_THREADED_TEXT_RENDERING_WORKAROUND
23
void
KisPaintOpFactory::preinitializePaintOpIfNeeded(
const
KisPaintOpSettingsSP
settings)
24
{
25
Q_UNUSED(settings);
26
}
27
#endif
/* HAVE_THREADED_TEXT_RENDERING_WORKAROUND */
28
29
QIcon
KisPaintOpFactory::icon
()
30
{
31
QPixmap
p
= QPixmap(22, 22);
32
p
.fill(Qt::transparent);
33
return
QIcon(
p
);
34
}
35
36
QString
KisPaintOpFactory::categoryStable
()
37
{
38
return
i18nc(
"Category of brush engines"
,
"Brush engines"
);
39
}
40
41
KisInterstrokeDataFactory
*
KisPaintOpFactory::createInterstrokeDataFactory
(
const
KisPaintOpSettingsSP
/*settings*/
,
KisResourcesInterfaceSP
/*resourcesInterface*/
)
const
42
{
43
return
0;
44
}
45
46
void
KisPaintOpFactory::setPriority
(
int
newPriority)
47
{
48
m_priority
= newPriority;
49
}
50
51
52
int
KisPaintOpFactory::priority
()
const
53
{
54
return
m_priority
;
55
}
56
57
58
p
const Params2D p
Definition
KisBezierUtils.cpp:703
KoColorSpace.h
KisInterstrokeDataFactory
Definition
KisInterstrokeDataFactory.h:25
KisPaintOpFactory::m_whiteListedCompositeOps
QStringList m_whiteListedCompositeOps
Definition
kis_paintop_factory.h:119
KisPaintOpFactory::priority
int priority() const
Definition
kis_paintop_factory.cpp:52
KisPaintOpFactory::KisPaintOpFactory
KisPaintOpFactory(const QStringList &whiteListedCompositeOps=QStringList())
Definition
kis_paintop_factory.cpp:11
KisPaintOpFactory::categoryStable
static QString categoryStable()
Definition
kis_paintop_factory.cpp:36
KisPaintOpFactory::whiteListedCompositeOps
QStringList whiteListedCompositeOps() const
Definition
kis_paintop_factory.cpp:17
KisPaintOpFactory::setPriority
void setPriority(int newPriority)
Definition
kis_paintop_factory.cpp:46
KisPaintOpFactory::createInterstrokeDataFactory
virtual KisInterstrokeDataFactory * createInterstrokeDataFactory(const KisPaintOpSettingsSP settings, KisResourcesInterfaceSP resourcesInterface) const
Definition
kis_paintop_factory.cpp:41
KisPaintOpFactory::m_priority
int m_priority
Definition
kis_paintop_factory.h:120
KisPaintOpFactory::icon
virtual QIcon icon()
icon
Definition
kis_paintop_factory.cpp:29
KisPinnedSharedPtr< KisPaintOpSettings >
QList< QString >
QSharedPointer< KisResourcesInterface >
kis_paintop_factory.h
libs
image
brushengine
kis_paintop_factory.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52