Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryIPresentablePart.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 
14 #ifndef BERRYIPRESENTABLEPART_H_
15 #define BERRYIPRESENTABLEPART_H_
16 
17 #include <berryMacros.h>
18 
19 #include "berryISizeProvider.h"
21 
22 class QToolBar;
23 
24 namespace berry {
25 
38 
40 
41  ~IPresentablePart() override;
42 
46  static const int PROP_DIRTY; // = IWorkbenchPartConstants.PROP_DIRTY;
47 
51  static const int PROP_INPUT; // = IWorkbenchPartConstants.PROP_INPUT;
52 
57  static const int PROP_TITLE; // = IWorkbenchPartConstants.PROP_TITLE;
58 
62  static const int PROP_CONTENT_DESCRIPTION; // = IWorkbenchPartConstants.PROP_CONTENT_DESCRIPTION;
63 
67  static const int PROP_PART_NAME; // = IWorkbenchPartConstants.PROP_PART_NAME;
68 
72  static const int PROP_BUSY; // = 0x92;
73 
77  static const int PROP_TOOLBAR; // = 0x93;
78 
83  static const int PROP_HIGHLIGHT_IF_BACK; // = 0x94;
84 
88  static const int PROP_PANE_MENU; // = 0x302;
89 
94  static const int PROP_PREFERRED_SIZE; // = IWorkbenchPartConstants.PROP_PREFERRED_SIZE;
95 
101  virtual void SetBounds(const QRect& bounds) = 0;
102 
111  virtual void SetVisible(bool isVisible) = 0;
112 
116  virtual void SetFocus() = 0;
117 
127  virtual void AddPropertyListener(IPropertyChangeListener* listener) = 0;
128 
134  virtual void RemovePropertyListener(IPropertyChangeListener* listener) = 0;
135 
142  virtual QString GetName() const = 0;
143 
155  virtual QString GetTitle() const = 0;
156 
169  virtual QString GetTitleStatus() const = 0;
170 
183  virtual QIcon GetTitleImage() = 0;
184 
196  virtual QString GetTitleToolTip() const = 0;
197 
206  virtual bool IsDirty() const = 0;
207 
212  virtual bool IsBusy() const = 0;
213 
220  virtual bool IsCloseable() const = 0;
221 
228  virtual QToolBar* GetToolBar() = 0;
229 
235  //virtual IPartMenu getMenu();
236 
246  virtual QWidget* GetControl() = 0;
247 
260  virtual QString GetPartProperty(const QString& key) const = 0;
261 
262 };
263 
264 }
265 
266 #endif /* BERRYIPRESENTABLEPART_H_ */
static const int PROP_CONTENT_DESCRIPTION
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
static const int PROP_HIGHLIGHT_IF_BACK
static const int PROP_PREFERRED_SIZE
#define berryObjectMacro(...)
Definition: berryMacros.h:33
static std::string GetName(std::string fileName, std::string suffix)
#define BERRY_UI_QT