Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
berryIWorkbenchPart.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 IWORKBENCHPART_H_
14 #define IWORKBENCHPART_H_
15 
17 
19 
20 #include <berryMacros.h>
21 
22 
23 namespace berry {
24 
25 struct IWorkbenchPartSite;
26 
27 
106 struct BERRY_UI_QT IWorkbenchPart : public virtual Object { // public IAdaptable {
107 
109 
110  ~IWorkbenchPart() override;
111 
116  //static const int PROP_TITLE = IWorkbenchPartConstants.PROP_TITLE;
117 
127  virtual void AddPropertyListener(IPropertyChangeListener* listener) = 0;
128 
149  virtual void CreatePartControl(QWidget* parent) = 0;
150 
160  virtual SmartPointer<IWorkbenchPartSite> GetSite() const = 0;
161 
162 
170  virtual QString GetPartName() const = 0;
171 
183  virtual QString GetContentDescription() const = 0;
184 
197  virtual QIcon GetTitleImage() const = 0;
198 
211  virtual QString GetTitleToolTip() const = 0;
212 
219  virtual void RemovePropertyListener(IPropertyChangeListener* listener) = 0;
220 
228  virtual QString GetPartProperty(const QString& key) const = 0;
229 
243  virtual void SetPartProperty(const QString& key, const QString& value) = 0;
244 
251  virtual const QHash<QString, QString>& GetPartProperties() const = 0;
252 
261  virtual void SetFocus() = 0;
262 };
263 
264 } // namespace berry
265 
266 #endif /*IWORKBENCHPART_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_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IWorkbenchPart
Definition: berryIWorkbenchPart.h:106
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry
Definition: QmitkPropertyItemModel.h:24