Maki
Formally verified low-code orchestration
Loading...
Searching...
No Matches
DistributeCommand Class Reference

Position type used for alignment calculations. More...

#include <distribute.h>

Inheritance diagram for DistributeCommand:

Public Member Functions

 DistributeCommand (Canvas *canvas, const QList< Types::AlignmentNode > &items, QUndoCommand *parent=nullptr)
 Constructs an AlignCommand object.
void undo () override
 Undoes the distribution operation.
void redo () override
 Redoes the distribution operation.

Private Attributes

const QList< Types::AlignmentNode > mItems
 Pointer to the canvas on which the command operates. ///.

Detailed Description

Position type used for alignment calculations.

Command class for aligning items on a canvas.

Constructor & Destructor Documentation

◆ DistributeCommand()

DistributeCommand::DistributeCommand ( Canvas * canvas,
const QList< Types::AlignmentNode > & items,
QUndoCommand * parent = nullptr )

Constructs an AlignCommand object.

Parameters
canvasPointer to the canvas where the alignment will occur.
itemsList of alignment nodes to be aligned.
parentParent undo command for grouping.

Member Data Documentation

◆ mItems

const QList<Types::AlignmentNode> DistributeCommand::mItems
private

Pointer to the canvas on which the command operates. ///.

Note
Not owned by this class.

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