/*******************************************************************************
*                                                                              *
* 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 "TextButtonWidget.h"
#include "ZTData.h"
#include "QLineEdit"

class COutilZT;

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


    COutilZT *mProgramHandle;

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

    void SetLogsDataPath(QString Path);

    unsigned int SetSettings(CSettingsData *SettingsData);
    void EnableEngineeringMode();

    QGraphicsTextItem *mLogsPathText;

private:

    QGraphicsRectItem *mBackgroundRect;
    CTextButtonWidget *mLogDataDirDialogButton;
	CTextButtonWidget *mCancelButton;
    CTextButtonWidget *mApplyNetworkSettingsBtn;



    QList<QLineEdit*> mIpAddressList;
    CSettingsData *mSettings;


public slots:
	void ButtonClicked(CTextButtonWidget *);

};

#endif // OPTIONSPAGE_H
