|
Maki
Formally verfied low-code orchestration
|
Forward declaration of QPointF class. More...
#include <add_node.h>
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. | |
Forward declaration of QPointF class.
Command to add a node to the canvas.
| AddNodeCommand::AddNodeCommand | ( | Canvas * | canvas, |
| const NodeSaveInfo & | desc, | ||
| QUndoCommand * | parent = nullptr ) |
Constructs an AddNodeCommand object.
| canvas | Pointer to the Canvas where the node will be added. |
| desc | Description of the node to be added. |
| parent | Parent command for undo/redo functionality. |