Medical Imaging Interaction Toolkit  2018.4.99-b7f3afaa
Medical Imaging Interaction Toolkit
berryIWorkbenchSite.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef BERRYIWORKBENCHSITE_H_
14 #define BERRYIWORKBENCHSITE_H_
15 
16 #include <berryMacros.h>
17 
19 
21 
22 namespace berry {
23 
24 struct IWorkbenchPage;
25 struct ISelectionProvider;
26 struct IWorkbenchWindow;
27 class Shell;
28 
57 struct BERRY_UI_QT IWorkbenchSite : public IServiceLocator { // IAdaptable, IShellProvider {
58 
60 
61  ~IWorkbenchSite() override;
62 
68  virtual SmartPointer<IWorkbenchPage> GetPage() = 0;
69 
75  virtual SmartPointer<ISelectionProvider> GetSelectionProvider() = 0;
76 
84  virtual SmartPointer<Shell> GetShell() = 0;
85 
91  virtual SmartPointer<IWorkbenchWindow> GetWorkbenchWindow() = 0;
92 
99  virtual void SetSelectionProvider(SmartPointer<ISelectionProvider> provider) = 0;
100 
101 };
102 
103 }
104 
105 #endif /*BERRYIWORKBENCHSITE_H_*/
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT