25 QString
getid()
const override;
79 void setId(
const QString& arg);
133 QJsonObject
toJson()
const;
159QDataStream& operator<<(QDataStream& out,
const QVector<std::shared_ptr<TransitionSaveInfo>>& nodes);
160QDataStream& operator>>(QDataStream& in, QVector<std::shared_ptr<TransitionSaveInfo>>& nodes);
161QDataStream& operator<<(QDataStream& out,
const QVector<std::shared_ptr<ITransition>>& nodes);
162QDataStream& operator>>(QDataStream& in, QVector<std::shared_ptr<ITransition>>& nodes);
QPointF srcShift() const
Gets the source shift of the transition.
Definition transition_info.cpp:53
QPointF dstShift() const
Gets the destination shift of the transition.
Definition transition_info.cpp:63
static TransitionSaveInfo fromJson(const QJsonObject &data)
Creates a TransitionSaveInfo object from a JSON object.
Definition transition_info.cpp:137
QString getlabel() const override
Gets the label of the transition.
Definition transition_info.cpp:28
QString mDstId
The source shift of the transition.
Definition transition_info.h:154
TransitionSaveInfo()
Constructs a new TransitionSaveInfo object.
Definition transition_info.cpp:10
void setLabel(const QString &arg)
Sets the label of the transition.
Definition transition_info.cpp:73
QString mEvent
The label of the transition.
Definition transition_info.h:148
QString getid() const override
Gets the ID of the transition.
Definition transition_info.cpp:23
QPointF mDstPoint
The destination ID of the transition.
Definition transition_info.h:155
QPointF dstPoint() const
Gets the destination point of the transition.
Definition transition_info.cpp:58
void setDstShift(const QPointF &arg)
Sets the destination shift of the transition.
Definition transition_info.cpp:108
void setId(const QString &arg)
Sets the ID of the transition.
Definition transition_info.cpp:68
QPointF mSrcPoint
The source ID of the transition.
Definition transition_info.h:151
QString getdstId() const override
Gets the destination ID of the transition.
Definition transition_info.cpp:43
void setSrcId(const QString &arg)
Sets the source ID of the transition.
Definition transition_info.cpp:83
QString mSrcId
The event associated with the transition.
Definition transition_info.h:150
QPointF mDstShift
The destination point of the transition.
Definition transition_info.h:156
QJsonObject toJson() const
Converts the transition save info to a JSON object.
Definition transition_info.cpp:115
void setEvent(const QString &arg)
Sets the event associated with the transition.
Definition transition_info.cpp:78
void setDstPoint(const QPointF &arg)
Sets the destination point of the transition.
Definition transition_info.cpp:103
QPointF mSrcShift
The source point of the transition.
Definition transition_info.h:152
QString getsrcId() const override
Gets the source ID of the transition.
Definition transition_info.cpp:38
void setSrcShift(const QPointF &arg)
Sets the source shift of the transition.
Definition transition_info.cpp:93
QString getevent() const override
Gets the event associated with the transition.
Definition transition_info.cpp:33
QString mLabel
The ID of the transition.
Definition transition_info.h:147
QPointF srcPoint() const
Gets the source point of the transition.
Definition transition_info.cpp:48
void setSrcPoint(const QPointF &arg)
Sets the source point of the transition.
Definition transition_info.cpp:88
void setDstId(const QString &arg)
Sets the destination ID of the transition.
Definition transition_info.cpp:98