#include <serializers.h>
Public Types | |
typedef QList< QGraphicsItem * > | TItemList |
constructor argument | |
typedef QPair< TStateList, TTransitionList > | TItemsPair |
typedef QList< StateSerializer > | TSerializedStatesList |
typedef QList < TransitionSerializer > | TSerializedTransitionsList |
typedef QList< State * > | TStateList |
only states are needed in list, since pointers to transitions are stored in states | |
typedef QMap< QString, State * > | TStateNameMap |
maps original to new state's names | |
typedef QList< Transition * > | TTransitionList |
Public Member Functions | |
SelectionSerializer () | |
SelectionSerializer (const QList< QGraphicsItem * > &items) | |
SelectionSerializer (const SelectionSerializer &other) | |
TItemsPair | createItems (Editor *editor, const QPoint &pos) |
Public Attributes | |
QPointF | m_hotSpot |
center of selection, states needs to memorize translation against this point | |
TSerializedStatesList | m_serializedStates |
TSerializedTransitionsList | m_serializedTransitions |
bool | m_valid |
Definition at line 124 of file serializers.h.
typedef QList<QGraphicsItem*> SelectionSerializer::TItemList |
constructor argument
Definition at line 138 of file serializers.h.
typedef QPair<TStateList, TTransitionList> SelectionSerializer::TItemsPair |
Definition at line 135 of file serializers.h.
typedef QList<StateSerializer> SelectionSerializer::TSerializedStatesList |
Definition at line 145 of file serializers.h.
Definition at line 146 of file serializers.h.
typedef QList<State*> SelectionSerializer::TStateList |
only states are needed in list, since pointers to transitions are stored in states
Definition at line 133 of file serializers.h.
typedef QMap<QString, State*> SelectionSerializer::TStateNameMap |
maps original to new state's names
Definition at line 139 of file serializers.h.
typedef QList<Transition*> SelectionSerializer::TTransitionList |
Definition at line 134 of file serializers.h.
SelectionSerializer::SelectionSerializer | ( | ) | [inline] |
Definition at line 126 of file serializers.h.
SelectionSerializer::SelectionSerializer | ( | const QList< QGraphicsItem * > & | items | ) |
Definition at line 293 of file serializers.cpp.
References State::boundingRect(), DBGLOG_SER, DBGPAR, m_hotSpot, m_serializedStates, and m_serializedTransitions.
SelectionSerializer::SelectionSerializer | ( | const SelectionSerializer & | other | ) |
Definition at line 325 of file serializers.cpp.
References m_serializedStates, and m_serializedTransitions.
SelectionSerializer::TItemsPair SelectionSerializer::createItems | ( | Editor * | editor, | |
const QPoint & | pos | |||
) |
Definition at line 333 of file serializers.cpp.
References Transition::assign(), DBGLOG_SER, DBGPAR, State::getName(), m_hotSpot, m_serializedStates, and m_serializedTransitions.
QPointF SelectionSerializer::m_hotSpot |
center of selection, states needs to memorize translation against this point
Definition at line 143 of file serializers.h.
Referenced by createItems(), operator<<(), operator>>(), and SelectionSerializer().
Definition at line 148 of file serializers.h.
Referenced by createItems(), operator<<(), operator>>(), and SelectionSerializer().
Definition at line 149 of file serializers.h.
Referenced by createItems(), operator<<(), operator>>(), and SelectionSerializer().
Definition at line 141 of file serializers.h.
Referenced by operator<<(), and operator>>().