Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryPlatformUI.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
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 #ifndef BERRYPLATFORMUI_H_
18 #define BERRYPLATFORMUI_H_
19 
21 
22 #include "berryDisplay.h"
24 #include "testing/berryTestableObject.h"
25 
26 namespace berry {
27 
45 {
46 public:
47 
48  static QString PLUGIN_ID();
49  static const QString XP_WORKBENCH;
50  static const QString XP_VIEWS;
51 
58  static const int RETURN_OK;
59 
68  static const int RETURN_RESTART;
69 
77  static const int RETURN_UNSTARTABLE;
78 
86  static const int RETURN_EMERGENCY_CLOSE;
87 
117  static int CreateAndRunWorkbench(Display* display, WorkbenchAdvisor* advisor);
118 
126  static Display* CreateDisplay();
127 
135  static IWorkbench* GetWorkbench();
136 
152  static bool IsWorkbenchRunning();
153 
164  static TestableObject::Pointer GetTestableObject();
165 
166 private:
167 
168  PlatformUI();
169 
170 };
171 
172 }
173 
174 #endif /*BERRYPLATFORMUI_H_*/
itk::SmartPointer< Self > Pointer
static const int RETURN_RESTART
static const int RETURN_EMERGENCY_CLOSE
static const QString XP_WORKBENCH
static const int RETURN_OK
static const int RETURN_UNSTARTABLE
static const QString XP_VIEWS
#define BERRY_UI_QT