Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeCreateCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006 Thomas Zander <zander@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOSHAPECREATECOMMAND_H
8#define KOSHAPECREATECOMMAND_H
9
10#include "kritaflake_export.h"
11#include <kundo2command.h>
12
13class KoShape;
16
18class KRITAFLAKE_EXPORT KoShapeCreateCommand : public KUndo2Command
19{
20public:
28 KoShapeContainer *parentShape = 0,
29 KUndo2Command *parent = 0);
30
38 KoShapeContainer *parentShape = 0,
39 KUndo2Command *parent = 0);
40
41 ~KoShapeCreateCommand() override;
43 void redo() override;
45 void undo() override;
46
47protected:
49 KoShapeContainer *parentShape, KUndo2Command *parent,
50 const KUndo2MagicString &undoString);
51
52private:
53 class Private;
54 Private * const d;
55};
56
57#endif
virtual void undo()
virtual void redo()
The undo / redo command for creating shapes.