1/*
2 * Copyright (C) 2000-2005 Stefan Schimanski <schimmi@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the Free
16 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#include <KAboutData>
20#include <KApplication>
21#include <KCmdLineArgs>
22
23#include "mainwindow.h"
24
25#include <klocale.h>
26#include <kglobal.h>
27
28using namespace std;
29
30static const char description[] = I18N_NOOP("KDE Bounce Ball Game");
31static const char version[] = "0.11";
32static const char copyleft[] = I18N_NOOP("(c) 2000-2005, Stefan Schimanski\n(c) 2007, Tomasz Boczkowski");
33
34int main(int argc, char **argv)
35{
36 KAboutData aboutData( "kbounce", 0, ki18n("KBounce"),
37 version, ki18n(description), KAboutData::License_LGPL,
38 ki18n(copyleft), KLocalizedString(), "http://games.kde.org/kbounce" );
39
40 aboutData.addAuthor(ki18n("Stefan Schimanski"), ki18n("Original author"), "schimmi@kde.org");
41 aboutData.addAuthor(ki18n("Sandro Sigala"), ki18n("Highscore"), "ssigala@globalnet.it");
42 aboutData.addAuthor(ki18n("Benjamin Meyer"), ki18n("Contributions"), "ben+kbounce@meyerhome.net");
43 aboutData.addAuthor(ki18n("Tomasz Boczkowski"), ki18n("Port to KDE4. Current maintainer"), "tboczkowski@onet.pl" );
44 aboutData.addCredit(ki18n("Dmitry Suzdalev"), ki18n("Port to QGraphicsView framework"), "dimsuz@gmail.com");
45 aboutData.addCredit(ki18n("Andreas Scherf"), ki18n("Image Background and Fixes"), "ascherfy@gmail.com");
46
47 KCmdLineArgs::init( argc, argv, &aboutData );
48
49 KApplication application;
50 KGlobal::locale()->insertCatalog( QLatin1String( "libkdegames" ));
51
52 if (application.isSessionRestored())
53 RESTORE(KBounceMainWindow)
54 else {
55 KBounceMainWindow *w = new KBounceMainWindow;
56 w->show();
57 }
58 return application.exec();
59}
60
61