|
Krita Source Code Documentation
|
#include <kis_paintop_settings.h>
Inheritance diagram for KisPaintOpSettings:Classes | |
| struct | OutlineMode |
| struct | UpdateListener |
Public Types | |
| using | UpdateListenerSP = QSharedPointer<UpdateListener> |
| using | UpdateListenerWSP = QWeakPointer<UpdateListener> |
Public Member Functions | |
| virtual void | activate () |
| virtual qreal | airbrushInterval () const |
| virtual KisOptimizedBrushOutline | brushOutline (const KisPaintInformation &info, const OutlineMode &mode, qreal alignForZoom) |
| KoCanvasResourcesInterfaceSP | canvasResourcesInterface () const |
| virtual KisPaintOpSettingsSP | clone () const |
| KisPaintOpSettingsSP | createMaskingSettings () const |
| QString | effectivePaintOpCompositeOp () |
| bool | eraserMode () |
| bool | hasMaskingSettings () const |
| virtual bool | hasPatternSettings () const |
| virtual QString | indirectPaintingCompositeOp () const |
| virtual bool | isAirbrushing () const |
| virtual bool | isValid () const |
| KisPaintOpSettings (const KisPaintOpSettings &rhs) | |
| KisPaintOpSettings (KisResourcesInterfaceSP resourcesInterface) | |
| qreal | lodSizeThreshold () const |
| virtual bool | lodSizeThresholdSupported () const |
| QString | maskingBrushCompositeOp () const |
| virtual QString | modelName () const |
| virtual bool | mousePressEvent (const KisPaintInformation &paintInformation, Qt::KeyboardModifiers modifiers, KisNodeWSP currentNode) |
| virtual bool | mouseReleaseEvent () |
| virtual bool | needsAsynchronousUpdates () const |
| KisNodeSP | node () const |
| virtual bool | paintIncremental () |
| virtual qreal | paintOpAngle () const =0 |
| QString | paintOpCompositeOp () |
| qreal | paintOpFade () |
| qreal | paintOpFlow () |
| virtual qreal | paintOpOpacity () |
| virtual qreal | paintOpPatternSize () |
| qreal | paintOpScatter () |
| virtual qreal | paintOpSize () const =0 |
| Private () | |
| Private (const Private &rhs) | |
| virtual void | regenerateResourceCache (KoResourceCacheInterfaceSP cacheInterface) |
| virtual QList< int > | requiredCanvasResources () const |
| virtual void | resetSettings (const QStringList &preserveProperties=QStringList()) |
| KoResourceCacheInterfaceSP | resourceCacheInterface () const |
| KisResourcesInterfaceSP | resourcesInterface () const |
| quint64 | sanityVersionCookie () const |
| qreal | savedBrushOpacity () const |
| qreal | savedBrushSize () const |
| qreal | savedEraserOpacity () const |
| qreal | savedEraserSize () const |
| void | setCanvasResourcesInterface (KoCanvasResourcesInterfaceSP canvasResourcesInterface) |
| void | setEraserMode (bool value) |
| void | setLodSizeThreshold (qreal value) |
| void | setModelName (const QString &modelName) |
| virtual void | setPaintOpAngle (qreal value)=0 |
| void | setPaintOpCompositeOp (const QString &value) |
| void | setPaintOpFade (qreal value) |
| void | setPaintOpFlow (qreal value) |
| virtual void | setPaintOpOpacity (qreal value) |
| void | setPaintOpScatter (qreal value) |
| virtual void | setPaintOpSize (qreal value)=0 |
| void | setProperty (const QString &name, const QVariant &value) override |
| virtual void | setResourceCacheInterface (KoResourceCacheInterfaceSP cacheInterface) |
| void | setResourcesInterface (KisResourcesInterfaceSP resourcesInterface) |
| void | setSavedBrushOpacity (qreal value) |
| void | setSavedBrushSize (qreal value) |
| void | setSavedEraserOpacity (qreal value) |
| void | setSavedEraserSize (qreal value) |
| void | setUpdateListener (UpdateListenerWSP listener) |
| virtual QList< KisUniformPaintOpPropertySP > | uniformProperties (KisPaintOpSettingsSP settings, QPointer< KisPaintOpPresetUpdateProxy > updateProxy) |
| UpdateListenerWSP | updateListener () const |
| virtual bool | useSpacingUpdates () const |
| ~KisPaintOpSettings () override | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Member Functions inherited from KisPropertiesConfiguration | |
| void | clearProperties () |
| Clear the map of properties. | |
| virtual bool | compareTo (const KisPropertiesConfiguration *rhs) const |
| virtual void | dump () const |
| void | fromXML (const QDomElement &) override |
| bool | fromXML (const QString &xml, bool clear=true) override |
| bool | getBool (const QString &name, bool def=false) const |
| KoColor | getColor (const QString &name, const KoColor &color=KoColor()) const |
| getColor fetch the given property as a KoColor. | |
| KisCubicCurve | getCubicCurve (const QString &name, const KisCubicCurve &curve=KisCubicCurve()) const |
| double | getDouble (const QString &name, double def=0.0) const |
| float | getFloat (const QString &name, float def=0.0) const |
| int | getInt (const QString &name, int def=0) const |
| void | getPrefixedProperties (const QString &prefix, KisPropertiesConfiguration *config) const |
| void | getPrefixedProperties (const QString &prefix, KisPropertiesConfigurationSP config) const |
| virtual QMap< QString, QVariant > | getProperties () const |
| virtual QList< QString > | getPropertiesKeys () const |
| virtual QVariant | getProperty (const QString &name) const |
| virtual bool | getProperty (const QString &name, QVariant &value) const |
| QString | getPropertyLazy (const QString &name, const char *defaultValue) const |
| QStringList | getPropertyLazy (const QString &name, const QStringList &defaultValue) const |
| template<typename T > | |
| T | getPropertyLazy (const QString &name, const T &defaultValue) const |
| QString | getString (const QString &name, const QString &def=QString()) const |
| QStringList | getStringList (const QString &name, const QStringList &defaultValue=QStringList()) const |
| virtual bool | hasProperty (const QString &name) const |
| KisPropertiesConfiguration () | |
| KisPropertiesConfiguration (const KisPropertiesConfiguration &rhs) | |
| KisPropertiesConfiguration & | operator= (const KisPropertiesConfiguration &rhs) |
| void | removeProperty (const QString &name) |
| void | setPrefixedProperties (const QString &prefix, const KisPropertiesConfiguration *config) |
| void | setPrefixedProperties (const QString &prefix, const KisPropertiesConfigurationSP config) |
| void | setProperty (const QString &name, const QStringList &value) |
| void | setPropertyNotSaved (const QString &name) |
| Marks a property that should not be saved by toXML. | |
| QString | toXML () const override |
| void | toXML (QDomDocument &, QDomElement &) const override |
| ~KisPropertiesConfiguration () override | |
Public Member Functions inherited from KisSerializableConfiguration | |
| KisSerializableConfiguration () | |
| KisSerializableConfiguration (const KisSerializableConfiguration &rhs) | |
| virtual | ~KisSerializableConfiguration () |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Static Public Member Functions | |
| static KisOptimizedBrushOutline | ellipseOutline (qreal width, qreal height, qreal scale, qreal rotation) |
| static bool | isLodUserAllowed (const KisPropertiesConfigurationSP config) |
| static QPainterPath | makeTiltIndicator (KisPaintInformation const &info, QPointF const &start, qreal lengthScale, qreal angle) |
| static void | setLodUserAllowed (KisPropertiesConfigurationSP config, bool value) |
Static Public Member Functions inherited from KisPropertiesConfiguration | |
| static QString | escapeString (const QString &string) |
| static QString | extractedPrefixKey () |
| static QString | unescapeString (const QString &string) |
Public Attributes | |
| KoCanvasResourcesInterfaceSP | canvasResourcesInterface |
| QString | modelName |
| KoResourceCacheInterfaceSP | resourceCacheInterface |
| KisResourcesInterfaceSP | resourcesInterface |
| QPointer< KisPaintOpConfigWidget > | settingsWidget |
| QList< KisUniformPaintOpPropertyWSP > | uniformProperties |
| UpdateListenerWSP | updateListener |
| quint64 | versionCookie |
| KisRandomSource | versionRandomSource |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Public Attributes inherited from KisPropertiesConfiguration | |
| QSet< QString > | notSavedProperties |
| QMap< QString, QVariant > | properties |
Protected Member Functions | |
| virtual void | onPropertyChanged () |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Private Attributes | |
| const QScopedPointer< Private > | d |
This class is used to cache the settings for a paintop between two creations. There is one KisPaintOpSettings per input device (mouse, tablet, etc...).
The settings may be stored in a preset. Note that if your paintop's settings subclass has data that is not stored as a property, that data is not saved and restored.
The object also contains a pointer to its parent KisPaintOpPreset object.This is to control the DirtyPreset property of KisPaintOpPreset. Whenever the settings are changed/modified from the original – the preset is set to dirty.
Definition at line 54 of file kis_paintop_settings.cpp.
Definition at line 78 of file kis_paintop_settings.h.
Definition at line 79 of file kis_paintop_settings.h.
| KisPaintOpSettings::KisPaintOpSettings | ( | KisResourcesInterfaceSP | resourcesInterface | ) |
Definition at line 98 of file kis_paintop_settings.cpp.
References d, and resourcesInterface.
|
override |
Definition at line 104 of file kis_paintop_settings.cpp.
| KisPaintOpSettings::KisPaintOpSettings | ( | const KisPaintOpSettings & | rhs | ) |
Definition at line 108 of file kis_paintop_settings.cpp.
|
virtual |
Call this function when the paint op is selected or the tool is activated
Reimplemented in KisDuplicateOpSettings.
Definition at line 293 of file kis_paintop_settings.cpp.
|
virtual |
Indicates the minimum time interval that might be needed between airbrush dabs, in milliseconds. A lower value means painting updates need to happen more frequently. This value should be ignored if isAirbrushing() is false.
The default implementation uses the property AIRBRUSH_RATE, defaulting to an interval of one second if the property is not found. This should be suitable for most paintops.
Reimplemented in KisRoundMarkerOpSettings.
Definition at line 503 of file kis_paintop_settings.cpp.
References AIRBRUSH_RATE, KisPropertiesConfiguration::getDouble(), and LONG_TIME.
|
virtual |
Returns the brush outline in pixel coordinates. Tool is responsible for conversion into view coordinates. Outline mode has to be passed to the paintop which builds the outline as some paintops have to paint outline always like clone paintop indicating the duplicate position
Reimplemented in KisBrushBasedPaintOpSettings, KisDuplicateOpSettings, KisDuplicateOpSettings, KisDeformPaintOpSettings, KisExperimentPaintOpSettings, KisGridPaintOpSettings, KisHairyPaintOpSettings, KisHairyPaintOpSettings, KisBrushBasedPaintOpSettings, KisMyPaintOpSettings, KisRoundMarkerOpSettings, KisSketchPaintOpSettings, and KisSprayPaintOpSettings.
Definition at line 524 of file kis_paintop_settings.cpp.
References KisAlgebra2D::alignForZoom(), ellipseOutline(), KisPaintOpSettings::OutlineMode::isVisible, makeTiltIndicator(), KisPaintInformation::pos(), and KisPaintOpSettings::OutlineMode::showTiltDecoration.
| KoCanvasResourcesInterfaceSP KisPaintOpSettings::canvasResourcesInterface | ( | ) | const |
|
virtual |
Clone the current settings object. Override this if your settings instance doesn't store everything as properties.
Reimplemented in KisDuplicateOpSettings, and KisBrushBasedPaintOpSettings.
Definition at line 252 of file kis_paintop_settings.cpp.
References canvasResourcesInterface, KisPaintOpRegistry::createSettings(), KisSharedPtr< T >::d, d, KisPropertiesConfiguration::getProperties(), KisPropertiesConfiguration::getString(), KisPaintOpRegistry::instance(), and resourcesInterface.
| KisPaintOpSettingsSP KisPaintOpSettings::createMaskingSettings | ( | ) | const |
WARNING: cropping is a workaround for too big brushes due to the proportional scaling using shift+drag gesture.
See this bug: https://bugs.kde.org/show_bug.cgi?id=423572
TODO:
1) Implement a warning notifying the user that his masking brush has been cropped
2) Make sure that the sliders in KisMaskingBrushOption have correct limits (right now they are limited by usual maximumBrushSize)
Definition at line 141 of file kis_paintop_settings.cpp.
References canvasResourcesInterface, KisPaintOpRegistry::createSettings(), d, KisPropertiesConfiguration::getBool(), KisPropertiesConfiguration::getDouble(), KisPropertiesConfiguration::getPrefixedProperties(), hasMaskingSettings(), KisPaintOpRegistry::instance(), KisPaintOpUtils::MaskingBrushMasterSizeCoeffTag, KisPaintOpUtils::MaskingBrushPaintOpId, KisPaintOpUtils::MaskingBrushPresetPrefix, KisPaintOpUtils::MaskingBrushUseMasterSizeTag, KisImageConfig::maxMaskingBrushSize(), paintOpSize(), resourcesInterface, and toQShared().
| QString KisPaintOpSettings::effectivePaintOpCompositeOp | ( | ) |
Definition at line 429 of file kis_paintop_settings.cpp.
References COMPOSITE_ERASE, eraserMode(), and paintOpCompositeOp().
|
static |
Helpers for drawing the brush outline
Definition at line 540 of file kis_paintop_settings.cpp.
| bool KisPaintOpSettings::eraserMode | ( | ) |
Definition at line 421 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance().
| bool KisPaintOpSettings::hasMaskingSettings | ( | ) | const |
Definition at line 136 of file kis_paintop_settings.cpp.
References KisPropertiesConfiguration::getBool(), and KisPaintOpUtils::MaskingBrushEnabledTag.
|
virtual |
Reimplemented in KisFilterOpSettings, KisHairyPaintOpSettings, KisBrushBasedPaintOpSettings, and KisSketchPaintOpSettings.
Definition at line 184 of file kis_paintop_settings.cpp.
|
virtual |
Reimplemented in KisDuplicateOpSettings.
Definition at line 493 of file kis_paintop_settings.cpp.
References COMPOSITE_ALPHA_DARKEN.
|
virtual |
Whether this paintop wants to deposit paint even when not moving, i.e. the tool needs to activate its timer. If this is true, painting updates need to be generated at regular intervals even in the absence of input device events, e.g. when the cursor is not moving.
The default implementation checks the property AIRBRUSH_ENABLED, defaulting to false if the property is not found. This should be suitable for most paintops.
Reimplemented in KisDeformPaintOpSettings, and KisRoundMarkerOpSettings.
Definition at line 498 of file kis_paintop_settings.cpp.
References AIRBRUSH_ENABLED, and KisPropertiesConfiguration::getBool().
|
static |
Definition at line 604 of file kis_paintop_settings.cpp.
|
virtual |
Check if the settings are valid, setting might be invalid through missing brushes etc Overwrite if the settings of a paintop can be invalid
Definition at line 488 of file kis_paintop_settings.cpp.
| qreal KisPaintOpSettings::lodSizeThreshold | ( | ) | const |
Definition at line 619 of file kis_paintop_settings.cpp.
References KisPropertiesConfiguration::getDouble().
|
virtual |
Definition at line 614 of file kis_paintop_settings.cpp.
|
static |
Helper for drawing a triangle representing the tilt of the stylus.
| start | is the offset from the brush's outline's bounding box |
| lengthScale | is used for deciding the size of the triangle. Brush diameter or width are common choices for this. |
| angle | is the angle between the two sides of the triangle. |
Definition at line 554 of file kis_paintop_settings.cpp.
References length(), KisPaintInformation::tiltDirection(), and KisPaintInformation::tiltElevation().
| QString KisPaintOpSettings::maskingBrushCompositeOp | ( | ) | const |
Please take into account that the brush itself always paints in alpha- darken mode, but the final result is combined with this composite op.
Definition at line 237 of file kis_paintop_settings.cpp.
References COMPOSITE_MULT, KisPropertiesConfiguration::getString(), and KisPaintOpUtils::MaskingBrushCompositeOpTag.
|
virtual |
Reimplemented in KisMyPaintOpSettings, and KisSprayPaintOpSettings.
|
virtual |
This function is called by a tool when the mouse is pressed. It's useful if the paintop needs mouse interaction for instance in the case of the clone op. If the tool is supposed to ignore the event, the paint op should return true and if the tool is supposed to use the event, return false. See kis_tool_freehand:tryPickByPaintOp()
Reimplemented in KisDuplicateOpSettings, and KisGridPaintOpSettings.
Definition at line 124 of file kis_paintop_settings.cpp.
|
virtual |
This function is called by a tool when the mouse is released. It's useful if the paintop needs mouse interaction for instance in the case of the clone op. If the tool is supposed to ignore the event, the paint op should return true and if the tool is supposed to use the event, return false.
Reimplemented in KisDuplicateOpSettings, and KisGridPaintOpSettings.
Definition at line 131 of file kis_paintop_settings.cpp.
|
virtual |
Indicates if the tool should call paintOp->doAsynchronousUpdate() in between paintAt() calls to do the asynchronous rendering
Reimplemented in KisBrushOpSettings.
Definition at line 519 of file kis_paintop_settings.cpp.
| KisNodeSP KisPaintOpSettings::node | ( | ) | const |
|
protectedvirtual |
The callback is called every time when a property changes
Reimplemented in KisBrushBasedPaintOpSettings, KisOutlineGenerationPolicy< KisPaintOpSettings >, and KisMyPaintOpSettings.
Definition at line 588 of file kis_paintop_settings.cpp.
References d, and updateListener.
|
inlinevirtual |
XXX: Remove this after 2.0, when the paint operation (incremental/non incremental) will be completely handled in the paintop, not in the tool. This is a filthy hack to move the option to the right place, at least.
Reimplemented in KisCurvePaintOpSettings, KisDuplicateOpSettings, KisDeformPaintOpSettings, KisExperimentPaintOpSettings, KisFilterOpSettings, KisGridPaintOpSettings, KisBrushBasedPaintOpSettings, KisMyPaintOpSettings, KisParticlePaintOpSettings, KisRoundMarkerOpSettings, KisSketchPaintOpSettings, and KisSprayPaintOpSettings.
Definition at line 131 of file kis_paintop_settings.h.
|
pure virtual |
Implemented in KisNoSizePaintOpSettings, KisCurvePaintOpSettings, KisDeformPaintOpSettings, KisGridPaintOpSettings, KisBrushBasedPaintOpSettings, KisMyPaintOpSettings, KisRoundMarkerOpSettings, and KisSprayPaintOpSettings.
| QString KisPaintOpSettings::paintOpCompositeOp | ( | ) |
Definition at line 405 of file kis_paintop_settings.cpp.
References COMPOSITE_OVER, and KisLockedPropertiesServer::instance().
| qreal KisPaintOpSettings::paintOpFade | ( | ) |
Definition at line 367 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance().
| qreal KisPaintOpSettings::paintOpFlow | ( | ) |
Definition at line 359 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance().
|
virtual |
Reimplemented in KisMyPaintOpSettings.
Definition at line 352 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::createLockedPropertiesProxy(), and KisLockedPropertiesServer::instance().
|
virtual |
Definition at line 397 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance().
| qreal KisPaintOpSettings::paintOpScatter | ( | ) |
Definition at line 388 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance().
|
pure virtual |
Implemented in KisNoSizePaintOpSettings, KisCurvePaintOpSettings, KisDeformPaintOpSettings, KisGridPaintOpSettings, KisBrushBasedPaintOpSettings, KisMyPaintOpSettings, KisRoundMarkerOpSettings, and KisSprayPaintOpSettings.
|
inline |
Definition at line 55 of file kis_paintop_settings.cpp.
|
inline |
NOTE: we don't copy updateListener intentionally, it is a job of the cloned preset to set the new listener properly
Definition at line 63 of file kis_paintop_settings.cpp.
|
virtual |
Reimplemented in KisBrushBasedPaintOpSettings.
Definition at line 214 of file kis_paintop_settings.cpp.
References createMaskingSettings(), hasMaskingSettings(), KisPaintOpUtils::MaskingBrushPresetPrefix, and toQShared().
|
virtual |
Reimplemented in KisBrushBasedPaintOpSettings.
Definition at line 189 of file kis_paintop_settings.cpp.
|
virtual |
Removes all the settings from the object while keeping the paintop id, which is loaded to the object by the factory
Reimplemented in KisMyPaintOpSettings.
Definition at line 274 of file kis_paintop_settings.cpp.
References KisPropertiesConfiguration::clearProperties(), KisPropertiesConfiguration::getProperty(), KisPropertiesConfiguration::hasProperty(), and setProperty().
| KoResourceCacheInterfaceSP KisPaintOpSettings::resourceCacheInterface | ( | ) | const |
| KisResourcesInterfaceSP KisPaintOpSettings::resourcesInterface | ( | ) | const |
| quint64 KisPaintOpSettings::sanityVersionCookie | ( | ) | const |
Definition at line 228 of file kis_paintop_settings.cpp.
References d.
| qreal KisPaintOpSettings::savedBrushOpacity | ( | ) | const |
Definition at line 467 of file kis_paintop_settings.cpp.
References KisPropertiesConfiguration::getDouble().
| qreal KisPaintOpSettings::savedBrushSize | ( | ) | const |
Definition at line 445 of file kis_paintop_settings.cpp.
References KisPropertiesConfiguration::getDouble().
| qreal KisPaintOpSettings::savedEraserOpacity | ( | ) | const |
Definition at line 456 of file kis_paintop_settings.cpp.
References KisPropertiesConfiguration::getDouble().
| qreal KisPaintOpSettings::savedEraserSize | ( | ) | const |
Definition at line 434 of file kis_paintop_settings.cpp.
References KisPropertiesConfiguration::getDouble().
| void KisPaintOpSettings::setCanvasResourcesInterface | ( | KoCanvasResourcesInterfaceSP | canvasResourcesInterface | ) |
Definition at line 199 of file kis_paintop_settings.cpp.
References canvasResourcesInterface, and d.
| void KisPaintOpSettings::setEraserMode | ( | bool | value | ) |
Definition at line 413 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance(), and value().
| void KisPaintOpSettings::setLodSizeThreshold | ( | qreal | value | ) |
Definition at line 624 of file kis_paintop_settings.cpp.
References setProperty(), and value().
|
static |
Definition at line 609 of file kis_paintop_settings.cpp.
References value().
| void KisPaintOpSettings::setModelName | ( | const QString & | modelName | ) |
|
pure virtual |
Set paintop angle (in degrees) directly in the properties. Increasing the angle corresponds to a counter-clockwise rotation.
Implemented in KisNoSizePaintOpSettings, KisCurvePaintOpSettings, KisDeformPaintOpSettings, KisGridPaintOpSettings, KisBrushBasedPaintOpSettings, KisMyPaintOpSettings, KisRoundMarkerOpSettings, and KisSprayPaintOpSettings.
| void KisPaintOpSettings::setPaintOpCompositeOp | ( | const QString & | value | ) |
Set paintop composite mode directly in the properties
Definition at line 344 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance(), and value().
| void KisPaintOpSettings::setPaintOpFade | ( | qreal | value | ) |
Set paintop fade directly in the properties
Definition at line 313 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance(), KisDomUtils::toString(), and value().
| void KisPaintOpSettings::setPaintOpFlow | ( | qreal | value | ) |
Set paintop flow directly in the properties
Definition at line 305 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance(), and value().
|
virtual |
Set paintop opacity directly in the properties
Reimplemented in KisMyPaintOpSettings.
Definition at line 297 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance(), and value().
| void KisPaintOpSettings::setPaintOpScatter | ( | qreal | value | ) |
Set paintop scatter directly in the properties
Definition at line 333 of file kis_paintop_settings.cpp.
References KisLockedPropertiesServer::instance(), qFuzzyIsNull(), and value().
|
pure virtual |
Set paintop size directly in the properties
Implemented in KisNoSizePaintOpSettings, KisCurvePaintOpSettings, KisDeformPaintOpSettings, KisGridPaintOpSettings, KisBrushBasedPaintOpSettings, KisMyPaintOpSettings, KisRoundMarkerOpSettings, and KisSprayPaintOpSettings.
|
overridevirtual |
Overrides the method in KisPropertiesConfiguration to allow onPropertyChanged() callback
Reimplemented from KisPropertiesConfiguration.
Definition at line 573 of file kis_paintop_settings.cpp.
References d, KisPropertiesConfiguration::getProperty(), onPropertyChanged(), KisPropertiesConfiguration::setProperty(), updateListener, and value().
|
virtual |
Reimplemented in KisBrushBasedPaintOpSettings.
Definition at line 204 of file kis_paintop_settings.cpp.
References d.
| void KisPaintOpSettings::setResourcesInterface | ( | KisResourcesInterfaceSP | resourcesInterface | ) |
Set resource interface that will be used for loading linked resources
Definition at line 247 of file kis_paintop_settings.cpp.
References d, and resourcesInterface.
| void KisPaintOpSettings::setSavedBrushOpacity | ( | qreal | value | ) |
Definition at line 472 of file kis_paintop_settings.cpp.
References setProperty(), KisPropertiesConfiguration::setPropertyNotSaved(), and value().
| void KisPaintOpSettings::setSavedBrushSize | ( | qreal | value | ) |
Definition at line 450 of file kis_paintop_settings.cpp.
References setProperty(), KisPropertiesConfiguration::setPropertyNotSaved(), and value().
| void KisPaintOpSettings::setSavedEraserOpacity | ( | qreal | value | ) |
Definition at line 461 of file kis_paintop_settings.cpp.
References setProperty(), KisPropertiesConfiguration::setPropertyNotSaved(), and value().
| void KisPaintOpSettings::setSavedEraserSize | ( | qreal | value | ) |
Definition at line 439 of file kis_paintop_settings.cpp.
References setProperty(), KisPropertiesConfiguration::setPropertyNotSaved(), and value().
| void KisPaintOpSettings::setUpdateListener | ( | UpdateListenerWSP | listener | ) |
Definition at line 114 of file kis_paintop_settings.cpp.
References d.
|
virtual |
Reimplemented in KisColorSmudgeOpSettings, KisCurvePaintOpSettings, KisBrushOpSettings, KisDuplicateOpSettings, KisDeformPaintOpSettings, KisExperimentPaintOpSettings, KisGridPaintOpSettings, KisHatchingPaintOpSettings, KisBrushBasedPaintOpSettings, KisParticlePaintOpSettings, KisRoundMarkerOpSettings, and KisSprayPaintOpSettings.
| UpdateListenerWSP KisPaintOpSettings::updateListener | ( | ) | const |
|
virtual |
Indicates whether this configuration allows spacing information to be updated between painted dabs during a stroke.
Definition at line 514 of file kis_paintop_settings.cpp.
References KisPropertiesConfiguration::getBool(), and SPACING_USE_UPDATES.
| KoCanvasResourcesInterfaceSP KisPaintOpSettings::canvasResourcesInterface |
Definition at line 84 of file kis_paintop_settings.cpp.
|
private |
Definition at line 390 of file kis_paintop_settings.h.
| QString KisPaintOpSettings::modelName |
Definition at line 80 of file kis_paintop_settings.cpp.
| KoResourceCacheInterfaceSP KisPaintOpSettings::resourceCacheInterface |
Definition at line 85 of file kis_paintop_settings.cpp.
| KisResourcesInterfaceSP KisPaintOpSettings::resourcesInterface |
Definition at line 83 of file kis_paintop_settings.cpp.
| QPointer<KisPaintOpConfigWidget> KisPaintOpSettings::settingsWidget |
Definition at line 79 of file kis_paintop_settings.cpp.
| QList< KisUniformPaintOpPropertySP > KisPaintOpSettings::uniformProperties |
Definition at line 82 of file kis_paintop_settings.cpp.
| KisPaintOpSettings::UpdateListenerWSP KisPaintOpSettings::updateListener |
Definition at line 81 of file kis_paintop_settings.cpp.
| quint64 KisPaintOpSettings::versionCookie |
Definition at line 89 of file kis_paintop_settings.cpp.
| KisRandomSource KisPaintOpSettings::versionRandomSource |
Definition at line 88 of file kis_paintop_settings.cpp.