59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
/*******************************************************************************
|
|
* *
|
|
* Société de Transports de Montréal. *
|
|
* 2012 - 2013 *
|
|
* *
|
|
* Projet Zones Tests *
|
|
* *
|
|
* *
|
|
* *
|
|
*******************************************************************************/
|
|
/*
|
|
Description:
|
|
Description du fichier si nécessaire.
|
|
|
|
*/
|
|
|
|
/* ************************************************************************** */
|
|
/* Revision:
|
|
### 20131022 JFM
|
|
Verision d'origine.
|
|
|
|
### YYYYMMDD Description du besoin ou du bug
|
|
Description du changement.
|
|
*/
|
|
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef EVENTSBAR_H
|
|
#define EVENTSBAR_H
|
|
|
|
#include "GlobalDefine.h"
|
|
#include <QGraphicsWidget>
|
|
#include <QList>
|
|
#include "EventItem.h"
|
|
#include "Event.h"
|
|
|
|
class CEventsBar : public QGraphicsWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CEventsBar(QGraphicsItem *Parent = 0);
|
|
|
|
// void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
|
|
QList<CEvent*> *mEventsList;
|
|
void UpdateEventsList();
|
|
|
|
|
|
private:
|
|
|
|
QList<CEventItem*> mEventsItemList;
|
|
void UpdateDisplay();
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif // EVENTSBAR_H
|