//---------------------------------------------------------------------------
#ifndef viewerH
#define viewerH
//---------------------------------------------------------------------------
#define MAXLINE		100000

#include <QDialog>
#include "ui_viewer.h"

class ViewerOptDialog;

//---------------------------------------------------------------------------
class TextViewer : public QDialog, private Ui::TextViewer
{
    Q_OBJECT

protected:
    void showEvent(QShowEvent*);

    ViewerOptDialog *viewerOptDialog;

public slots:
    void BtnCloseClick();
    void BtnReadClick();
    void BtnOptClick();
    void BtnReloadClick();
    void BtnFindClick();

private:
    QString File;
	
    void UpdateText(void);

public:
	int Option;
    static QColor Color1,Color2;
    static QFont FontD;

    bool Read(const QString &file);
    bool Save(const QString &file);

    explicit TextViewer(QWidget* parent);
};
//---------------------------------------------------------------------------
#endif
