Maki
Formally verified low-code orchestration
Loading...
Searching...
No Matches
RenameNodeCommand Class Reference

Command to rename a node on the canvas. More...

#include <rename_node.h>

Inheritance diagram for RenameNodeCommand:

Public Member Functions

 RenameNodeCommand (const QString &nodeId, const QString &oldName, const QString &newName, QUndoCommand *parent=nullptr)
 Constructs a RenameNodeCommand object.
void undo () override
 Restores the original node name.
void redo () override
 Applies the new node name.

Detailed Description

Command to rename a node on the canvas.

Constructor & Destructor Documentation

◆ RenameNodeCommand()

RenameNodeCommand::RenameNodeCommand ( const QString & nodeId,
const QString & oldName,
const QString & newName,
QUndoCommand * parent = nullptr )

Constructs a RenameNodeCommand object.

Parameters
nodeIdUnique identifier of the node.
oldNameOriginal name of the node.
newNameNew name of the node.
parentParent undo command.

The documentation for this class was generated from the following files:
  • /__w/maki/maki/app/system/undo_commands/rename_node.h
  • /__w/maki/maki/app/system/undo_commands/rename_node.cpp