75 lines
2.2 KiB
C++
75 lines
2.2 KiB
C++
/*******************************************************************************
|
|
* *
|
|
* 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>
|
|
#include <QPlainTextEdit>
|
|
|
|
class CZoneTest;
|
|
|
|
class CZTLogViewerPage : public CGuiPage
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CZTLogViewerPage(QGraphicsWidget *Parent = 0, bool Embedded = false);
|
|
|
|
void SetZTLogText(QString Text, QString FocusText = QString());
|
|
void ScrollToLine(int Line);
|
|
|
|
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;
|
|
// QTextEdit *mZTLogTextZone;
|
|
QPlainTextEdit *mZTLogTextZone;
|
|
QString mZTLogText;
|
|
bool mIsEmbedded;
|
|
|
|
void LoadAndDisplayZTLog();
|
|
|
|
|
|
public slots:
|
|
void ButtonClicked(CTextButtonWidget *);
|
|
|
|
};
|
|
|
|
#endif // ZTLOGVIEWERPAGE_H
|