Maki
Formally verified low-code orchestration
Loading...
Searching...
No Matches
distribute.h
1#pragma once
2
3#include <QUndoCommand>
4
5#include "types.h"
6
7class Canvas;
8class QPointF;
9
13class DistributeCommand : public QUndoCommand
14{
15public:
23 DistributeCommand(Canvas* canvas, const QList<Types::AlignmentNode>& items, QUndoCommand* parent = nullptr);
24
28 void undo() override;
29
33 void redo() override;
34
35private:
36 Canvas* mCanvas;
37 const QList<Types::AlignmentNode> mItems;
38};
The Canvas class represents the main drawing area for nodes and transitions.
Definition canvas.h:35
void undo() override
Undoes the distribution operation.
Definition distribute.cpp:14
DistributeCommand(Canvas *canvas, const QList< Types::AlignmentNode > &items, QUndoCommand *parent=nullptr)
Constructs an AlignCommand object.
Definition distribute.cpp:6
void redo() override
Redoes the distribution operation.
Definition distribute.cpp:25
const QList< Types::AlignmentNode > mItems
Pointer to the canvas on which the command operates. ///.
Definition distribute.h:37