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
berryIWorkbenchPartReference.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 BERRYIWORKBENCHPARTREFERENCE_H_
18 #define BERRYIWORKBENCHPARTREFERENCE_H_
19 
20 #include <berryMacros.h>
21 
24 
25 namespace berry {
26 
27 struct IWorkbenchPart;
28 struct IWorkbenchPage;
29 
41 {
42 
44 
46 
53  virtual SmartPointer<IWorkbenchPart> GetPart(bool restore) = 0;
54 
58  virtual QIcon GetTitleImage() const = 0;
59 
63  virtual QString GetTitleToolTip() const = 0;
64 
68  virtual QString GetId() const = 0;
69 
73  virtual void AddPropertyListener(IPropertyChangeListener* listener) = 0;
74 
78  virtual void RemovePropertyListener(IPropertyChangeListener* listener) = 0;
79 
83  virtual SmartPointer<IWorkbenchPage> GetPage() const = 0;
84 
90  virtual QString GetPartName() const = 0;
91 
97  virtual QString GetContentDescription() const = 0;
98 
102  virtual bool IsPinned() const = 0;
103 
109  virtual bool IsDirty() const = 0;
110 
121  virtual QString GetPartProperty(const QString& key) const = 0;
122 
129  //virtual void addPartPropertyListener(IPropertyChangeListener listener) = 0;
130 
137  //virtual void removePartPropertyListener(IPropertyChangeListener listener) = 0;
138 };
139 
140 } // namespace berry
141 
142 #endif /*BERRYIWORKBENCHPARTREFERENCE_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