Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
TransitionSaveInfo Class Reference

Represents transition save information. More...

#include <transition_info.h>

Inheritance diagram for TransitionSaveInfo:

Public Member Functions

 TransitionSaveInfo ()
 Constructs a new TransitionSaveInfo object.
QString getid () const override
 Gets the ID of the transition.
QString getlabel () const override
 Gets the label of the transition.
QString getevent () const override
 Gets the event associated with the transition.
QString getsrcId () const override
 Gets the source ID of the transition.
QString getdstId () const override
 Gets the destination ID of the transition.
QPointF srcPoint () const
 Gets the source point of the transition.
QPointF srcShift () const
 Gets the source shift of the transition.
QPointF dstPoint () const
 Gets the destination point of the transition.
QPointF dstShift () const
 Gets the destination shift of the transition.
void setId (const QString &arg)
 Sets the ID of the transition.
void setLabel (const QString &arg)
 Sets the label of the transition.
void setEvent (const QString &arg)
 Sets the event associated with the transition.
void setSrcId (const QString &arg)
 Sets the source ID of the transition.
void setSrcPoint (const QPointF &arg)
 Sets the source point of the transition.
void setSrcShift (const QPointF &arg)
 Sets the source shift of the transition.
void setDstId (const QString &arg)
 Sets the destination ID of the transition.
void setDstPoint (const QPointF &arg)
 Sets the destination point of the transition.
void setDstShift (const QPointF &arg)
 Sets the destination shift of the transition.
QJsonObject toJson () const
 Converts the transition save info to a JSON object.

Static Public Member Functions

static TransitionSaveInfo fromJson (const QJsonObject &data)
 Creates a TransitionSaveInfo object from a JSON object.

Private Attributes

QString mLabel
 The ID of the transition.
QString mEvent
 The label of the transition.
QString mSrcId
 The event associated with the transition.
QPointF mSrcPoint
 The source ID of the transition.
QPointF mSrcShift
 The source point of the transition.
QString mDstId
 The source shift of the transition.
QPointF mDstPoint
 The destination ID of the transition.
QPointF mDstShift
 The destination point of the transition.

Detailed Description

Represents transition save information.

Member Function Documentation

◆ dstPoint()

QPointF TransitionSaveInfo::dstPoint ( ) const

Gets the destination point of the transition.

Returns
QPointF The destination point of the transition.

◆ dstShift()

QPointF TransitionSaveInfo::dstShift ( ) const

Gets the destination shift of the transition.

Returns
QPointF The destination shift of the transition.

◆ fromJson()

TransitionSaveInfo TransitionSaveInfo::fromJson ( const QJsonObject & data)
static

Creates a TransitionSaveInfo object from a JSON object.

Parameters
dataThe JSON object containing the transition save info.
Returns
TransitionSaveInfo The created TransitionSaveInfo object.

◆ getdstId()

QString TransitionSaveInfo::getdstId ( ) const
override

Gets the destination ID of the transition.

Returns
QString The destination ID of the transition.

◆ getevent()

QString TransitionSaveInfo::getevent ( ) const
override

Gets the event associated with the transition.

Returns
QString The event associated with the transition.

◆ getid()

QString TransitionSaveInfo::getid ( ) const
override

Gets the ID of the transition.

Returns
QString The ID of the transition.

◆ getlabel()

QString TransitionSaveInfo::getlabel ( ) const
override

Gets the label of the transition.

Returns
QString The label of the transition.

◆ getsrcId()

QString TransitionSaveInfo::getsrcId ( ) const
override

Gets the source ID of the transition.

Returns
QString The source ID of the transition.

◆ setDstId()

void TransitionSaveInfo::setDstId ( const QString & arg)

Sets the destination ID of the transition.

Parameters
argThe new destination ID for the transition.

◆ setDstPoint()

void TransitionSaveInfo::setDstPoint ( const QPointF & arg)

Sets the destination point of the transition.

Parameters
argThe new destination point for the transition.

◆ setDstShift()

void TransitionSaveInfo::setDstShift ( const QPointF & arg)

Sets the destination shift of the transition.

Parameters
argThe new destination shift for the transition.

◆ setEvent()

void TransitionSaveInfo::setEvent ( const QString & arg)

Sets the event associated with the transition.

Parameters
argThe new event for the transition.

◆ setId()

void TransitionSaveInfo::setId ( const QString & arg)

Sets the ID of the transition.

Parameters
argThe new ID for the transition.

◆ setLabel()

void TransitionSaveInfo::setLabel ( const QString & arg)

Sets the label of the transition.

Parameters
argThe new label for the transition.

◆ setSrcId()

void TransitionSaveInfo::setSrcId ( const QString & arg)

Sets the source ID of the transition.

Parameters
argThe new source ID for the transition.

◆ setSrcPoint()

void TransitionSaveInfo::setSrcPoint ( const QPointF & arg)

Sets the source point of the transition.

Parameters
argThe new source point for the transition.

◆ setSrcShift()

void TransitionSaveInfo::setSrcShift ( const QPointF & arg)

Sets the source shift of the transition.

Parameters
argThe new source shift for the transition.

◆ srcPoint()

QPointF TransitionSaveInfo::srcPoint ( ) const

Gets the source point of the transition.

Returns
QPointF The source point of the transition.

◆ srcShift()

QPointF TransitionSaveInfo::srcShift ( ) const

Gets the source shift of the transition.

Returns
QPointF The source shift of the transition.

◆ toJson()

QJsonObject TransitionSaveInfo::toJson ( ) const

Converts the transition save info to a JSON object.

Returns
QJsonObject The JSON representation of the transition save info.

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