Maki
Formally verfied low-code orchestration
Toggle main menu visibility
Loading...
Searching...
No Matches
batch_remove.h
1
#pragma once
2
3
#include <QUndoCommand>
4
5
#include "save_info.h"
6
7
class
Canvas
;
8
class
QPointF;
9
13
class
BatchRemoveCommand
:
public
QUndoCommand
14
{
15
public
:
23
BatchRemoveCommand
(
Canvas
* canvas,
const
QVector<NodeSaveInfo>& nodes,
const
QVector<TransitionSaveInfo>& transitions,
24
QUndoCommand* parent =
nullptr
);
25
29
void
undo
()
override
;
30
34
void
redo
()
override
;
35
36
private
:
37
Canvas
* mCanvas =
nullptr
;
38
QVector<NodeSaveInfo>
mNodes
;
39
QVector<TransitionSaveInfo> mTransitions;
40
};
BatchRemoveCommand::redo
void redo() override
Redoes the removal of a node from the canvas.
Definition
batch_remove.cpp:30
BatchRemoveCommand::BatchRemoveCommand
BatchRemoveCommand(Canvas *canvas, const QVector< NodeSaveInfo > &nodes, const QVector< TransitionSaveInfo > &transitions, QUndoCommand *parent=nullptr)
Constructs a RemoveNodeCommand object.
Definition
batch_remove.cpp:6
BatchRemoveCommand::mNodes
QVector< NodeSaveInfo > mNodes
Pointer to the canvas where the node is located.
Definition
batch_remove.h:38
BatchRemoveCommand::undo
void undo() override
Undoes the removal of a node from the canvas.
Definition
batch_remove.cpp:16
Canvas
The Canvas class represents the main drawing area for nodes and transitions.
Definition
canvas.h:29
Generated for
MAKI
· © 2026 with
Doxygen
1.9.8
GitHub
Research