/******************************************************************************* * * * Société de Transports de Montréal. * * 2012 - 2013 * * * * Projet Zones Tests * * * * * * * *******************************************************************************/ /* Description: Description du fichier si nécessaire. */ /* ************************************************************************** */ /* Revision: ### 20131101 JFM Verision d'origine. ### YYYYMMDD Description du besoin ou du bug Description du changement. */ /* ************************************************************************** */ #ifndef ZT2EQUIPMENTWIDGET_H #define ZT2EQUIPMENTWIDGET_H #include "GlobalDefine.h" #include #include class CZT2EquipmentWidget : public QGraphicsWidget { Q_OBJECT public: CZT2EquipmentWidget(QGraphicsItem *parent = 0); void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ); unsigned int SetState(bool S1,bool PPI,bool PPE); unsigned int SetActivation(bool IsZT2Active); private: bool mS1Activated,mZT2Active,mPPIActivated,mPPEActivated; QGraphicsTextItem *mZT2Label; QRectF mS1Rect,mPPERect,mPPIRect,mRailRect1,mRailRect2; QBrush *mGreenBrush, *mRedBrush, *mHashedBrush; }; #endif // ZT2EQUIPMENTWIDGET_H