1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
//
// KBlackBox
//
// A simple game inspired by an emacs module
//
/***************************************************************************
* Copyright (c) 1999-2000, Robert Cimrman *
* cimrman3@students.zcu.cz *
* *
* Copyright (c) 2007, Nicolas Roffet *
* nicolas-kde@roffet.com *
* *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
***************************************************************************/
#include <kapplication.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <kglobal.h>
#include "kbbmainwindow.h"
int main( int argc, char **argv )
{
KAboutData aboutData( "kblackbox", 0, ki18n("KBlackBox"), "0.4.0", ki18n("Find the balls hidden in the black box by shooting laser beams!"), KAboutData::License_GPL, ki18n("(c) 2007, Nicolas Roffet\n(c) 1999-2000, Robert Cimrman"), KLocalizedString(), "http://games.kde.org/kblackbox" );
aboutData.addAuthor(ki18n("Nicolas Roffet"),ki18n("Developer of version 0.4."), "nicolas-kde@roffet.com");
aboutData.addAuthor(ki18n("Robert Cimrman"),ki18n("Original developer"), "cimrman3@students.zcu.cz");
aboutData.addCredit(ki18n("Johann Ollivier Lapeyre"), ki18n("Artist"), "johann.ollivierlapeyre@gmail.com");
KCmdLineArgs::init( argc, argv, &aboutData );
KApplication application;
KGlobal::locale()->insertCatalog( QLatin1String( "libkdegames" ));
if (application.isSessionRestored())
kRestoreMainWindows<KBBMainWindow>();
else {
KBBMainWindow *mainWindow = new KBBMainWindow;
mainWindow->show();
}
return application.exec();
}
|