Go to the documentation of this file.00001 #ifndef _TWOSTATESTRANSITION_H_4325239509045_
00002 #define _TWOSTATESTRANSITION_H_4325239509045_
00003
00004 #include "transition.h"
00005
00006 class TwoStatesTransition : public Transition
00007 {
00008 public:
00009 TwoStatesTransition(Editor *parent, State *ss, State *es,
00010 bool left, bool dimmed)
00011 : Transition(parent, ss, es, dimmed), leftOriented(left)
00012 {}
00013
00014 virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00015
00016 virtual QString getTypeNameSuffix() const { return leftOriented ? "L" : "R"; }
00017
00018 virtual void assign();
00019 virtual void unassign();
00020
00021 bool isLeftOriented();
00022 void setLeftOriented(bool leftOriented);
00023
00024 protected:
00025 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
00026
00027 bool leftOriented;
00028 };
00029
00030 #endif