/*******************************************************************************
*                                                                              *
* Société de Transports de Montréal.                                    	   *
* 2012                                                                         *
*                                                                              *
* Projet Zones Tests                                                           *
*                                                                              *
*                                                                              *
*                                                                              *
*******************************************************************************/
/*
    Description:
    Description du fichier si nécessaire.

*/

/* ************************************************************************** */
/* Revision:
### 20131021 JFM
    Verision d'origine.

### YYYMMDD Description du besoin ou du bug
    Description du changement.
 */

/* ************************************************************************** */


#ifndef PROGRESSBARPAGE_H
#define PROGRESSBARPAGE_H

#include "GlobalDefine.h"
#include <QGraphicsWidget>
#include "Guipage.h"
#include <QString>
#include <QProgressBar>



//class COutilZT;

class CProgressBarPage : public CGuiPage
{
Q_OBJECT
public:
    CProgressBarPage(QGraphicsWidget *Parent = 0);
    ~CProgressBarPage();

//    COutilZT *mProgramHandle;

	virtual void resizeEvent(QGraphicsSceneResizeEvent *event);
	virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
	virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);

    void SetProgressBarRange(int range);
    void Tick();
    void Reset();
    void SetMiscLabel(QString Label);
    void ClearMiscLabel();
    void SetTitle(QString Title);



private:

    QGraphicsRectItem *mBackgroundRect;
    QGraphicsTextItem *mMiscLabel, *mTitle;
    QProgressBar *mProgressBar;
    int mCurValue;



public slots:
//	void ButtonClicked(CTextButtonWidget *);

};

#endif // PROGRESSBARPAGE_H
