Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryIWorkbench.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 BERRYIWORKBENCH_H_
18 #define BERRYIWORKBENCH_H_
19 
20 #include <berryMacros.h>
21 
23 #include "berryIViewRegistry.h"
24 #include "berryIEditorRegistry.h"
27 #include "berryIWorkbenchWindow.h"
29 #include "berryIWindowListener.h"
30 #include "berryDisplay.h"
31 
32 namespace berry {
33 
34 struct IElementFactory;
35 struct IExtensionTracker;
36 struct IWorkbenchPage;
37 
87 
89 
90  virtual ~IWorkbench();
91 
102  virtual Display* GetDisplay() const = 0;
103 
111  virtual void AddWorkbenchListener(IWorkbenchListener* listener) = 0;
112 
120  virtual void RemoveWorkbenchListener(IWorkbenchListener* listener) = 0;
121 
125  virtual IWorkbenchListener::Events& GetWorkbenchEvents() = 0;
126 
134  virtual void AddWindowListener(IWindowListener* listener) = 0;
135 
143  virtual void RemoveWindowListener(IWindowListener* listener) = 0;
144 
149  virtual IWindowListener::Events& GetWindowEvents() = 0;
150 
161  virtual bool Close() = 0;
162 
171  virtual IWorkbenchWindow::Pointer GetActiveWorkbenchWindow() const = 0;
172 
186  virtual IExtensionTracker* GetExtensionTracker() const = 0;
187 
193  virtual IPerspectiveRegistry* GetPerspectiveRegistry() const = 0;
194 
201  virtual IViewRegistry* GetViewRegistry() const = 0;
202 
208  virtual IEditorRegistry* GetEditorRegistry() const = 0;
209 
218  virtual std::size_t GetWorkbenchWindowCount() const = 0;
219 
227  virtual QList<IWorkbenchWindow::Pointer> GetWorkbenchWindows() const = 0;
228 
260  virtual IWorkbenchWindow::Pointer OpenWorkbenchWindow(const QString& perspectiveId,
261  IAdaptable* input) = 0;
262 
285  virtual IWorkbenchWindow::Pointer OpenWorkbenchWindow(IAdaptable* input) = 0;
286 
326  virtual SmartPointer<IWorkbenchPage> ShowPerspective(const QString& perspectiveId,
327  IWorkbenchWindow::Pointer window) = 0;
328 
372  virtual SmartPointer<IWorkbenchPage> ShowPerspective(const QString& perspectiveId,
373  IWorkbenchWindow::Pointer window, IAdaptable* input) = 0;
374 
387  virtual bool SaveAllEditors(bool confirm) = 0;
388 
398  virtual IElementFactory* GetElementFactory(const QString& factoryId) const = 0;
399 
406  virtual IIntroManager* GetIntroManager() const = 0;
407 
416  virtual bool IsClosing() const = 0;
417 
421  virtual void UpdateTheme() = 0;
422 
423 };
424 
425 }
426 
427 #endif /*BERRYIWORKBENCH_H_*/
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT