|
Maki
Formally verfied low-code orchestration
|
Command to resize a node on the canvas. More...
#include <resize_node.h>
Public Member Functions | |
| ResizeNodeCommand (Canvas *canvas, const QString &nodeId, const QSizeF &previousSize, const QSizeF ¤tSize, QUndoCommand *parent=nullptr) | |
| Constructs a new ResizeNodeCommand object. | |
| void | undo () override |
| Undoes the resize operation. | |
| void | redo () override |
| Redoes the resize operation. | |
Private Attributes | |
| const QString | mNodeId |
| Pointer to the canvas where the node is located. | |
| const QSizeF | mPreviousSize |
| ID of the node to be resized. | |
| const QSizeF | mCurrentSize |
| Previous size of the node. | |
Command to resize a node on the canvas.
| ResizeNodeCommand::ResizeNodeCommand | ( | Canvas * | canvas, |
| const QString & | nodeId, | ||
| const QSizeF & | previousSize, | ||
| const QSizeF & | currentSize, | ||
| QUndoCommand * | parent = nullptr ) |
Constructs a new ResizeNodeCommand object.
| canvas | Pointer to the canvas where the node is located. |
| nodeId | ID of the node to be resized. |
| previousSize | Previous size of the node. |
| currentSize | Current size of the node. |
| parent | Parent undo command. |