Medical Imaging Interaction Toolkit  2018.4.99-b585543d
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 
66 struct BERRY_UI_QT IWorkbenchWindow : public IPageService, public IServiceLocator, public virtual Object
67 {
68 
70 
81  virtual bool Close() = 0;
82 
92  virtual QList<SmartPointer<IWorkbenchPage> > GetPages() const = 0;
93 
99  SmartPointer<IWorkbenchPage> GetActivePage() const override = 0;
100 
107  virtual void SetActivePage(SmartPointer<IWorkbenchPage> page) = 0;
108 
115  virtual IPartService* GetPartService() = 0;
116 
123  virtual ISelectionService* GetSelectionService() const = 0;
124 
131  virtual Shell::Pointer GetShell() const = 0;
132 
138  virtual IWorkbench* GetWorkbench() const = 0;
139 
156  //virtual bool IsApplicationMenu(const QString& menuId) = 0;
157 
181  virtual SmartPointer<IWorkbenchPage> OpenPage(const QString& perspectiveId, IAdaptable* input) = 0;
182 
204  virtual SmartPointer<IWorkbenchPage> OpenPage(IAdaptable* input) = 0;
205 
206  //virtual void SetPerspectiveExcludeList(const QStringList& v) = 0;
207  //virtual QStringList GetPerspectiveExcludeList() const = 0;
208 
209  //virtual void SetViewExcludeList(const QStringList& v) = 0;
210  //virtual QStringList GetViewExcludeList() const = 0;
211 
212  ~IWorkbenchWindow() override;
213 
214 };
215 
216 }
217 
218 #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