/*******************************************************************************
*                                                                              *
* Société de Transports de Montréal.                                    	   *
* 2012                                                                         *
*                                                                              *
* Projet Zones Tests                                                           *
*                                                                              *
*                                                                              *
*                                                                              *
*******************************************************************************/
/*
    Description:
	Page permettant de visualiser le fichier ZTLog.txt

*/

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

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

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


#ifndef ZTLOGVIEWERPAGE_H
#define ZTLOGVIEWERPAGE_H

#include "GlobalDefine.h"
#include <QGraphicsWidget>
#include "Guipage.h"
#include <QString>
#include "TextButtonWidget.h"
#include <QTextEdit>

class CZoneTest;

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

	CZoneTest *mProgramHandle;

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


private:
	QGraphicsRectItem *mBackgroundRect;
	CTextButtonWidget *mCancelButton, *mDestroyZTLogBtn;
	QTextEdit *mZTLogTextZone;

	void LoadAndDisplayZTLog();


public slots:
	void ButtonClicked(CTextButtonWidget *);

};

#endif // ZTLOGVIEWERPAGE_H
