File indexing completed on 2024-12-22 04:16:21

0001 /*
0002  * SPDX-FileCopyrightText: 2010 Lukáš Tvrdý (lukast.dev@gmail.com)
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #include "particle_paintop_plugin.h"
0007 
0008 
0009 #include <klocalizedstring.h>
0010 #include <kis_debug.h>
0011 #include <kpluginfactory.h>
0012 
0013 #include <brushengine/kis_paintop_registry.h>
0014 
0015 
0016 #include "kis_particle_paintop.h"
0017 #include "kis_particle_paintop_settings_widget.h"
0018 
0019 #include <kis_simple_paintop_factory.h>
0020 
0021 #include "kis_global.h"
0022 
0023 K_PLUGIN_FACTORY_WITH_JSON(ParticlePaintOpPluginFactory, "kritaparticlepaintop.json", registerPlugin<ParticlePaintOpPlugin>();)
0024 
0025 
0026 ParticlePaintOpPlugin::ParticlePaintOpPlugin(QObject *parent, const QVariantList &)
0027     : QObject(parent)
0028 {
0029     KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
0030     r->add(new KisSimplePaintOpFactory<KisParticlePaintOp, KisParticlePaintOpSettings, KisParticlePaintOpSettingsWidget>("particlebrush", i18n("Particle"), KisPaintOpFactory::categoryStable(), "krita-particle.png", QString(), QStringList(), 11, false));
0031 }
0032 
0033 ParticlePaintOpPlugin::~ParticlePaintOpPlugin()
0034 {
0035 }
0036 
0037 #include "particle_paintop_plugin.moc"