Medical Imaging Interaction Toolkit  2025.12.02
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 #include <QToolBar>
27 
28 namespace berry {
29 
30 struct IPartService;
31 struct ISelectionService;
32 struct IWorkbenchPage;
33 struct IWorkbench;
34 
64 struct BERRY_UI_QT IWorkbenchWindow : public IPageService, public IServiceLocator , public virtual Object
65 {
66 
68 
79  virtual bool Close() = 0;
80 
90  virtual QList<SmartPointer<IWorkbenchPage> > GetPages() const = 0;
91 
98 
106 
113  virtual IPartService* GetPartService() = 0;
114 
122 
129  virtual Shell::Pointer GetShell() const = 0;
130 
136  virtual IWorkbench* GetWorkbench() const = 0;
137 
141  virtual QList<QToolBar*> GetToolBars() const = 0;
142 
166  virtual SmartPointer<IWorkbenchPage> OpenPage(const QString& perspectiveId, IAdaptable* input) = 0;
167 
190 
191  //virtual void SetPerspectiveExcludeList(const QStringList& v) = 0;
192  //virtual QStringList GetPerspectiveExcludeList() const = 0;
193 
194  //virtual void SetViewExcludeList(const QStringList& v) = 0;
195  //virtual QStringList GetViewExcludeList() const = 0;
196 
197  ~IWorkbenchWindow() override;
198 
199 };
200 
201 }
202 
203 #endif /*BERRYIWORKBENCHWINDOW_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:73
Implements transparent reference counting.
#define BERRY_UI_QT
berryObjectMacro(berry::IWorkbenchWindow, IPageService, IServiceLocator, Object)
~IWorkbenchWindow() override
SmartPointer< IWorkbenchPage > GetActivePage() const override=0
virtual QList< QToolBar * > GetToolBars() const =0
virtual IPartService * GetPartService()=0
virtual SmartPointer< IWorkbenchPage > OpenPage(IAdaptable *input)=0
virtual ISelectionService * GetSelectionService() const =0
virtual QList< SmartPointer< IWorkbenchPage > > GetPages() const =0
virtual void SetActivePage(SmartPointer< IWorkbenchPage > page)=0
virtual IWorkbench * GetWorkbench() const =0
virtual SmartPointer< IWorkbenchPage > OpenPage(const QString &perspectiveId, IAdaptable *input)=0
virtual Shell::Pointer GetShell() const =0
virtual bool Close()=0