|
Maki
Formally verfied low-code orchestration
|
Command to move a node on the canvas. More...
#include <move_node.h>
Public Member Functions | |
| MoveNodeCommand (Canvas *canvas, const QString &nodeId, const QPointF &previousPosition, const QPointF ¤tPosition, QUndoCommand *parent=nullptr) | |
| Constructs a MoveNodeCommand object. | |
| void | undo () override |
| Undoes the move operation. | |
| void | redo () override |
| Redoes the move operation. | |
Command to move a node on the canvas.
| MoveNodeCommand::MoveNodeCommand | ( | Canvas * | canvas, |
| const QString & | nodeId, | ||
| const QPointF & | previousPosition, | ||
| const QPointF & | currentPosition, | ||
| QUndoCommand * | parent = nullptr ) |
Constructs a MoveNodeCommand object.
| canvas | Pointer to the canvas where the node is located. |
| nodeId | ID of the node to be moved. |
| previousPosition | The previous position of the node. |
| currentPosition | The new position of the node. |
| parent | Pointer to the parent command, if any. |