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

Forward declaration of QPointF class. More...

#include <add_node.h>

Inheritance diagram for AddNodeCommand:

Public Member Functions

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

Private Attributes

const NodeSaveInfo mDesc
 Pointer to the Canvas where the node will be added.

Detailed Description

Forward declaration of QPointF class.

Command to add a node to the canvas.

Constructor & Destructor Documentation

◆ AddNodeCommand()

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

Constructs an AddNodeCommand object.

Parameters
canvasPointer to the Canvas where the node will be added.
descDescription of the node to be added.
parentParent command for undo/redo functionality.

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