Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes

TransitionManager Class Reference

Creates concrete state and returns Transition supertype. More...

#include <transitionManager.h>

Collaboration diagram for TransitionManager:

List of all members.

Public Member Functions

 ~TransitionManager ()
OneStateTransitioncreateOneStateTransition (const QString &typeName, Editor *editor, State *state, const QString &label, int direction, bool dimmed)
OneStateTransitioncreateOneStateTransition (Editor *editor, State *state, const TransitionLoopSEDialog &td)
TwoStatesTransitioncreateTwoStatesTransition (Editor *editor, State *s1, State *s2, const TransitionDialog &td)
TwoStatesTransitioncreateTwoStatesTransition (const QString &typeName, Editor *editor, State *s1, State *s2, const QString &label, bool leftOriented, bool dimmed)
const
OneStateTransitionProperties
getOneStateTransitionProperties (int typeId) const
 returns editable properties of transition type for transition dialogs
const QList< QString > & getOneStateTransitionTypeNameList () const
 returns transition type list, used for dialog (filling comboBox)
const
TwoStatesTransitionProperties
getTwoStatesTransitionProperties (int typeId) const
const QList< QString > & getTwoStatesTransitionTypeNameList () const
int getTypeNameId (const QString &typeName) const
 returns typeID by given typeName - important to hold elements's types consistent

Static Public Member Functions

static TransitionManagergetInstance ()
 returns instance of TransitionManager

Protected Types

typedef OneStateTransition
*(TransitionManager::* 
OneStateTransitionConstructor )(Editor *, State *, const QString &, int, bool)
 pointer to TransitionManager::createConcreteTransition
typedef TwoStatesTransition
*(TransitionManager::* 
TwoStatesTransitionConstructor )(Editor *, State *, State *, const QString &, bool, bool)
typedef QMap< QString,
OneStateTransitionConstructor
TypeNameToOneStateInstanceMap
typedef QMap< QString,
OneStateTransitionProperties
TypeNameToOneStatePropsMap
typedef QMap< QString,
TwoStatesTransitionConstructor
TypeNameToTwoStatesInstanceMap
typedef QMap< QString,
TwoStatesTransitionProperties
TypeNameToTwoStatesPropsMap

Protected Member Functions

TwoStatesTransitioncreateTransitionArc (Editor *editor, State *s1, State *s2, const QString &label, bool leftOriented, bool dimmed)
OneStateTransitioncreateTransitionCLoop (Editor *editor, State *state, const QString &label, int direction, bool dimmed)
OneStateTransitioncreateTransitionFinal (Editor *editor, State *state, const QString &, int direction, bool dimmed)
OneStateTransitioncreateTransitionInitial (Editor *editor, State *state, const QString &, int direction, bool dimmed)
TwoStatesTransitioncreateTransitionLArc (Editor *editor, State *s1, State *s2, const QString &label, bool leftOriented, bool dimmed)
TwoStatesTransitioncreateTransitionLine (Editor *editor, State *s1, State *s2, const QString &label, bool leftOriented, bool dimmed)
 twoStatesTransitions creators
OneStateTransitioncreateTransitionLoop (Editor *editor, State *state, const QString &label, int direction, bool dimmed)
OneStateTransitioncreateTransitionLoopVar (Editor *editor, State *state, const QString &label, int direction, bool dimmed)
TwoStatesTransitioncreateTransitionVArc (Editor *editor, State *s1, State *s2, const QString &label, bool leftOriented, bool dimmed)
TwoStatesTransitioncreateTransitionVCurve (Editor *editor, State *s1, State *s2, const QString &label, bool leftOriented, bool dimmed)

Protected Attributes

QList< QString > oneStateTransitionTypeList
QList< QString > twoStatesTransitionTypeList
TypeNameToOneStateInstanceMap typeNameToOneStateInstanceMap
 maps type name to createConcreteOneStateTransition function
TypeNameToOneStatePropsMap typeNameToOneStatePropsMap
TypeNameToTwoStatesInstanceMap typeNameToTwoStatesInstanceMap
 maps type name to createConcreteTwoStatesTransition function
TypeNameToTwoStatesPropsMap typeNameToTwoStatesPropsMap

Private Member Functions

 TransitionManager ()

Static Private Attributes

static bool instantiated = false
static TransitionManagermanager = NULL

Detailed Description

Creates concrete state and returns Transition supertype.

Implemented as singelton.

Definition at line 62 of file transitionManager.h.


Member Typedef Documentation

typedef OneStateTransition*(TransitionManager::* TransitionManager::OneStateTransitionConstructor)(Editor *, State *, const QString &, int, bool) [protected]

pointer to TransitionManager::createConcreteTransition

Definition at line 133 of file transitionManager.h.

typedef TwoStatesTransition*(TransitionManager::* TransitionManager::TwoStatesTransitionConstructor)(Editor *, State *, State *, const QString &, bool, bool) [protected]

Definition at line 147 of file transitionManager.h.

Definition at line 135 of file transitionManager.h.

Definition at line 137 of file transitionManager.h.

Definition at line 149 of file transitionManager.h.

Definition at line 138 of file transitionManager.h.


Constructor & Destructor Documentation

TransitionManager::TransitionManager (  )  [private]
TransitionManager::~TransitionManager (  )  [inline]

Definition at line 73 of file transitionManager.h.

References instantiated.


Member Function Documentation

OneStateTransition * TransitionManager::createOneStateTransition ( Editor editor,
State state,
const TransitionLoopSEDialog td 
)
OneStateTransition * TransitionManager::createOneStateTransition ( const QString &  typeName,
Editor editor,
State state,
const QString &  label,
int  direction,
bool  dimmed 
)

Definition at line 146 of file transitionManager.cpp.

TwoStatesTransition * TransitionManager::createTransitionArc ( Editor editor,
State s1,
State s2,
const QString &  label,
bool  leftOriented,
bool  dimmed 
) [protected]

Definition at line 215 of file transitionManager.cpp.

OneStateTransition * TransitionManager::createTransitionCLoop ( Editor editor,
State state,
const QString &  label,
int  direction,
bool  dimmed 
) [protected]

Definition at line 195 of file transitionManager.cpp.

References TransitionLoop::eCLoop.

OneStateTransition * TransitionManager::createTransitionFinal ( Editor editor,
State state,
const QString &  ,
int  direction,
bool  dimmed 
) [protected]

Definition at line 183 of file transitionManager.cpp.

OneStateTransition * TransitionManager::createTransitionInitial ( Editor editor,
State state,
const QString &  ,
int  direction,
bool  dimmed 
) [protected]

createConcreteTransition methods oneStateTransitions creators

Definition at line 177 of file transitionManager.cpp.

TwoStatesTransition * TransitionManager::createTransitionLArc ( Editor editor,
State s1,
State s2,
const QString &  label,
bool  leftOriented,
bool  dimmed 
) [protected]

Definition at line 221 of file transitionManager.cpp.

TwoStatesTransition * TransitionManager::createTransitionLine ( Editor editor,
State s1,
State s2,
const QString &  label,
bool  leftOriented,
bool  dimmed 
) [protected]

twoStatesTransitions creators

Definition at line 209 of file transitionManager.cpp.

OneStateTransition * TransitionManager::createTransitionLoop ( Editor editor,
State state,
const QString &  label,
int  direction,
bool  dimmed 
) [protected]

Definition at line 189 of file transitionManager.cpp.

References TransitionLoop::eLoop.

OneStateTransition * TransitionManager::createTransitionLoopVar ( Editor editor,
State state,
const QString &  label,
int  direction,
bool  dimmed 
) [protected]

Definition at line 201 of file transitionManager.cpp.

References TransitionLoop::eLoopVar.

TwoStatesTransition * TransitionManager::createTransitionVArc ( Editor editor,
State s1,
State s2,
const QString &  label,
bool  leftOriented,
bool  dimmed 
) [protected]

Definition at line 227 of file transitionManager.cpp.

TwoStatesTransition * TransitionManager::createTransitionVCurve ( Editor editor,
State s1,
State s2,
const QString &  label,
bool  leftOriented,
bool  dimmed 
) [protected]

Definition at line 233 of file transitionManager.cpp.

TwoStatesTransition * TransitionManager::createTwoStatesTransition ( const QString &  typeName,
Editor editor,
State s1,
State s2,
const QString &  label,
bool  leftOriented,
bool  dimmed 
)

Definition at line 164 of file transitionManager.cpp.

TwoStatesTransition * TransitionManager::createTwoStatesTransition ( Editor editor,
State s1,
State s2,
const TransitionDialog td 
)
TransitionManager * TransitionManager::getInstance (  )  [static]
const OneStateTransitionProperties & TransitionManager::getOneStateTransitionProperties ( int  typeId  )  const

returns editable properties of transition type for transition dialogs

Definition at line 115 of file transitionManager.cpp.

References oneStateTransitionTypeList, and typeNameToOneStatePropsMap.

Referenced by TransitionLoopSEDialog::showEdits().

Here is the caller graph for this function:

const QList< QString > & TransitionManager::getOneStateTransitionTypeNameList (  )  const

returns transition type list, used for dialog (filling comboBox)

Definition at line 93 of file transitionManager.cpp.

References oneStateTransitionTypeList.

Referenced by TransitionLoopSEDialog::TransitionLoopSEDialog().

Here is the caller graph for this function:

const TwoStatesTransitionProperties & TransitionManager::getTwoStatesTransitionProperties ( int  typeId  )  const

Definition at line 126 of file transitionManager.cpp.

References twoStatesTransitionTypeList, and typeNameToTwoStatesPropsMap.

Referenced by TransitionDialog::showEdits().

Here is the caller graph for this function:

const QList< QString > & TransitionManager::getTwoStatesTransitionTypeNameList (  )  const

Definition at line 98 of file transitionManager.cpp.

References twoStatesTransitionTypeList.

Referenced by TransitionDialog::TransitionDialog().

Here is the caller graph for this function:

int TransitionManager::getTypeNameId ( const QString &  typeName  )  const

returns typeID by given typeName - important to hold elements's types consistent

Definition at line 103 of file transitionManager.cpp.

References oneStateTransitionTypeList, and twoStatesTransitionTypeList.

Referenced by Editor::editTransition().

Here is the caller graph for this function:


Member Data Documentation

bool TransitionManager::instantiated = false [static, private]

Definition at line 65 of file transitionManager.h.

Referenced by getInstance(), and ~TransitionManager().

TransitionManager * TransitionManager::manager = NULL [static, private]

Definition at line 66 of file transitionManager.h.

Referenced by getInstance().

maps type name to createConcreteOneStateTransition function

Definition at line 141 of file transitionManager.h.

Referenced by TransitionManager().

Definition at line 143 of file transitionManager.h.

Referenced by getOneStateTransitionProperties(), and TransitionManager().

maps type name to createConcreteTwoStatesTransition function

Definition at line 151 of file transitionManager.h.

Referenced by TransitionManager().

Definition at line 144 of file transitionManager.h.

Referenced by getTwoStatesTransitionProperties(), and TransitionManager().


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