15#include <klocalizedstring.h>
30 oldStrokes.append(oldStroke);
35 newStrokes.append(newStroke);
50 Q_FOREACH (
KoShape *shape,
d->shapes) {
51 d->addOldStroke(shape->
stroke());
52 d->addNewStroke(stroke);
64 Q_ASSERT(
shapes.count() == strokes.count());
70 d->addOldStroke(shape->
stroke());
72 d->addNewStroke(stroke);
81 d->shapes.append(shape);
82 d->addNewStroke(stroke);
83 d->addOldStroke(shape->
stroke());
100 Q_FOREACH (
KoShape *shape,
d->shapes) {
115 Q_FOREACH (
KoShape *shape,
d->shapes) {
133 other->
d->shapes !=
d->shapes) {
138 d->newStrokes = other->
d->newStrokes;
void setText(const KUndo2MagicString &text)
static void bulkShapesUpdate(const UpdatesList &updates)
The undo / redo command for setting the shape stroke.
QList< KoShapeStrokeModelSP > newStrokes
the new strokes to set
void undo() override
revert the actions done in redo
void addOldStroke(KoShapeStrokeModelSP oldStroke)
void redo() override
redo the command
QList< KoShape * > shapes
the shapes to set stroke for
void addNewStroke(KoShapeStrokeModelSP newStroke)
~KoShapeStrokeCommand() override
KoShapeStrokeCommand(const QList< KoShape * > &shapes, KoShapeStrokeModelSP stroke, KUndo2Command *parent=0)
QList< KoShapeStrokeModelSP > oldStrokes
the old strokes, one for each shape
bool mergeWith(const KUndo2Command *command) override
virtual KoShapeStrokeModelSP stroke() const
virtual void setStroke(KoShapeStrokeModelSP stroke)
KUndo2MagicString kundo2_i18n(const char *text)