13#include <klocalizedstring.h>
29 : shapesDocument(_document),
31 explicitParentShape(_parentShape)
40 bool firstRedo =
true;
56 , d(new
Private(controller, shapes, parentShape))
71 Q_FOREACH(
KoShape *shape,
d->shapes) {
85 d->undoStore.redoAll();
91 d->undoStore.undoAll();
QList< KoShape * > shapes() const
The undo / redo command for creating shapes.
Private(KoShapeControllerBase *_document, const QList< KoShape * > &_shapes, KoShapeContainer *_parentShape)
void undo() override
revert the actions done in redo
KoShapeCreateCommand(KoShapeControllerBase *controller, KoShape *shape, KoShapeContainer *parentShape=0, KUndo2Command *parent=0)
KoShapeContainer * explicitParentShape
QList< KoShape * > shapes
void redo() override
redo the command
~KoShapeCreateCommand() override
KisSurrogateUndoStore undoStore
KoShapeControllerBase * shapesDocument
static KoShapeReorderCommand * mergeInShape(QList< KoShape * > shapes, KoShape *newShape, KUndo2Command *parent=0)
mergeInShape adjust zIndex of all the shapes and newShape to avoid collisions between shapes and newS...
KoShapeContainer * parent() const
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)
KUndo2MagicString kundo2_i18np(const char *sing, const char *plur, const A1 &a1)