"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/src/gui-qt/showtextfile.h" (12 May 2020, 1703 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "showtextfile.h": 3.52_vs_3.53.

    1 /***************************************************************************
    2                                showtextfile.h
    3                              -------------------
    4     begin                : Mo 16.03.2009
    5     copyright            : (C) 2009 by Andre Simon
    6     email                : a.simon@mailbox.org
    7  ***************************************************************************/
    8 
    9 /*
   10 This file is part of Highlight.
   11 
   12 Highlight is free software: you can redistribute it and/or modify
   13 it under the terms of the GNU General Public License as published by
   14 the Free Software Foundation, either version 3 of the License, or
   15 (at your option) any later version.
   16 
   17 Highlight is distributed in the hope that it will be useful,
   18 but WITHOUT ANY WARRANTY; without even the implied warranty of
   19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   20 GNU General Public License for more details.
   21 
   22 You should have received a copy of the GNU General Public License
   23 along with Highlight.  If not, see <http://www.gnu.org/licenses/>.
   24 */
   25 
   26 #ifndef SHOWTEXTFILE_H
   27 #define SHOWTEXTFILE_H
   28 
   29 #include <QtGlobal>
   30 
   31 #if (QT_VERSION < QT_VERSION_CHECK(5,0,0))
   32 #include <QtGui/QDialog>
   33 #else
   34 #include <QtWidgets/QDialog>
   35 #endif
   36 
   37 namespace Ui {
   38     class ShowTextFile;
   39 }
   40 
   41 class ShowTextFile : public QDialog {
   42     Q_OBJECT
   43     Q_DISABLE_COPY(ShowTextFile)
   44 public:
   45     explicit ShowTextFile(QWidget *parent = 0);
   46     virtual ~ShowTextFile();
   47     bool setFileName(const QString& fileName);
   48     void setText(const QString& content, const QString& title);
   49 
   50 protected:
   51     virtual void changeEvent(QEvent *e);
   52 
   53 private:
   54     Ui::ShowTextFile *m_ui;
   55 
   56 private slots:
   57     void on_pushButton_clicked();
   58 };
   59 
   60 #endif // SHOWTEXTFILE_H