main.cpp
Go to the documentation of this file.
00001 
00008 /*****************************************************************************
00009 ** Includes
00010 *****************************************************************************/
00011 
00012 #include <QtGui>
00013 #include <QApplication>
00014 #include "../include/rocon_qorchestra/main_window.hpp"
00015 #include <ros/ros.h>
00016 /*****************************************************************************
00017 ** Main
00018 *****************************************************************************/
00019 
00020 int main(int argc, char **argv)
00021 {
00022   /*********************
00023   ** Qt
00024   **********************/
00025   QApplication app(argc, argv);
00026 
00027   /*
00028    * Start splash screen to show off a bit
00029    */
00030   QPixmap pixmap(":/images/rocon-logo-blue-large.png");
00031   QSplashScreen splash(pixmap);
00032   splash.show();
00033   app.processEvents();
00034   ros::Time::init();
00035   ros::Duration(1.5).sleep(); // let's enjoy it a while
00036 
00037   rocon_qorchestra::MainWindow w(argc,argv);
00038   w.show();
00039   app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
00040 
00041   splash.finish(&w); // enough, let's close it again
00042 
00043   int result = app.exec();
00044 
00045         return result;
00046 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


graveyard_rocon_qorchestra
Author(s): Daniel Stonier
autogenerated on Wed Jan 23 2013 13:42:01