/*******************************************************************************
*                                                                              *
* 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 OPTIONSPAGE_H
#define OPTIONSPAGE_H

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


class CZoneTest;

class COptionsPage : public CGuiPage
{
Q_OBJECT
public:
	COptionsPage(QGraphicsWidget *Parent = 0);
	CPushButton *mToolsPushButton;


	CZoneTest *mProgramHandle;

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

private:
	CZTSimulator *mZTSimulatorPtr;
	QGraphicsRectItem *mBackgroundRect;
	CTextButtonWidget *mZTFunctionsButton;
	CTextButtonWidget *mZTMaintenanceModeButton;
	CTextButtonWidget *mZTEngineeringButton;
	CTextButtonWidget *mZTGeneralSettingsButton;
    CTextButtonWidget *mModbusSettingsButton;
    CTextButtonWidget *mSEIModbusSettingsButton;
    CTextButtonWidget *mZTLogViewButton;
    CTextButtonWidget *mCancelButton;


public slots:
	void ButtonClicked(CTextButtonWidget *);

};

#endif // OPTIONSPAGE_H
