Medical Imaging Interaction Toolkit  2024.06.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 #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 
97  SmartPointer<IWorkbenchPage> GetActivePage() const override = 0;
98 
105  virtual void SetActivePage(SmartPointer<IWorkbenchPage> page) = 0;
106 
113  virtual IPartService* GetPartService() = 0;
114 
121  virtual ISelectionService* GetSelectionService() const = 0;
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 
189  virtual SmartPointer<IWorkbenchPage> OpenPage(IAdaptable* input) = 0;
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_*/
org_blueberry_ui_qt_Export.h
berry::IServiceLocator
Definition: berryIServiceLocator.h:43
berry::IWorkbenchWindow
Definition: berryIWorkbenchWindow.h:64
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:31
berryIAdaptable.h
berryShell.h
berry
Definition: QmitkPropertyItemModel.h:24