Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
berryIWorkbenchPartReference.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 BERRYIWORKBENCHPARTREFERENCE_H_
14 #define BERRYIWORKBENCHPARTREFERENCE_H_
15 
16 #include <berryMacros.h>
17 
20 
21 namespace berry {
22 
23 struct IWorkbenchPart;
24 struct IWorkbenchPage;
25 
37 {
38 
40 
41  ~IWorkbenchPartReference() override;
42 
49  virtual SmartPointer<IWorkbenchPart> GetPart(bool restore) = 0;
50 
54  virtual QIcon GetTitleImage() const = 0;
55 
59  virtual QString GetTitleToolTip() const = 0;
60 
64  virtual QString GetId() const = 0;
65 
69  virtual void AddPropertyListener(IPropertyChangeListener* listener) = 0;
70 
74  virtual void RemovePropertyListener(IPropertyChangeListener* listener) = 0;
75 
79  virtual SmartPointer<IWorkbenchPage> GetPage() const = 0;
80 
86  virtual QString GetPartName() const = 0;
87 
93  virtual QString GetContentDescription() const = 0;
94 
98  virtual bool IsPinned() const = 0;
99 
105  virtual bool IsDirty() const = 0;
106 
117  virtual QString GetPartProperty(const QString& key) const = 0;
118 
125  //virtual void addPartPropertyListener(IPropertyChangeListener listener) = 0;
126 
133  //virtual void removePartPropertyListener(IPropertyChangeListener listener) = 0;
134 };
135 
136 } // namespace berry
137 
138 #endif /*BERRYIWORKBENCHPARTREFERENCE_H_*/
berry::IPropertyChangeListener
Definition: berryIPropertyChangeListener.h:42
org_blueberry_ui_qt_Export.h
berryMacros.h
berryIPropertyChangeListener.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
berry::IWorkbenchPartReference
Definition: berryIWorkbenchPartReference.h:36
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:33
berry
Definition: QmitkPropertyItemModel.h:24