00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "mainwindow.h"
00021
00022 #include <KApplication>
00023 #include <KAboutData>
00024 #include <KCmdLineArgs>
00025
00026 #include "core/gluon_global.h"
00027
00028
00029 #include <engine/gluon_engine_metatypes.h>
00030
00031 int main( int argc, char** argv )
00032 {
00033 KAboutData aboutData( "gluoncreator", NULL,
00034 ki18n( "Gluon Creator" ), GLUON_VERSION_STRING.toUtf8(),
00035 ki18n(( QString( "A game creation tool.\nUsing %1 Version %2" ).arg( GLUON_PLATFORM_NAME ).arg( GLUON_VERSION_STRING ) ).toUtf8() ),
00036 KAboutData::License_LGPL_V2,
00037 ki18n( "Copyright 2009-2010 by multiple contributors." ),
00038 KLocalizedString(),
00039 "http://gluon.gamingfreedom.org"
00040 );
00041 aboutData.setProgramIconName( "gluon_creator" );
00042 aboutData.addAuthor( ki18n( "Arjen Hiemstra" ), ki18n( "Gluon Core, Gluon Graphics, Gluon Engine, Gluon Creator" ), "" );
00043 aboutData.addAuthor( ki18n( "Dan Leinir Tuthra Jensen" ), ki18n( "Gluon Core, Gluon Engine, Gluon Creator" ), "" );
00044 aboutData.addAuthor( ki18n( "Sacha Schutz" ), ki18n( "Gluon Graphics,Gluon Audio,Gluon Input" ), "" );
00045 aboutData.addAuthor( ki18n( "Guillaume Martres" ), ki18n( "Gluon Audio, Gluon Graphics" ), "" );
00046 aboutData.addAuthor( ki18n( "Kim Jung Nissen" ), ki18n( "Gluon Input, Mac compatibility" ), "" );
00047 aboutData.addAuthor( ki18n( "Rivo Laks" ), ki18n( "Gluon Graphics through KGLLIB" ), "" );
00048
00049 KCmdLineArgs::init( argc, argv, &aboutData );
00050 KCmdLineOptions options;
00051 options.add( "+file", ki18n( "GDL file to open" ) );
00052 KCmdLineArgs::addCmdLineOptions( options );
00053
00054 KApplication app;
00055
00056
00057
00058 KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
00059
00060 GluonCreator::MainWindow* window;
00061 if( args->count() )
00062 {
00063 window = new GluonCreator::MainWindow( args->arg( 0 ) );
00064 }
00065 else
00066 {
00067 window = new GluonCreator::MainWindow();
00068 }
00069 window->show();
00070
00071 app.exec();
00072 }