File indexing completed on 2024-05-26 04:33:58
0001 /* 0002 * SPDX-FileCopyrightText: 2008 Lukáš Tvrdý (lukast.dev@gmail.com) 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "hatching_paintop_plugin.h" 0007 0008 0009 #include <klocalizedstring.h> 0010 0011 #include <kis_debug.h> 0012 #include <kpluginfactory.h> 0013 0014 #include <brushengine/kis_paintop_registry.h> 0015 0016 0017 #include "kis_hatching_paintop.h" 0018 #include "kis_simple_paintop_factory.h" 0019 0020 #include "kis_global.h" 0021 0022 K_PLUGIN_FACTORY_WITH_JSON(HatchingPaintOpPluginFactory, "kritahatchingpaintop.json", registerPlugin<HatchingPaintOpPlugin>();) 0023 0024 0025 HatchingPaintOpPlugin::HatchingPaintOpPlugin(QObject *parent, const QVariantList &) 0026 : QObject(parent) 0027 { 0028 KisPaintOpRegistry *r = KisPaintOpRegistry::instance(); 0029 r->add(new KisSimplePaintOpFactory<KisHatchingPaintOp, KisHatchingPaintOpSettings, KisHatchingPaintOpSettingsWidget>("hatchingbrush", i18n("Hatching"), 0030 KisPaintOpFactory::categoryStable() , "krita-hatching.png", QString(), QStringList(), 7)); 0031 0032 } 0033 0034 HatchingPaintOpPlugin::~HatchingPaintOpPlugin() 0035 { 0036 } 0037 0038 #include "hatching_paintop_plugin.moc"