File indexing completed on 2024-12-22 04:16:08
0001 /* 0002 * SPDX-FileCopyrightText: 2007 Cyrille Berger <cberger@cberger.net> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "filterop.h" 0008 #include <klocalizedstring.h> 0009 0010 #include <kis_debug.h> 0011 #include <kpluginfactory.h> 0012 0013 #include <KoCompositeOpRegistry.h> 0014 0015 #include <brushengine/kis_paintop_registry.h> 0016 #include "kis_simple_paintop_factory.h" 0017 #include "kis_filterop.h" 0018 #include "kis_filterop_settings.h" 0019 #include "kis_filterop_settings_widget.h" 0020 0021 K_PLUGIN_FACTORY_WITH_JSON(FilterOpFactory, "kritafilterop.json", registerPlugin<FilterOp>();) 0022 0023 FilterOp::FilterOp(QObject *parent, const QVariantList &) 0024 : QObject(parent) 0025 { 0026 QStringList whiteList; 0027 whiteList << COMPOSITE_COPY; 0028 0029 // This is not a gui plugin; only load it when the doc is created. 0030 KisPaintOpRegistry *r = KisPaintOpRegistry::instance(); 0031 r->add(new KisSimplePaintOpFactory<KisFilterOp, KisFilterOpSettings, KisFilterOpSettingsWidget>("filter", i18nc("type of a brush engine, shown in the list of brush engines", "Filter"), KisPaintOpFactory::categoryStable(), "krita-filterop.png", QString(), whiteList, 17)); 0032 0033 } 0034 0035 FilterOp::~FilterOp() 0036 { 0037 } 0038 0039 #include "filterop.moc" 0040