File indexing completed on 2025-03-09 04:03:41
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2008 Thorsten Zachmann <zachmann@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOSHAPERENAMECOMMAND_H 0008 #define KOSHAPERENAMECOMMAND_H 0009 0010 #include "kritaflake_export.h" 0011 #include <kundo2command.h> 0012 0013 class QString; 0014 class KoShape; 0015 0016 /// API docs go here 0017 class KRITAFLAKE_EXPORT KoShapeRenameCommand : public KUndo2Command 0018 { 0019 public: 0020 KoShapeRenameCommand(KoShape *shape, const QString &newName, KUndo2Command *parent = 0); 0021 ~KoShapeRenameCommand() override; 0022 0023 /// redo the command 0024 void redo() override; 0025 /// revert the actions done in redo 0026 void undo() override; 0027 0028 private: 0029 class Private; 0030 Private * const d; 0031 }; 0032 0033 #endif /* KOSHAPERENAMECOMMAND_H */