File indexing completed on 2024-05-26 04:27:28
0001 /* 0002 * SPDX-FileCopyrightText: 2008 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include <brushengine/kis_paintop_factory.h> 0007 0008 #include <klocalizedstring.h> 0009 #include <KoColorSpace.h> 0010 0011 KisPaintOpFactory::KisPaintOpFactory(const QStringList & whiteListedCompositeOps) 0012 : m_whiteListedCompositeOps(whiteListedCompositeOps), m_priority(100) 0013 , m_visibility(AUTO) 0014 { 0015 } 0016 0017 QStringList KisPaintOpFactory::whiteListedCompositeOps() const 0018 { 0019 return m_whiteListedCompositeOps; 0020 } 0021 0022 #ifdef HAVE_THREADED_TEXT_RENDERING_WORKAROUND 0023 void KisPaintOpFactory::preinitializePaintOpIfNeeded(const KisPaintOpSettingsSP settings) 0024 { 0025 Q_UNUSED(settings); 0026 } 0027 #endif /* HAVE_THREADED_TEXT_RENDERING_WORKAROUND */ 0028 0029 QIcon KisPaintOpFactory::icon() 0030 { 0031 QPixmap p = QPixmap(22, 22); 0032 p.fill(Qt::transparent); 0033 return QIcon(p); 0034 } 0035 0036 QString KisPaintOpFactory::categoryStable() 0037 { 0038 return i18nc("Category of brush engines", "Brush engines"); 0039 } 0040 0041 KisInterstrokeDataFactory *KisPaintOpFactory::createInterstrokeDataFactory(const KisPaintOpSettingsSP /*settings*/, KisResourcesInterfaceSP /*resourcesInterface*/) const 0042 { 0043 return 0; 0044 } 0045 0046 void KisPaintOpFactory::setPriority(int newPriority) 0047 { 0048 m_priority = newPriority; 0049 } 0050 0051 0052 int KisPaintOpFactory::priority() const 0053 { 0054 return m_priority; 0055 } 0056 0057 0058