Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeRenameCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2008 Thorsten Zachmann <zachmann@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOSHAPERENAMECOMMAND_H
8#define KOSHAPERENAMECOMMAND_H
9
10#include "kritaflake_export.h"
11#include <kundo2command.h>
12
13class QString;
14class KoShape;
15
17class KRITAFLAKE_EXPORT KoShapeRenameCommand : public KUndo2Command
18{
19public:
20 KoShapeRenameCommand(KoShape *shape, const QString &newName, KUndo2Command *parent = 0);
21 ~KoShapeRenameCommand() override;
22
24 void redo() override;
26 void undo() override;
27
28private:
29 class Private;
30 Private * const d;
31};
32
33#endif /* KOSHAPERENAMECOMMAND_H */
virtual void undo()
virtual void redo()