File indexing completed on 2025-02-02 04:15:57

0001 /*
0002  *  SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef __KIS_STANDARD_UNIFORM_PROPERTIES_FACTORY_H
0008 #define __KIS_STANDARD_UNIFORM_PROPERTIES_FACTORY_H
0009 
0010 #include <KoID.h>
0011 
0012 #include "kis_uniform_paintop_property.h"
0013 
0014 class KisPaintOpPresetUpdateProxy;
0015 
0016 namespace KisStandardUniformPropertiesFactory
0017 {
0018 static const KoID size("size", ki18n("Size"));
0019 static const KoID opacity("opacity", ki18n("Opacity"));
0020 static const KoID flow("flow", ki18n("Flow"));
0021 static const KoID angle("angle", ki18n("Angle"));
0022 static const KoID spacing("spacing", ki18n("Spacing"));
0023 
0024 
0025 /**
0026      * Overload of createProperty(const QString &id, ...)
0027      */
0028 KisUniformPaintOpPropertySP createProperty(const KoID &id,
0029                                            KisPaintOpSettingsRestrictedSP settings,
0030                                            KisPaintOpPresetUpdateProxy *updateProxy);
0031 
0032 /**
0033      * Factory for creating standard uniform properties. Right now
0034      * it supports only size, opacity and flow.
0035      */
0036 KisUniformPaintOpPropertySP createProperty(const QString &id,
0037                                            KisPaintOpSettingsRestrictedSP settings,
0038                                            KisPaintOpPresetUpdateProxy *updateProxy);
0039 }
0040 
0041 #endif /* __KIS_STANDARD_UNIFORM_PROPERTIES_FACTORY_H */