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
berryIWorkbenchPart.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 IWORKBENCHPART_H_
18 #define IWORKBENCHPART_H_
19 
21 
23 
24 #include <berryMacros.h>
25 
26 
27 namespace berry {
28 
29 struct IWorkbenchPartSite;
30 
31 
110 struct BERRY_UI_QT IWorkbenchPart : public virtual Object { // public IAdaptable {
111 
113 
114  virtual ~IWorkbenchPart();
115 
120  //static const int PROP_TITLE = IWorkbenchPartConstants.PROP_TITLE;
121 
131  virtual void AddPropertyListener(IPropertyChangeListener* listener) = 0;
132 
153  virtual void CreatePartControl(QWidget* parent) = 0;
154 
164  virtual SmartPointer<IWorkbenchPartSite> GetSite() const = 0;
165 
166 
174  virtual QString GetPartName() const = 0;
175 
187  virtual QString GetContentDescription() const = 0;
188 
201  virtual QIcon GetTitleImage() const = 0;
202 
215  virtual QString GetTitleToolTip() const = 0;
216 
223  virtual void RemovePropertyListener(IPropertyChangeListener* listener) = 0;
224 
232  virtual QString GetPartProperty(const QString& key) const = 0;
233 
247  virtual void SetPartProperty(const QString& key, const QString& value) = 0;
248 
255  virtual const QHash<QString, QString>& GetPartProperties() const = 0;
256 
265  virtual void SetFocus() = 0;
266 };
267 
268 } // namespace berry
269 
270 #endif /*IWORKBENCHPART_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT