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

Command to resize a node on the canvas. More...

#include <resize_node.h>

Inheritance diagram for ResizeNodeCommand:

Public Member Functions

 ResizeNodeCommand (Canvas *canvas, const QString &nodeId, const QSizeF &previousSize, const QSizeF &currentSize, 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.

Detailed Description

Command to resize a node on the canvas.

Constructor & Destructor Documentation

◆ ResizeNodeCommand()

ResizeNodeCommand::ResizeNodeCommand ( Canvas * canvas,
const QString & nodeId,
const QSizeF & previousSize,
const QSizeF & currentSize,
QUndoCommand * parent = nullptr )

Constructs a new ResizeNodeCommand object.

Parameters
canvasPointer to the canvas where the node is located.
nodeIdID of the node to be resized.
previousSizePrevious size of the node.
currentSizeCurrent size of the node.
parentParent undo command.

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