Maki
Formally verified low-code orchestration
Toggle main menu visibility
Loading...
Searching...
No Matches
add_node.h
1
#pragma once
2
3
#include <QUndoCommand>
4
5
#include "../canvas.h"
6
#include "save_info.h"
7
8
class
QPointF;
9
13
class
AddNodeCommand
:
public
QUndoCommand
14
{
15
public
:
23
AddNodeCommand
(
Canvas
* canvas,
const
NodeSaveInfo
& desc, Canvas::NodeCreation creation, QUndoCommand* parent =
nullptr
);
24
28
void
undo
()
override
;
29
33
void
redo
()
override
;
34
35
private
:
36
Canvas
* mCanvas =
nullptr
;
37
const
NodeSaveInfo
mDesc
;
38
const
Canvas::NodeCreation
mCreation
;
39
};
AddNodeCommand::undo
void undo() override
Undoes the addition of a node from the canvas.
Definition
add_node.cpp:15
AddNodeCommand::mCreation
const Canvas::NodeCreation mCreation
Description of the node to be added.
Definition
add_node.h:38
AddNodeCommand::mDesc
const NodeSaveInfo mDesc
Pointer to the Canvas where the node will be added.
Definition
add_node.h:37
AddNodeCommand::AddNodeCommand
AddNodeCommand(Canvas *canvas, const NodeSaveInfo &desc, Canvas::NodeCreation creation, QUndoCommand *parent=nullptr)
Constructs an AddNodeCommand object.
Definition
add_node.cpp:6
AddNodeCommand::redo
void redo() override
Redoes the addition of a node to the canvas.
Definition
add_node.cpp:24
Canvas
The Canvas class represents the main drawing area for nodes and transitions.
Definition
canvas.h:35
NodeSaveInfo
Represents a node that can be saved and loaded.
Definition
node_info.h:16
Generated for
MAKI
· © 2026 with
Doxygen
1.9.8
GitHub
Research