ZT/sources/GuiElements/ZT1EquipmentWidget.h

53 lines
1.9 KiB
C++

/*******************************************************************************
* *
* Société de Transports de Montréal. *
* 2012 - 2013 *
* *
* Projet Zones Tests *
* *
* *
* *
*******************************************************************************/
/*
Description:
Description du fichier si nécessaire.
*/
/* ************************************************************************** */
/* Revision:
### YYYMMDD JFM
Verision d'origine.
### YYYYMMDD Description du besoin ou du bug
Description du changement.
*/
/* ************************************************************************** */
#ifndef ZT1EQUIPMENTWIDGET_H
#define ZT1EQUIPMENTWIDGET_H
#include "GlobalDefine.h"
#include <QGraphicsWidget>
#include <QBrush>
class CZT1EquipmentWidget : public QGraphicsWidget
{
Q_OBJECT
public:
CZT1EquipmentWidget(QGraphicsItem *parent = 0);
void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
unsigned int SetState(bool S1, bool S2, bool FN, bool PI, bool PE,bool PPI,bool PPE);
unsigned int SetActivation(bool IsZT1Active);
QGraphicsTextItem *mZT1Label;
private:
bool mS1Activated,mS2Activated,mFNActivated,mPGEActivated,mPGIActivated,mZT1Active,mPPIActivated,mPPEActivated;
QRectF mS1Rect,mS2Rect,mFNRect1,mFNRect2,mPGERect,mPGIRect,mPPERect,mPPIRect;
QBrush *mGreenBrush, *mRedBrush, *mHashedBrush;
};
#endif // ZT1EQUIPMENTWIDGET_H