11#include <klocalizedstring.h>
51 for (
int i = 0; i <
d->
shapes.size(); ++i) {
62 for (
int i = 0; i <
d->
shapes.size(); ++i) {
84 int subpathCount =
source->subpathCount();
85 for (
int subpathIndex = 0; subpathIndex < subpathCount; ++subpathIndex) {
86 int pointCount =
source->subpathPointCount(subpathIndex);
91 for (
int pointIndex = 0; pointIndex < pointCount; ++pointIndex) {
96 destination->
addSubpath(subpath, subpathIndex);
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
QList< KoPathPoint * > KoSubpath
a KoSubpath contains a path from a moveTo until a close or a new moveTo
QPair< int, int > KoPathPointIndex
void setText(const KUndo2MagicString &text)
void setParametricShape(bool parametric)
Set if the shape can be modified using parameters.
~KoParameterToPathCommandPrivate()
QList< KoParameterShape * > shapes
QList< KoPathShape * > copies
void copyPath(KoPathShape *destination, KoPathShape *source)
KoParameterToPathCommandPrivate *const d
KoParameterToPathCommand(KoParameterShape *shape, KUndo2Command *parent=0)
~KoParameterToPathCommand() override
void undo() override
revert the actions done in redo
void redo() override
redo the command
A KoPathPoint represents a point in a path.
The position of a path point within a path shape.
bool addSubpath(KoSubpath *subpath, int subpathIndex)
Adds a subpath at the given index to the path.
void clear()
Removes all subpaths and their points from the path.
void update() const override
reimplemented
void setTransformation(const QTransform &matrix)
KUndo2MagicString kundo2_i18n(const char *text)