"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/src/gui-qt/io_report.cpp" (12 May 2020, 2083 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.

    1 /***************************************************************************
    2                                io_report.cpp
    3                              -------------------
    4     begin                : Mo 16.03.2009
    5     copyright            : (C) 2009-2018 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 #include "io_report.h"
   27 #include "ui_io_report.h"
   28 
   29 io_report::io_report(QWidget *parent) :
   30     QDialog(parent),
   31     m_ui(new Ui::io_report)
   32 {
   33     m_ui->setupUi(this);
   34 }
   35 
   36 io_report::~io_report()
   37 {
   38     delete m_ui;
   39 }
   40 
   41 void io_report::changeEvent(QEvent *e)
   42 {
   43     switch (e->type()) {
   44     case QEvent::LanguageChange:
   45         m_ui->retranslateUi(this);
   46         break;
   47     default:
   48         break;
   49     }
   50 }
   51 
   52 void io_report::addInputErrors(QStringList & list)
   53 {
   54     m_ui->listInputErrors->clear();
   55     m_ui->listInputErrors->addItems(list);
   56 }
   57 
   58 void io_report::addOutputErrors(QStringList & list)
   59 {
   60     m_ui->listOutputErrors->clear();
   61     m_ui->listOutputErrors->addItems(list);
   62 }
   63 void io_report::addReformatErrors(QStringList & list)
   64 {
   65     m_ui->listReformatErrors->clear();
   66     m_ui->listReformatErrors->addItems(list);
   67 }
   68 void io_report::addSyntaxTestErrors(QStringList & list)
   69 {
   70     m_ui->listSyntaxErrors->clear();
   71     m_ui->listSyntaxErrors->addItems(list);
   72 }
   73 
   74 bool io_report::removeInputErrorFiles()
   75 {
   76     return m_ui->cbRemoveFiles->isChecked();
   77 }