/***************************************************************************
                               showtextfile.h
                             -------------------
    begin                : Mo 16.03.2009
    copyright            : (C) 2009 by Andre Simon
    email                : a.simon@mailbox.org
 ***************************************************************************/

/*
This file is part of Highlight.

Highlight is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Highlight is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Highlight.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef SHOWTEXTFILE_H
#define SHOWTEXTFILE_H

#include <QtGlobal>

#if (QT_VERSION < QT_VERSION_CHECK(5,0,0))
#include <QtGui/QDialog>
#else
#include <QtWidgets/QDialog>
#endif

namespace Ui {
    class ShowTextFile;
}

class ShowTextFile : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(ShowTextFile)
public:
    explicit ShowTextFile(QWidget *parent = 0);
    virtual ~ShowTextFile();
    bool setFileName(const QString& fileName);
    void setText(const QString& content, const QString& title);

protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::ShowTextFile *m_ui;

private slots:
    void on_pushButton_clicked();
};

#endif // SHOWTEXTFILE_H
