Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
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_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT