moab
main.cpp
Go to the documentation of this file.
00001 #include <qapplication.h>
00002 #include "uiQVDual.h"
00003 #include "MBInterface.hpp"
00004 
00005 MBInterface *gMB = NULL;
00006 
00007 int main( int argc, char ** argv )
00008 {
00009     QApplication a( argc, argv );
00010     uiQVDual w;
00011 
00012     int cur_arg = 1;
00013     if (cur_arg < argc && !strcmp(argv[cur_arg], "-d")) {
00014       w.computeDual = true;
00015       cur_arg++;
00016     }
00017     
00018     w.show();
00019     a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
00020 
00021     if (cur_arg < argc) w.fileOpen(QString(argv[cur_arg]));
00022     
00023     return a.exec();
00024 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines