Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
Step8main.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "QmitkRegisterClasses.h"
18 #include "Step8.h"
19 
20 #include <QApplication>
21 #include <itksys/SystemTools.hxx>
22 
23 int main(int argc, char *argv[])
24 {
25  QApplication qtapplication(argc, argv);
26 
27  if (argc < 2)
28  {
29  fprintf(
30  stderr, "Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
31  return 1;
32  }
33 
34  // Register Qmitk-dependent global instances
36 
37  Step8 mainWidget(argc, argv, nullptr);
38  mainWidget.Initialize();
39  mainWidget.show();
40 
41 // for testing
42 #include "QtTesting.h"
43  if (strcmp(argv[argc - 1], "-testing") != 0)
44  return qtapplication.exec();
45  else
46  return QtTesting();
47 }
MITKQTWIDGETS_EXPORT void QmitkRegisterClasses()
int main(int argc, char *argv[])
Definition: Step8main.cpp:23
int QtTesting()
Definition: QtTesting.cpp:22
virtual void Initialize()
Definition: Step6.cpp:50
Definition: Step8.h:23