00001 /*************************************************************************** 00002 showtextfile.h 00003 ------------------- 00004 begin : Mo 16.03.2009 00005 copyright : (C) 2009 by Andre Simon 00006 email : andre.simon1@gmx.de 00007 ***************************************************************************/ 00008 00009 /* 00010 This file is part of Highlight. 00011 00012 Highlight is free software: you can redistribute it and/or modify 00013 it under the terms of the GNU General Public License as published by 00014 the Free Software Foundation, either version 3 of the License, or 00015 (at your option) any later version. 00016 00017 Highlight is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with Highlight. If not, see <http://www.gnu.org/licenses/>. 00024 */ 00025 00026 #ifndef SHOWTEXTFILE_H 00027 #define SHOWTEXTFILE_H 00028 00029 #include <QtGui/QDialog> 00030 00031 00032 namespace Ui { 00033 class ShowTextFile; 00034 } 00035 00036 class ShowTextFile : public QDialog { 00037 Q_OBJECT 00038 Q_DISABLE_COPY(ShowTextFile) 00039 public: 00040 explicit ShowTextFile(QWidget *parent = 0); 00041 virtual ~ShowTextFile(); 00042 bool setFileName(const QString& fileName); 00043 00044 protected: 00045 virtual void changeEvent(QEvent *e); 00046 00047 private: 00048 Ui::ShowTextFile *m_ui; 00049 00050 private slots: 00051 void on_pushButton_clicked(); 00052 }; 00053 00054 #endif // SHOWTEXTFILE_H