File indexing completed on 2024-10-13 03:44:25
0001 /* 0002 SPDX-FileCopyrightText: 2005 Thomas Nagy <tnagyemail-mail@yahoo.fr> 0003 SPDX-FileCopyrightText: 2007-2008 Fela Winkelmolen <fela.kde@gmail.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "mainwindow.h" 0009 #include "knetwalk_version.h" 0010 0011 #include <KAboutData> 0012 #include <KCrash> 0013 #include <KLocalizedString> 0014 #include <KDBusService> 0015 0016 #include <QApplication> 0017 #include <QCommandLineParser> 0018 0019 int main(int argc, char ** argv) 0020 { 0021 QApplication app(argc, argv); 0022 0023 KLocalizedString::setApplicationDomain(QByteArrayLiteral("knetwalk")); 0024 0025 KAboutData about(QStringLiteral("knetwalk"), i18n("KNetWalk"), 0026 QStringLiteral(KNETWALK_VERSION_STRING), i18n("KNetWalk, a game for system administrators."), 0027 KAboutLicense::GPL, i18n("(C) 2004-2005 Andi Peredri, ported to KDE by Thomas Nagy\n" 0028 "(C) 2007-2008 Fela Winkelmolen\n" 0029 "(C) 2013 Ashwin Rajeev"), QString(), 0030 QStringLiteral("https://apps.kde.org/knetwalk")); 0031 0032 about.addAuthor(i18n("Andi Peredri"), 0033 i18n("original author"), 0034 QStringLiteral("andi@ukr.net")); 0035 0036 about.addAuthor(i18n("Thomas Nagy"), 0037 i18n("KDE port"), 0038 QStringLiteral("tnagy2^8@yahoo.fr")); 0039 0040 about.addAuthor(i18n("Ashwin Rajeev"), 0041 i18n("Port to QtQuick"), 0042 QStringLiteral("ashwin_rajeev@hotmail.com")); 0043 0044 about.addCredit(i18n("Eugene Trounev"), 0045 i18n("icon design"), 0046 QStringLiteral("eugene.trounev@gmail.com")); 0047 0048 about.addCredit(i18n("Brian Croom"), 0049 i18n("Port to use the QGraphicsView framework"), 0050 QStringLiteral("brian.s.croom@gmail.com")); 0051 0052 about.setProductName(QByteArray("knetwalk")); 0053 0054 KAboutData::setApplicationData(about); 0055 0056 QCommandLineParser parser; 0057 about.setupCommandLine(&parser); 0058 parser.process(app); 0059 about.processCommandLine(&parser); 0060 0061 KCrash::initialize(); 0062 KDBusService service; 0063 0064 app.setWindowIcon(QIcon::fromTheme(QStringLiteral("knetwalk"))); 0065 0066 MainWindow* window = new MainWindow; 0067 window->show(); 0068 0069 return app.exec(); 0070 } 0071