kgoldrunner
main.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <kapplication.h>
00021 #include <kaboutdata.h>
00022 #include <kcmdlineargs.h>
00023 #include <klocale.h>
00024 #include "kgrconsts.h"
00025 #include "kgoldrunner.h"
00026
00027 static const char description[] =
00028 I18N_NOOP("KGoldrunner is a game of action and puzzle solving");
00029
00030 static const char version[] = "3.0";
00031
00032 int main (int argc, char **argv)
00033 {
00034 KAboutData about("kgoldrunner", 0, ki18n("KGoldrunner" ),
00035 version, ki18n(description),
00036 KAboutData::License_GPL,
00037 ki18n("(C) 2003 Ian Wadham and Marco Krüger"));
00038 about.addAuthor( ki18n("Ian Wadham"), ki18n("Current author"),
00039 "ianw2@optusnet.com.au" );
00040 about.addAuthor( ki18n("Marco Krüger"), ki18n("Original author"),
00041 "grisuji@gmx.de" );
00042 about.addCredit(ki18n("Mauricio Piacentini"),
00043 ki18n("Port to KDE4, Qt4 and KGameCanvas classes"),
00044 "mauricio@tabuleiro.com");
00045 about.addCredit(ki18n("Maurizio Monge"),
00046 ki18n("KGameCanvas classes for KDE4"),
00047 "maurizio.monge@gmail.com");
00048 about.addCredit(ki18n("Mauricio Piacentini"),
00049 ki18n("Artwork for runners and default theme"),
00050 "mauricio@tabuleiro.com");
00051 about.addCredit(ki18n("Johann Ollivier Lapeyre"),
00052 ki18n("Artwork for bars and ladders"),
00053 "johann.ollivierlapeyre@gmail.com");
00054 about.addCredit(ki18n("Eugene Trounev"),
00055 ki18n("Artwork for background of Geek City theme"),
00056 "irs_me@hotmail.com");
00057 about.addCredit(ki18n("Luciano Montanaro"),
00058 ki18n("Nostalgia themes, improvements to runners, "
00059 "multiple-backgrounds feature, fade-in/fade-out "
00060 "feature and several other ideas"),
00061 "mikelima@cirulla.net");
00062 about.addCredit(ki18n("Eugene Trounev"),
00063 ki18n("Artwork for the Treasure of Egypt theme"),
00064 "irs_me@hotmail.com");
00065
00066 KCmdLineArgs::init (argc, argv, &about);
00067
00068 KApplication app;
00069
00070 if (app.isSessionRestored())
00071 {
00072 RESTORE(KGoldrunner);
00073 return app.exec();
00074 }
00075 else
00076 {
00077 KGoldrunner * widget = new KGoldrunner;
00078 if (widget->startedOK()) {
00079 widget->show();
00080 return app.exec();
00081 }
00082 }
00083 }