Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeDeleteCommand.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 * SPDX-FileCopyrightText: 2006 Jan Hambrecht <jaham@gmx.net>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOSHAPEDELETECOMMAND_H
9#define KOSHAPEDELETECOMMAND_H
10
11#include "kritaflake_export.h"
12#include <kundo2command.h>
13#include <QList>
14
15class KoShape;
17
19class KRITAFLAKE_EXPORT KoShapeDeleteCommand : public KUndo2Command
20{
21public:
28 KoShapeDeleteCommand(KoShapeControllerBase *controller, KoShape *shape, KUndo2Command *parent = 0);
35 KoShapeDeleteCommand(KoShapeControllerBase *controller, const QList<KoShape*> &shapes, KUndo2Command *parent = 0);
36 ~KoShapeDeleteCommand() override;
38 void redo() override;
40 void undo() override;
41private:
42 class Private;
43 Private * const d;
44};
45
46#endif
virtual void undo()
virtual void redo()
The undo / redo command for deleting shapes.