#include <twoStatesTransition.h>
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 |
Definition at line 6 of file twoStatesTransition.h.
TwoStatesTransition::TwoStatesTransition | ( | Editor * | parent, | |
State * | ss, | |||
State * | es, | |||
bool | left, | |||
bool | dimmed | |||
) | [inline] |
Definition at line 9 of file twoStatesTransition.h.
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.
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().
bool TwoStatesTransition::isLeftOriented | ( | ) |
Definition at line 49 of file twoStatesTransition.cpp.
References leftOriented.
Referenced by Editor::editTransition(), and TwoStatesTransitionEditCommand::TwoStatesTransitionEditCommand().
void TwoStatesTransition::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, virtual] |
Implements Transition.
Definition at line 15 of file twoStatesTransition.cpp.
References DBGLOG_ME, Transition::editor, Editor::editTransition(), eMouseDoubleClick, eMouseRightClick, Transition::m_lastMouseClickType, Transition::setChecked(), and Editor::showPopup().
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().
void TwoStatesTransition::unassign | ( | ) | [virtual] |
Implements Transition.
Definition at line 37 of file twoStatesTransition.cpp.
References Transition::endState, State::removeTransition(), and Transition::startState.
bool TwoStatesTransition::leftOriented [protected] |
Reimplemented from Transition.
Definition at line 27 of file twoStatesTransition.h.
Referenced by TransitionArc::adjust(), getTypeNameSuffix(), TransitionVArc::getVCCommand(), isLeftOriented(), TransitionVCurve::setLabelPosition(), TransitionVArc::setLabelPosition(), TransitionLine::setLabelPosition(), TransitionArc::setLabelPosition(), setLeftOriented(), TransitionArc::TransitionArc(), TransitionVArc::TransitionVArc(), and TransitionVCurve::TransitionVCurve().