|
Krita Source Code Documentation
|
#include <MyPaintPaintOpSettings.h>
Inheritance diagram for KisMyPaintOpSettings:Classes | |
| struct | Private |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Definition at line 19 of file MyPaintPaintOpSettings.h.
| KisMyPaintOpSettings::KisMyPaintOpSettings | ( | KisResourcesInterfaceSP | resourcesInterface | ) |
Definition at line 64 of file MyPaintPaintOpSettings.cpp.
|
override |
Definition at line 72 of file MyPaintPaintOpSettings.cpp.
|
overridevirtual |
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 from KisPaintOpSettings.
Definition at line 148 of file MyPaintPaintOpSettings.cpp.
References KisCurrentOutlineFetcher::fetchOutline(), KisPaintOpSettings::OutlineMode::isVisible, m_d, KisPaintOpSettings::makeTiltIndicator(), KisOutlineGenerationPolicy< KisPaintOpSettings >::outlineFetcher(), and KisPaintOpSettings::OutlineMode::showTiltDecoration.
|
inlineoverridevirtual |
Reimplemented from KisPaintOpSettings.
Definition at line 36 of file MyPaintPaintOpSettings.h.
|
overridevirtual |
The callback is called every time when a property changes
Reimplemented from KisPaintOpSettings.
Definition at line 142 of file MyPaintPaintOpSettings.cpp.
References m_d, and KisOutlineGenerationPolicy< ParentClass >::onPropertyChanged().
|
overridevirtual |
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 from KisPaintOpSettings.
Definition at line 130 of file MyPaintPaintOpSettings.cpp.
|
overridevirtual |
Implements KisPaintOpSettings.
Definition at line 110 of file MyPaintPaintOpSettings.cpp.
References m_d.
|
overridevirtual |
Reimplemented from KisPaintOpSettings.
Definition at line 123 of file MyPaintPaintOpSettings.cpp.
References KisCurveOptionDataCommon::read(), and KisCurveOptionDataCommon::strengthValue.
|
overridevirtual |
Implements KisPaintOpSettings.
Definition at line 84 of file MyPaintPaintOpSettings.cpp.
References m_d.
|
overridevirtual |
Removes all the settings from the object while keeping the paintop id, which is loaded to the object by the factory
Reimplemented from KisPaintOpSettings.
Definition at line 135 of file MyPaintPaintOpSettings.cpp.
References MYPAINT_JSON.
|
overridevirtual |
Set paintop angle (in degrees) directly in the properties. Increasing the angle corresponds to a counter-clockwise rotation.
All brushes are rotated in Krita counterclockwise, so we should invert the value for MyPaint
Implements KisPaintOpSettings.
Definition at line 89 of file MyPaintPaintOpSettings.cpp.
References normalizeAngleDegrees(), KisCurveOptionDataCommon::read(), KisCurveOptionDataCommon::strengthValue, value(), and KisCurveOptionDataCommon::write().
|
overridevirtual |
Set paintop opacity directly in the properties
Reimplemented from KisPaintOpSettings.
Definition at line 115 of file MyPaintPaintOpSettings.cpp.
References KisCurveOptionDataCommon::read(), KisCurveOptionDataCommon::strengthValue, value(), and KisCurveOptionDataCommon::write().
|
overridevirtual |
Set paintop size directly in the properties
Implements KisPaintOpSettings.
Definition at line 76 of file MyPaintPaintOpSettings.cpp.
References KisCurveOptionDataCommon::read(), KisCurveOptionDataCommon::strengthValue, value(), and KisCurveOptionDataCommon::write().
|
private |
Definition at line 49 of file MyPaintPaintOpSettings.h.