1 | /* |
2 | Copyright 2003 Russell Steffen <rsteffen@bayarea.net> |
3 | Copyright 2003 Stephan Zehetner <s.zehetner@nevox.org> |
4 | Copyright 2006 Dmitry Suzdalev <dimsuz@gmail.com> |
5 | Copyright 2006 Inge Wallin <inge@lysator.liu.se> |
6 | Copyright 2006 Pierre Ducroquet <pinaraf@gmail.com> |
7 | |
8 | This program is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by |
10 | the Free Software Foundation; either version 2 of the License, or |
11 | (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
21 | */ |
22 | |
23 | #include <kapplication.h> |
24 | #include <klocale.h> |
25 | #include <kcmdlineargs.h> |
26 | #include <kaboutdata.h> |
27 | #include <kstandarddirs.h> |
28 | |
29 | #include "mainwin.h" |
30 | |
31 | static const char description[] = I18N_NOOP("Galactic Strategy KDE Game" ); |
32 | #define KONQUEST_VERSION "2.3" |
33 | |
34 | int |
35 | main(int argc, char **argv) |
36 | { |
37 | KAboutData aboutData( "konquest" , 0, ki18n("Konquest" ), |
38 | KONQUEST_VERSION, ki18n(description), KAboutData::License_GPL, |
39 | ki18n("Copyright (c) 1999-2013, Developers" ), KLocalizedString(), "http://games.kde.org/konquest" ); |
40 | |
41 | aboutData.addAuthor(ki18n("Russ Steffen" ), KLocalizedString(), "rsteffen@bayarea.net" ); |
42 | aboutData.addCredit(ki18n("Stephan Zehetner" ), ki18n("Computer/AI Player" ), "s.zehetner@nevox.org" ); |
43 | aboutData.addCredit(ki18n("Dmitry Suzdalev" ), ki18n("Port to KDE4" ), "dimsuz@gmail.com" ); |
44 | aboutData.addCredit(ki18n("Inge Wallin" ), ki18n("Cleaning and bugfixing" ), "inge@lysator.liu.se" ); |
45 | aboutData.addCredit(ki18n("Pierre Ducroquet" ), ki18n("Cleaning and bugfixing, maintenance" ), "pinaraf@gmail.com" ); |
46 | aboutData.addCredit(ki18n("Sean D'Epagnier" ), ki18n("Gameplay Enhancements" ), "geckosenator@gmail.com" ); |
47 | |
48 | KCmdLineArgs::init( argc, argv, &aboutData ); |
49 | |
50 | KApplication a; |
51 | KGlobal::locale()->insertCatalog( QLatin1String( "libkdegames" )); |
52 | |
53 | if (a.isSessionRestored()) |
54 | RESTORE(MainWindow) |
55 | else { |
56 | MainWindow *w = new MainWindow; |
57 | w->show(); |
58 | } |
59 | return a.exec(); |
60 | } |
61 | |