00001
00007
00008
00009
00036
00037
00038 #include "win.h"
00039 #include "ork.h"
00040
00041 #include <QObject>
00042 #include <QApplication>
00043 #include <QSplashScreen>
00044
00045 int main( int argc, char **argv )
00046 {
00047 Q_INIT_RESOURCE( ork ) ;
00048
00049 QApplication *app = new QApplication( argc, argv ) ;
00050 app->setApplicationName( "OrK" ) ;
00051 app->setApplicationVersion( OrK::Version ) ;
00052 app->setOrganizationDomain( "http://ork.sourceforge.net" ) ;
00053 app->setOrganizationName( "OrK dev team" ) ;
00054 app->setWindowIcon( QIcon(":img/ork.svg") ) ;
00055
00056 QSplashScreen *splash = new QSplashScreen( QPixmap( ":img/splash.svg" ) ) ;
00057 splash->show() ;
00058 app->processEvents() ;
00059
00060 splash->showMessage( QObject::trUtf8( "Emerging from chaos..." ), Qt::AlignBottom ) ;
00061
00062 Win *win = new Win( splash ) ;
00063
00064 splash->finish( win ) ;
00065
00066 return app->exec() ;
00067 }