Maki
Formally verfied low-code orchestration
Toggle main menu visibility
Loading...
Searching...
No Matches
resize_node.h
1
#pragma once
2
3
#include <QSizeF>
4
#include <QUndoCommand>
5
6
class
Canvas
;
7
class
QString;
8
12
class
ResizeNodeCommand
:
public
QUndoCommand
13
{
14
public
:
24
ResizeNodeCommand
(
Canvas
* canvas,
const
QString& nodeId,
const
QSizeF& previousSize,
const
QSizeF& currentSize, QUndoCommand* parent =
nullptr
);
25
29
void
undo
()
override
;
30
34
void
redo
()
override
;
35
36
private
:
37
Canvas
* mCanvas =
nullptr
;
38
const
QString
mNodeId
;
39
const
QSizeF
mPreviousSize
;
40
const
QSizeF
mCurrentSize
;
41
};
Canvas
The Canvas class represents the main drawing area for nodes and transitions.
Definition
canvas.h:29
ResizeNodeCommand::mPreviousSize
const QSizeF mPreviousSize
ID of the node to be resized.
Definition
resize_node.h:39
ResizeNodeCommand::undo
void undo() override
Undoes the resize operation.
Definition
resize_node.cpp:18
ResizeNodeCommand::redo
void redo() override
Redoes the resize operation.
Definition
resize_node.cpp:27
ResizeNodeCommand::ResizeNodeCommand
ResizeNodeCommand(Canvas *canvas, const QString &nodeId, const QSizeF &previousSize, const QSizeF ¤tSize, QUndoCommand *parent=nullptr)
Constructs a new ResizeNodeCommand object.
Definition
resize_node.cpp:8
ResizeNodeCommand::mNodeId
const QString mNodeId
Pointer to the canvas where the node is located.
Definition
resize_node.h:38
ResizeNodeCommand::mCurrentSize
const QSizeF mCurrentSize
Previous size of the node.
Definition
resize_node.h:40
Generated for
MAKI
· © 2026 with
Doxygen
1.9.8
GitHub
Research