|
Krita Source Code Documentation
|
#include <kis_grid_paintop_settings.h>
Inheritance diagram for KisGridPaintOpSettings:Classes | |
| struct | Private |
Public Attributes | |
| bool | m_modifyOffsetWithShortcut |
Public Attributes inherited from KisPaintOpSettings | |
| KoCanvasResourcesInterfaceSP | canvasResourcesInterface |
| bool | disableDirtyNotifications |
| 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 |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Additional Inherited Members | |
Public Types inherited from KisPaintOpSettings | |
| using | UpdateListenerSP = QSharedPointer<UpdateListener> |
| using | UpdateListenerWSP = QWeakPointer<UpdateListener> |
Static Public Member Functions inherited from KisPaintOpSettings | |
| 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) |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Definition at line 20 of file kis_grid_paintop_settings.h.
| KisGridPaintOpSettings::KisGridPaintOpSettings | ( | KisResourcesInterfaceSP | resourcesInterface | ) |
Definition at line 23 of file kis_grid_paintop_settings.cpp.
|
override |
Definition at line 56 of file kis_grid_paintop_settings.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 103 of file kis_grid_paintop_settings.cpp.
References KisOptimizedBrushOutline::addPath(), KisGridOpOptionData::diameter, KisCurrentOutlineFetcher::fetchOutline(), KisGridOpOptionData::grid_division_level, KisGridOpOptionData::grid_height, KisGridOpOptionData::grid_pressure_division, KisGridOpOptionData::grid_scale, KisGridOpOptionData::grid_width, KisGridOpOptionData::horizontal_offset, KisPaintOpSettings::OutlineMode::isVisible, m_modifyOffsetWithShortcut, KisPaintOpSettings::makeTiltIndicator(), KisOutlineGenerationPolicy< KisPaintOpSettings >::outlineFetcher(), KisPaintInformation::pos(), KisPaintInformation::pressure(), KisGridOpOptionData::read(), KisGridShapeOptionData::read(), KisGridShapeOptionData::shape, KisPaintOpSettings::OutlineMode::showTiltDecoration, and KisGridOpOptionData::vertical_offset.
|
overridevirtual |
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 from KisPaintOpSettings.
Definition at line 67 of file kis_grid_paintop_settings.cpp.
References KisGridOpOptionData::grid_height, KisGridOpOptionData::grid_width, KisGridOpOptionData::horizontal_offset, m_modifyOffsetWithShortcut, KisPaintInformation::pos(), KisGridOpOptionData::read(), KisGridOpOptionData::vertical_offset, and KisGridOpOptionData::write().
|
overridevirtual |
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 from KisPaintOpSettings.
Definition at line 97 of file kis_grid_paintop_settings.cpp.
References m_modifyOffsetWithShortcut.
|
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 60 of file kis_grid_paintop_settings.cpp.
References BUILDUP, KisPaintingModeOptionData::paintingMode, and KisPaintingModeOptionData::read().
|
overridevirtual |
Implements KisPaintOpSettings.
Definition at line 51 of file kis_grid_paintop_settings.cpp.
|
overridevirtual |
Implements KisPaintOpSettings.
Definition at line 39 of file kis_grid_paintop_settings.cpp.
References KisGridOpOptionData::diameter, and KisGridOpOptionData::read().
|
overridevirtual |
Set paintop angle (in degrees) directly in the properties. Increasing the angle corresponds to a counter-clockwise rotation.
Implements KisPaintOpSettings.
Definition at line 46 of file kis_grid_paintop_settings.cpp.
References value().
|
overridevirtual |
Set paintop size directly in the properties
Implements KisPaintOpSettings.
Definition at line 31 of file kis_grid_paintop_settings.cpp.
References KisGridOpOptionData::diameter, KisGridOpOptionData::read(), value(), and KisGridOpOptionData::write().
|
overridevirtual |
Reimplemented from KisPaintOpSettings.
Definition at line 203 of file kis_grid_paintop_settings.cpp.
References KisGridOpOptionData::grid_division_level, listWeakToStrong(), m_d, KisGridOpOptionData::read(), KisCallbackBasedPaintopProperty< ParentClass >::setReadCallback(), KisCallbackBasedPaintopProperty< ParentClass >::setWriteCallback(), toQShared(), KisPaintOpSettings::uniformProperties, and KisGridOpOptionData::write().
|
private |
Definition at line 43 of file kis_grid_paintop_settings.h.
| bool KisGridPaintOpSettings::m_modifyOffsetWithShortcut |
Definition at line 46 of file kis_grid_paintop_settings.h.