Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "Step6.h"
00019 #include "QmitkRegisterClasses.h"
00020
00021 #include "mitkCoreExtObjectFactory.h"
00022
00023 #include "mitkDataStorage.h"
00024
00025 #include <QApplication>
00026 #include <itksys/SystemTools.hxx>
00027 int main(int argc, char* argv[])
00028 {
00029 RegisterCoreExtObjectFactory();
00030
00031 QApplication qtapplication( argc, argv );
00032
00033 if(argc<2)
00034 {
00035 fprintf( stderr, "Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str() );
00036 return 1;
00037 }
00038
00039
00040 QmitkRegisterClasses();
00041
00042 Step6 mainWidget(argc, argv, NULL);
00043 mainWidget.Initialize();
00044 mainWidget.show();
00045
00046
00047 #include "QtTesting.h"
00048 if(strcmp(argv[argc-1], "-testing")!=0)
00049 return qtapplication.exec();
00050 else
00051 return QtTesting();
00052
00053 }