Skip to content

armgit / krita

Public Imported from GitHub
0

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++
756 B
Raw Blame
/* 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 */