Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
berryIWorkbenchWindow.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 BERRYIWORKBENCHWINDOW_H_
14 #define BERRYIWORKBENCHWINDOW_H_
15 
16 #include <berryMacros.h>
17 #include <berryIAdaptable.h>
18 
20 
21 #include "berryIPageService.h"
22 #include "berryShell.h"
23 
25 
26 namespace berry {
27 
28 struct IPartService;
29 struct ISelectionService;
30 struct IWorkbenchPage;
31 struct IWorkbench;
32 
62 struct BERRY_UI_QT IWorkbenchWindow : public IPageService, public IServiceLocator, public virtual Object
63 {
64 
66 
77  virtual bool Close() = 0;
78 
88  virtual QList<SmartPointer<IWorkbenchPage> > GetPages() const = 0;
89 
95  SmartPointer<IWorkbenchPage> GetActivePage() const override = 0;
96 
103  virtual void SetActivePage(SmartPointer<IWorkbenchPage> page) = 0;
104 
111  virtual IPartService* GetPartService() = 0;
112 
119  virtual ISelectionService* GetSelectionService() const = 0;
120 
127  virtual Shell::Pointer GetShell() const = 0;
128 
134  virtual IWorkbench* GetWorkbench() const = 0;
135 
159  virtual SmartPointer<IWorkbenchPage> OpenPage(const QString& perspectiveId, IAdaptable* input) = 0;
160 
182  virtual SmartPointer<IWorkbenchPage> OpenPage(IAdaptable* input) = 0;
183 
184  //virtual void SetPerspectiveExcludeList(const QStringList& v) = 0;
185  //virtual QStringList GetPerspectiveExcludeList() const = 0;
186 
187  //virtual void SetViewExcludeList(const QStringList& v) = 0;
188  //virtual QStringList GetViewExcludeList() const = 0;
189 
190  ~IWorkbenchWindow() override;
191 
192 };
193 
194 }
195 
196 #endif /*BERRYIWORKBENCHWINDOW_H_*/
org_blueberry_ui_qt_Export.h
berry::IServiceLocator
Definition: berryIServiceLocator.h:43
berry::IWorkbenchWindow
Definition: berryIWorkbenchWindow.h:62
berryMacros.h
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berryIPageService.h
berry::ISelectionService
Definition: berryISelectionService.h:41
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IPartService
Definition: berryIPartService.h:35
berry::IAdaptable
Definition: berryIAdaptable.h:50
berryIServiceLocator.h
berry::IPageService
Definition: berryIPageService.h:44
berry::IWorkbench
Definition: berryIWorkbench.h:80
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:33
berryIAdaptable.h
berryShell.h
berry
Definition: QmitkPropertyItemModel.h:24