Workspace 6.21.5
Public Member Functions | List of all members
AddConnectionAnchor Class Reference

Command class for adding a connection anchor.

#include <Workspace/Presentation/UndoCommands/addconnectionanchor.h>

Inheritance diagram for AddConnectionAnchor:
[legend]

Public Member Functions

 AddConnectionAnchor (DataExecution::Workspace &workspace, const QPointF &point, int angle=0)
 
const QUuid & getAnchorId () const
 
void redo () override
 
void undo () override
 

Constructor & Destructor Documentation

◆ AddConnectionAnchor()

AddConnectionAnchor ( DataExecution::Workspace workspace,
const QPointF &  point,
int  angle = 0 
)

Member Function Documentation

◆ getAnchorId()

const QUuid & getAnchorId ( ) const
inline
Returns
The ID of the anchor created by redo(). Note that this function must not be called before redo() has been called at least once.

◆ redo()

void redo ( )
override

◆ undo()

void undo ( )
override