Public Member Functions | Protected Member Functions | Protected Attributes

TwoStatesTransition Class Reference

#include <twoStatesTransition.h>

Inheritance diagram for TwoStatesTransition:
Collaboration diagram for TwoStatesTransition:

List of all members.

Public Member Functions

 TwoStatesTransition (Editor *parent, State *ss, State *es, bool left, bool dimmed)
virtual void assign ()
 Assign to all referenced states (to theirs trList).
virtual QString getTypeNameSuffix () const
bool isLeftOriented ()
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void setLeftOriented (bool leftOriented)
virtual void unassign ()

Protected Member Functions

virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)

Protected Attributes

bool leftOriented

Detailed Description

Definition at line 6 of file twoStatesTransition.h.


Constructor & Destructor Documentation

TwoStatesTransition::TwoStatesTransition ( Editor parent,
State ss,
State es,
bool  left,
bool  dimmed 
) [inline]

Definition at line 9 of file twoStatesTransition.h.


Member Function Documentation

void TwoStatesTransition::assign (  )  [virtual]

Assign to all referenced states (to theirs trList).

Implements Transition.

Definition at line 31 of file twoStatesTransition.cpp.

References State::addTransition(), Transition::endState, and Transition::startState.

Here is the call graph for this function:

virtual QString TwoStatesTransition::getTypeNameSuffix (  )  const [inline, virtual]

Reimplemented from Transition.

Definition at line 16 of file twoStatesTransition.h.

References leftOriented.

Referenced by TransitionVCurve::getVCCommand(), TransitionVArc::getVCCommand(), TransitionLine::getVCCommand(), TransitionArc::getVCCommand(), and Editor::showPopup().

Here is the caller graph for this function:

bool TwoStatesTransition::isLeftOriented (  ) 

Definition at line 49 of file twoStatesTransition.cpp.

References leftOriented.

Referenced by Editor::editTransition(), and TwoStatesTransitionEditCommand::TwoStatesTransitionEditCommand().

Here is the caller graph for this function:

void TwoStatesTransition::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event  )  [protected, virtual]
void TwoStatesTransition::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
) [virtual]

Reimplemented from Transition.

Definition at line 9 of file twoStatesTransition.cpp.

References Transition::endPoint, and Transition::startPoint.

void TwoStatesTransition::setLeftOriented ( bool  leftOriented  ) 

Definition at line 43 of file twoStatesTransition.cpp.

References Transition::adjust(), and leftOriented.

Referenced by TwoStatesTransitionEditCommand::redo(), and TwoStatesTransitionEditCommand::undo().

Here is the call graph for this function:

Here is the caller graph for this function:

void TwoStatesTransition::unassign (  )  [virtual]

Implements Transition.

Definition at line 37 of file twoStatesTransition.cpp.

References Transition::endState, State::removeTransition(), and Transition::startState.

Here is the call graph for this function:


Member Data Documentation


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