Public Member Functions | Protected Member Functions

StateVar Class Reference

#include <stateVar.h>

Inheritance diagram for StateVar:
Collaboration diagram for StateVar:

List of all members.

Public Member Functions

 StateVar (const QPoint &position, Editor *parent, const QString l, const QString n, bool dBorder, bool dim)
virtual int getHeight () const
virtual QString getTypeName () const
virtual int getWidth () const
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
virtual void setLabel (const QString &label)
virtual QPainterPath shape () const
 export support functions

Protected Member Functions

virtual void updateMyPolygon ()
 compute states polygon

Detailed Description

Definition at line 6 of file stateVar.h.


Constructor & Destructor Documentation

StateVar::StateVar ( const QPoint &  position,
Editor parent,
const QString  l,
const QString  n,
bool  dBorder,
bool  dim 
)

all other functionality is in State constructor

Definition at line 8 of file stateVar.cpp.

References updateMyPolygon().

Here is the call graph for this function:


Member Function Documentation

virtual int StateVar::getHeight (  )  const [inline, virtual]

Implements State.

Definition at line 16 of file stateVar.h.

Referenced by paint(), and updateMyPolygon().

Here is the caller graph for this function:

QString StateVar::getTypeName (  )  const [virtual]

Implements State.

Definition at line 16 of file stateVar.cpp.

References State::doubleBorder.

virtual int StateVar::getWidth (  )  const [inline, virtual]

Implements State.

Definition at line 14 of file stateVar.h.

References StringProcessor::getWidth(), S_W, State::stringProcessor, and VAR_STATE_WIDTH_ADDITION.

Referenced by paint(), and updateMyPolygon().

Here is the call graph for this function:

Here is the caller graph for this function:

void StateVar::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
) [virtual]
void StateVar::setLabel ( const QString &  label  )  [virtual]

Reimplemented from State.

Definition at line 49 of file stateVar.cpp.

References State::adjustTransitions(), and updateMyPolygon().

Here is the call graph for this function:

QPainterPath StateVar::shape (  )  const [virtual]

export support functions

implements QGraphicsItems functions

Implements State.

Definition at line 135 of file stateVar.cpp.

References State::myPath.

Referenced by paint().

Here is the caller graph for this function:

void StateVar::updateMyPolygon (  )  [protected, virtual]

compute states polygon

Implements State.

Definition at line 21 of file stateVar.cpp.

References State::doubleBorder, getHeight(), getWidth(), State::m_lineWidth, State::myPath, State::myPolygon, State::stateLineDoubleCoef, State::stateLineDoubleSep, VAR_STATE_R_X, VAR_STATE_R_X_DBL, and VAR_STATE_R_Y.

Referenced by setLabel(), and StateVar().

Here is the call graph for this function:

Here is the caller graph for this function:


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