• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

apps/dgv/dgv.cpp

Go to the documentation of this file.
00001 
00022 #include <QApplication>
00023 
00024 #include "DGVMainVTK.h"
00025 
00026 int main(int argc, char *argv[])
00027 {
00028     QApplication app(argc,argv);
00029     QPixmap *pixmap = new QPixmap(":resources/dgv_logo.png");
00030     QPixmap *icon = new QPixmap(":resources/dgv_icon.png");
00031     QSplashScreen *splash = new QSplashScreen(*pixmap);
00032     bool success = false;
00033 
00034     splash->show();
00035     app.processEvents();
00036     app.setWindowIcon(QIcon(*icon));
00037     //splash.showMessage("Loading ...");
00038     app.processEvents();
00039 
00040     DGVMainVTK Main;
00041     app.processEvents();
00042     Main.setWindowTitle("DGV");
00043     Main.show();
00044     app.processEvents();
00045 
00047     QStringList files = app.arguments();
00048     app.processEvents();
00049     files.erase(files.begin()); //First element is the program name
00050     app.processEvents();
00051     Main.loadFiles(files);
00052     app.processEvents();
00053     splash->finish(&Main);
00054 
00055     success = app.exec();
00056 
00057     delete pixmap;
00058     delete icon;
00059     delete splash;
00060 
00061     return success;
00062 }

Generated on Wed Sep 8 2010 01:36:51 for DGV by  doxygen 1.7.1