• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

C:/CVUT/diplomka/Automata_editor/sources/stateVar.h

Go to the documentation of this file.
00001 #ifndef _STATEVAR_H_532436342435_
00002 #define _STATEVAR_H_532436342435_
00003 
00004 #include "state.h"
00005 
00006 class StateVar : public State
00007 {
00008 public:
00009     StateVar(const QPoint &position, Editor *parent, const QString l,
00010              const QString n, bool dBorder, bool dim);
00011         
00012     virtual QString getTypeName() const;
00013     
00014     virtual int getWidth() const {return S_W > stringProcessor->getWidth() + VAR_STATE_WIDTH_ADDITION ?
00015                                          S_W : stringProcessor->getWidth() + VAR_STATE_WIDTH_ADDITION;}
00016     virtual int getHeight() const {return S_H;}
00017 
00018     virtual void setLabel(const QString &label);
00019 
00020     //! export support functions
00021     //virtual QString getEPS() const;
00022 
00023     //! implements QGraphicsItems functions
00024     virtual QPainterPath shape() const;
00025     virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00026 
00027 protected:
00028     virtual void updateMyPolygon();
00029 };
00030 
00031 #endif //_STATEVAR_H_532436342435_

Generated on Tue Jan 4 2011 03:03:24 for Autoamata editor by  doxygen 1.7.0