Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNodeRenameCommand.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KISNODERENAMECOMMAND_H
7#define KISNODERENAMECOMMAND_H
8
9#include "kis_node_command.h"
11
14{
15public:
17 const QString &oldName,
18 const QString &newName);
19
20 void redo() override;
21 void undo() override;
22
23 int id() const override;
24 bool mergeWith(const KUndo2Command *command) override;
25 bool canMergeWith(const KUndo2Command *command) const override;
26
27private:
28
29 QString m_oldName;
30 QString m_newName;
31};
32
33#endif // KISNODERENAMECOMMAND_H
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
virtual bool canMergeWith(const KUndo2Command *command) const =0
the base command for commands altering a node
The command for setting the node's name.