Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/* This file is part of the KDE project
* SPDX-FileCopyrightText: 2008 Thorsten Zachmann <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KOSHAPERENAMECOMMAND_H
#define KOSHAPERENAMECOMMAND_H
#include "kritaflake_export.h"
#include <kundo2command.h>
class QString;
class KoShape;
/// API docs go here
class KRITAFLAKE_EXPORT KoShapeRenameCommand : public KUndo2Command
{
public:
KoShapeRenameCommand(KoShape *shape, const QString &newName, KUndo2Command *parent = 0);
~KoShapeRenameCommand() override;
/// redo the command
void redo() override;
/// revert the actions done in redo
void undo() override;
private:
class Private;
Private * const d;
};
#endif /* KOSHAPERENAMECOMMAND_H */