24#include <klocalizedstring.h>
25#include <ksharedconfig.h>
150 QTransform transform;
155 transform.scale(scale, scale);
163 const qreal sizeInPx =
176 if (mask->selection()->hasShapeSelection()) {
198 canvas()->resourceManager());
200 case FillStyleForegroundColor:
203 case FillStyleBackgroundColor:
206 case FillStylePattern:
225 stroke->setColor(color);
240 parentCommand->
setText(cmd->text());
258 QPainterPath mappedOutline = matrix.map(pathShape->
outline());
264 canvas()->resourceManager(),
269 }
else if (node->inherits(
"KisShapeLayer")) {
float value(const T *src, size_t ch)
QSharedPointer< KoShapeStrokeModel > KoShapeStrokeModelSP
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void setText(const KUndo2MagicString &text)
@ IncreasingDirection_Clockwise
@ FlipOptionsMode_MenuButton
The flip options are shown as a menu accessible via a options button.
KisSelectedShapesProxy selectedShapesProxy
KoUnit unit() const override
static void runSingleCommandStroke(KisImageSP image, KUndo2Command *cmd, KisStrokeJobData::Sequentiality sequentiality=KisStrokeJobData::SEQUENTIAL, KisStrokeJobData::Exclusivity exclusivity=KisStrokeJobData::NORMAL)
runSingleCommandStroke creates a stroke and runs cmd in it. The text() field of cmd is used as a titl...
The KisResourcesSnapshot class takes a snapshot of the various resources like colors and settings use...
KoColor currentBgColor() const
KoColor currentFgColor() const
KoSelection * selection() override
QPointer< KoShapeController > shapeController
QPointer< KoCanvasResourceProvider > resourceManager
A simple solid color shape background.
void toQColor(QColor *c) const
a convenience method for the above.
The position of a path point within a path shape.
virtual QPointF normalize()
Normalizes the path data.
QPainterPath outline() const override
reimplemented
virtual void setStroke(KoShapeStrokeModelSP stroke)
virtual void setBackground(QSharedPointer< KoShapeBackground > background)
void setUserData(KoShapeUserData *userData)
QPointF position() const
Get the position of the shape in pt.
qreal fromUserValue(qreal value) const
bool hasEditablePaintDevice() const