10#include <klocalizedstring.h>
15 , m_pointData(pointData)
16 , m_startIndex(-1, -1)
void setText(const KUndo2MagicString &text)
Describe a KoPathPoint by a KoPathShape and its indices.
KoPathPointIndex pointIndex
position of the point in the path shape
KoPathShape * pathShape
path shape the path point belongs too
~KoPathSegmentBreakCommand() override
KoPathPointData m_pointData
KoPathSegmentBreakCommand(const KoPathPointData &pointData, KUndo2Command *parent=0)
void undo() override
revert the actions done in redo
KoPathPointIndex m_startIndex
void redo() override
redo the command
bool breakAfter(const KoPathPointIndex &pointIndex)
Breaks the path after the point index.
int subpathPointCount(int subpathIndex) const
Returns the number of points in a subpath.
bool isClosedSubpath(int subpathIndex) const
Checks if a subpath is closed.
virtual QPointF normalize()
Normalizes the path data.
bool join(int subpathIndex)
Joins the given subpath with the following one.
KoPathPointIndex closeSubpath(const KoPathPointIndex &pointIndex)
Close a open subpath.
KoPathPointIndex openSubpath(const KoPathPointIndex &pointIndex)
Opens a closed subpath.
void update() const override
reimplemented
KUndo2MagicString kundo2_i18n(const char *text)