File indexing completed on 2024-04-21 04:02:28

0001 /*
0002     This file is part of Killbots.
0003 
0004     SPDX-FileCopyrightText: 2006-2009 Parker Coates <coates@kde.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #include "mainwindow.h"
0010 #include "killbots_version.h"
0011 
0012 #include <KLocalizedString>
0013 #include <KAboutData>
0014 #include <KCrash>
0015 #include <KDBusService>
0016 
0017 #include <QCommandLineParser>
0018 #include <QApplication>
0019 
0020 int main(int argc, char **argv)
0021 {
0022     QApplication app(argc, argv);
0023 
0024     KLocalizedString::setApplicationDomain(QByteArrayLiteral("killbots"));
0025 
0026     KAboutData about(QStringLiteral("killbots"), i18n("Killbots"), QStringLiteral(KILLBOTS_VERSION_STRING));
0027     about.setShortDescription(i18n("A KDE game of killer robots and teleportation."));
0028     about.setLicense(KAboutLicense::GPL_V2);
0029     about.setCopyrightStatement(i18n("© 2006-2009, Parker Coates"));
0030     about.addAuthor(i18n("Parker Coates"), i18n("Developer"), QStringLiteral("coates@kde.org"));
0031     about.addCredit(i18n("Mark Rae"), i18n("Author of Gnome Robots. Invented safe teleports, pushing junkheaps and fast robots."), QLatin1String(""), QStringLiteral("https://wiki.gnome.org/Apps/Robots"));
0032     about.setHomepage(QStringLiteral("https://apps.kde.org/killbots"));
0033 
0034     KAboutData::setApplicationData(about);
0035     QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("killbots")));
0036 
0037     KCrash::initialize();
0038 
0039     QCommandLineParser parser;
0040     about.setupCommandLine(&parser);
0041     parser.process(app);
0042     about.processCommandLine(&parser);
0043 
0044     KDBusService service;
0045 
0046     Killbots::MainWindow *mainWindow = new Killbots::MainWindow;
0047     mainWindow->show();
0048 
0049     return app.exec();
0050 }