/* -------------------------------------------------------------
KDE Tuberling
Main program
mailto : e . bischoff @ noos . fr
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
# include <tdeapplication.h>
# include <kimageio.h>
# include <tdelocale.h>
# include <tdecmdlineargs.h>
# include <tdeaboutdata.h>
# include "toplevel.h"
static TDECmdLineOptions options [ ] = {
{ " +<tuberling-file> " , I18N_NOOP ( " Potato to open " ) , 0 } ,
TDECmdLineLastOption
} ;
static const char description [ ] = I18N_NOOP ( " Potato game for kids " ) ;
static const char text [ ] = I18N_NOOP ( " A program by Eric Bischoff <e.bischoff@noos.fr> \n and John Calhoun. \n \n This program is dedicated to my daughter Sunniva. " ) ;
static const char version [ ] = " 0.4 " ;
// Main function
int main ( int argc , char * argv [ ] )
{
TDEAboutData aboutData ( " ktuberling " , I18N_NOOP ( " KTuberling " ) ,
version , description , TDEAboutData : : License_GPL ,
" (c) 1999-2003, The KTuberling Developers " , text ) ;
aboutData . addAuthor ( " Eric Bischoff " , I18N_NOOP ( " Developer " ) , " e.bischoff@noos.fr " ) ;
aboutData . addAuthor ( " John Calhoun " , I18N_NOOP ( " Original concept and artwork " ) ) ;
aboutData . addCredit ( " Agnieszka Czajkowska " , I18N_NOOP ( " New artwork " ) , " agnieszka@imagegalaxy.de " ) ;
aboutData . addCredit ( " Bas Willems " , I18N_NOOP ( " New artwork " ) , " cybersurfer@euronet.nl " ) ;
aboutData . addCredit ( " Roger Larsson " , I18N_NOOP ( " Sounds tuning " ) , " roger.larsson@norran.net " ) ;
TDECmdLineArgs : : init ( argc , argv , & aboutData ) ;
TDECmdLineArgs : : addCmdLineOptions ( options ) ;
TDEApplication app ;
TDEGlobal : : locale ( ) - > insertCatalogue ( " libtdegames " ) ;
KImageIO : : registerFormats ( ) ;
TopLevel * toplevel = 0 ;
if ( app . isRestored ( ) )
RESTORE ( TopLevel )
else {
toplevel = new TopLevel ( ) ;
toplevel - > show ( ) ;
TDECmdLineArgs * args = TDECmdLineArgs : : parsedArgs ( ) ;
if ( args - > count ( ) )
toplevel - > open ( args - > url ( 0 ) ) ;
args - > clear ( ) ;
}
return app . exec ( ) ;
}