Krita Source Code Documentation
Loading...
Searching...
No Matches
KoAddRemoveShapeCommands.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
9#include <KoShapeContainer.h>
10#include <kis_assert.h>
11
12
14 : KisCommandUtils::FlipFlopCommand(state, parentCommand),
15 m_shape(shape),
16 m_parent(parent)
17{
18}
19
25
34
43
45 : KoAddRemoveShapeCommandImpl(shape, parent, INITIALIZING, parentCommand)
46{
47}
48
50 : KoAddRemoveShapeCommandImpl(shape, parent, FINALIZING, parentCommand)
51{
52}
void removeShape(KoShape *shape)
void addShape(KoShape *shape)
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
Definition kis_assert.h:128
KoAddRemoveShapeCommandImpl(KoShape *shape, KoShapeContainer *parent, State state, KUndo2Command *parentCommand)
KoAddShapeCommand(KoShape *shape, KoShapeContainer *parent, KUndo2Command *parentCommand=0)
KoRemoveShapeCommand(KoShape *shape, KoShapeContainer *parent, KUndo2Command *parentCommand=0)