File indexing completed on 2024-12-22 04:15:31
0001 /* 0002 * KDE. Krita Project. 0003 * 0004 * SPDX-FileCopyrightText: 2020 Deif Lou <ginoba@gmail.com> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef KISGRADIENTGENERATOR_H 0010 #define KISGRADIENTGENERATOR_H 0011 0012 #include <QObject> 0013 0014 #include "generator/kis_generator.h" 0015 0016 #include "KisGradientGeneratorConfiguration.h" 0017 0018 class KisConfigWidget; 0019 0020 class KisGradientGenerator : public KisGenerator 0021 { 0022 public: 0023 KisGradientGenerator(); 0024 0025 using KisGenerator::generate; 0026 0027 virtual void generate(KisProcessingInformation dst, 0028 const QSize& size, 0029 const KisFilterConfigurationSP config, 0030 KoUpdater* progressUpdater) const override; 0031 0032 static inline KoID id() { 0033 return KoID(KisGradientGeneratorConfiguration::defaultName(), i18n("Gradient")); 0034 } 0035 0036 KisFilterConfigurationSP factoryConfiguration(KisResourcesInterfaceSP resourcesInterface) const override; 0037 KisFilterConfigurationSP defaultConfiguration(KisResourcesInterfaceSP resourcesInterface) const override; 0038 KisConfigWidget* createConfigurationWidget(QWidget* parent, const KisPaintDeviceSP dev, bool useForMasks) const override; 0039 }; 0040 0041 #endif