Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIWorkbenchWindow.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 BERRYIWORKBENCHWINDOW_H_
18 #define BERRYIWORKBENCHWINDOW_H_
19 
20 #include <berryMacros.h>
21 #include <berryIAdaptable.h>
22 
24 
25 #include "berryIPageService.h"
26 #include "berryShell.h"
27 
29 
30 namespace berry {
31 
32 struct IPartService;
33 struct ISelectionService;
34 struct IWorkbenchPage;
35 struct IWorkbench;
36 
70 struct BERRY_UI_QT IWorkbenchWindow : public IPageService, public IServiceLocator, public virtual Object
71 {
72 
74 
75 
85  virtual bool Close() = 0;
86 
96  virtual QList<SmartPointer<IWorkbenchPage> > GetPages() const = 0;
97 
103  virtual SmartPointer<IWorkbenchPage> GetActivePage() const override = 0;
104 
111  virtual void SetActivePage(SmartPointer<IWorkbenchPage> page) = 0;
112 
119  virtual IPartService* GetPartService() = 0;
120 
127  virtual ISelectionService* GetSelectionService() const = 0;
128 
135  virtual Shell::Pointer GetShell() const = 0;
136 
142  virtual IWorkbench* GetWorkbench() const = 0;
143 
160  //virtual bool IsApplicationMenu(const QString& menuId) = 0;
161 
185  virtual SmartPointer<IWorkbenchPage> OpenPage(const QString& perspectiveId, IAdaptable* input) = 0;
186 
208  virtual SmartPointer<IWorkbenchPage> OpenPage(IAdaptable* input) = 0;
209 
210  //virtual void SetPerspectiveExcludeList(const QStringList& v) = 0;
211  //virtual QStringList GetPerspectiveExcludeList() const = 0;
212 
213  //virtual void SetViewExcludeList(const QStringList& v) = 0;
214  //virtual QStringList GetViewExcludeList() const = 0;
215 
216  virtual ~IWorkbenchWindow();
217 
218 };
219 
220 }
221 
222 #endif /*BERRYIWORKBENCHWINDOW_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT