Public Types | Public Member Functions | Public Attributes

SelectionSerializer Struct Reference

#include <serializers.h>

List of all members.

Public Types

typedef QList< QGraphicsItem * > TItemList
 constructor argument
typedef QPair< TStateList,
TTransitionList
TItemsPair
typedef QList< StateSerializerTSerializedStatesList
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

Detailed Description

Definition at line 124 of file serializers.h.


Member Typedef Documentation

typedef QList<QGraphicsItem*> SelectionSerializer::TItemList

constructor argument

Definition at line 138 of file serializers.h.

Definition at line 135 of file serializers.h.

Definition at line 145 of file serializers.h.

Definition at line 146 of file serializers.h.

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.

Definition at line 134 of file serializers.h.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:

SelectionSerializer::SelectionSerializer ( const SelectionSerializer other  ) 

Definition at line 325 of file serializers.cpp.

References m_serializedStates, and m_serializedTransitions.


Member Function Documentation

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.

Here is the call graph for this function:


Member Data Documentation

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>>().


The documentation for this struct was generated from the following files: