Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
RemoveNodeCommand Class Reference

Forward declaration of QPointF class. More...

#include <remove_node.h>

Inheritance diagram for RemoveNodeCommand:

Public Member Functions

 RemoveNodeCommand (Canvas *canvas, const NodeSaveInfo &desc, QUndoCommand *parent=nullptr)
 Constructs a RemoveNodeCommand object.
void undo () override
 Undoes the removal of a node from the canvas.
void redo () override
 Redoes the removal of a node from the canvas.

Private Attributes

const NodeSaveInfo mDesc
 Pointer to the canvas where the node is located.

Detailed Description

Forward declaration of QPointF class.

Command to remove a node from the canvas.

Constructor & Destructor Documentation

◆ RemoveNodeCommand()

RemoveNodeCommand::RemoveNodeCommand ( Canvas * canvas,
const NodeSaveInfo & desc,
QUndoCommand * parent = nullptr )

Constructs a RemoveNodeCommand object.

Parameters
canvasPointer to the canvas where the node is located.
descDescription of the node to be removed.
parentParent command for undo/redo functionality.

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