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

*/

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

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

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


#ifndef REMOTEZTCTRLPAGE_H
#define REMOTEZTCTRLPAGE_H

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


class COutilZT;
class CTCPZTStatus;

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

    COutilZT *mProgramHandle;

    CTextButtonWidget *mDeleteLogFile;
    CTextButtonWidget *mSetZTFunctionsBtn;

    CToggleButtonWidget *mFNFuncToggleBtn, *mFNTKToggleBtn;
    CToggleButtonWidget *mPGFuncToggleBtn, *mPGTKToggleBtn;
    CToggleButtonWidget *mPPFuncToggleBtn, *mPPTKToggleBtn;
    CToggleButtonWidget *mPP2FuncToggleBtn, *mPP2TKToggleBtn;
    CToggleButtonWidget *mZT1FuncToggleBtn, *mZT1TKToggleBtn;
    CToggleButtonWidget *mZT2FuncToggleBtn, *mZT2TKToggleBtn;

    void UpdateDisplay(const CTCPZTStatus *RemoteZTStatus);

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

private:



public slots:
	void ButtonClicked(CTextButtonWidget *);
    void NetworkZTConnected(int);
    void NetworkZTDisconnected(int);
    void ToggleButtonToggled(CToggleButtonWidget *ToggleButton);

//    void ParsingTimerExipred();

};

#endif // REMOTEZTPAGE_H
