"Fossies" - the Fresh Open Source Software Archive

Member "ansifilter-2.18/src/qt-gui/main.cpp" (30 Jan 2021, 1437 Bytes) of package /linux/privat/ansifilter-2.18.tar.bz2:


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. For more information about "main.cpp" see the Fossies "Dox" file reference documentation.

    1 /***************************************************************************
    2                           main.cpp  -  description
    3                              -------------------
    4     copyright            : (C) 2007 by Andre Simon
    5     email                : andre.simon1@gmx.de
    6  ***************************************************************************/
    7 
    8 /*
    9 This file is part of ANSIFilter.
   10 
   11 ANSIFilter is free software: you can redistribute it and/or modify
   12 it under the terms of the GNU General Public License as published by
   13 the Free Software Foundation, either version 3 of the License, or
   14 (at your option) any later version.
   15 
   16 ANSIFilter is distributed in the hope that it will be useful,
   17 but WITHOUT ANY WARRANTY; without even the implied warranty of
   18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   19 GNU General Public License for more details.
   20 
   21 You should have received a copy of the GNU General Public License
   22 along with ANSIFilter.  If not, see <http://www.gnu.org/licenses/>.
   23 */
   24 
   25 #include <QtGlobal>
   26 
   27 #if (QT_VERSION < QT_VERSION_CHECK(5,0,0))
   28 #include <QApplication>
   29 #include <QDialog>
   30 #else
   31 #include <QtWidgets/QApplication>
   32 #include <QtWidgets/QDialog>
   33 #endif
   34 
   35 #include "mydialog.h"
   36 
   37 int main(int argc, char *argv[])
   38 {
   39     QApplication app(argc, argv);
   40     MyDialog d(0, Qt::Window);
   41 
   42     if (argc>1) d.setInputFileName(argv[1]);
   43     d.show();
   44     return app.exec();
   45 }