Medical Imaging Interaction Toolkit  2023.12.00
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 
37 
39 
40  ~IPresentablePart() override;
41 
45  static const int PROP_DIRTY; // = IWorkbenchPartConstants.PROP_DIRTY;
46 
50  static const int PROP_INPUT; // = IWorkbenchPartConstants.PROP_INPUT;
51 
56  static const int PROP_TITLE; // = IWorkbenchPartConstants.PROP_TITLE;
57 
61  static const int PROP_CONTENT_DESCRIPTION; // = IWorkbenchPartConstants.PROP_CONTENT_DESCRIPTION;
62 
66  static const int PROP_PART_NAME; // = IWorkbenchPartConstants.PROP_PART_NAME;
67 
71  static const int PROP_BUSY; // = 0x92;
72 
76  static const int PROP_TOOLBAR; // = 0x93;
77 
82  static const int PROP_HIGHLIGHT_IF_BACK; // = 0x94;
83 
87  static const int PROP_PANE_MENU; // = 0x302;
88 
93  static const int PROP_PREFERRED_SIZE; // = IWorkbenchPartConstants.PROP_PREFERRED_SIZE;
94 
100  virtual void SetBounds(const QRect& bounds) = 0;
101 
110  virtual void SetVisible(bool isVisible) = 0;
111 
115  virtual void SetFocus() = 0;
116 
126  virtual void AddPropertyListener(IPropertyChangeListener* listener) = 0;
127 
133  virtual void RemovePropertyListener(IPropertyChangeListener* listener) = 0;
134 
141  virtual QString GetName() const = 0;
142 
154  virtual QString GetTitle() const = 0;
155 
168  virtual QString GetTitleStatus() const = 0;
169 
182  virtual QIcon GetTitleImage() = 0;
183 
195  virtual QString GetTitleToolTip() const = 0;
196 
205  virtual bool IsDirty() const = 0;
206 
211  virtual bool IsBusy() const = 0;
212 
219  virtual bool IsCloseable() const = 0;
220 
227  virtual QToolBar* GetToolBar() = 0;
228 
234  //virtual IPartMenu getMenu();
235 
245  virtual QWidget* GetControl() = 0;
246 
259  virtual QString GetPartProperty(const QString& key) const = 0;
260 
261 };
262 
263 }
264 
265 #endif /* BERRYIPRESENTABLEPART_H_ */
berry::IPropertyChangeListener
Definition: berryIPropertyChangeListener.h:42
berry::IPresentablePart::PROP_TOOLBAR
static const int PROP_TOOLBAR
Definition: berryIPresentablePart.h:76
berry::IPresentablePart::PROP_CONTENT_DESCRIPTION
static const int PROP_CONTENT_DESCRIPTION
Definition: berryIPresentablePart.h:61
berryMacros.h
berryIPropertyChangeListener.h
berry::IPresentablePart::PROP_INPUT
static const int PROP_INPUT
Definition: berryIPresentablePart.h:50
berry::ISizeProvider
Definition: berryISizeProvider.h:28
berry::IPresentablePart::PROP_BUSY
static const int PROP_BUSY
Definition: berryIPresentablePart.h:71
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berry::IPresentablePart::PROP_HIGHLIGHT_IF_BACK
static const int PROP_HIGHLIGHT_IF_BACK
Definition: berryIPresentablePart.h:82
berry::IPresentablePart::PROP_TITLE
static const int PROP_TITLE
Definition: berryIPresentablePart.h:56
berry::IPresentablePart::PROP_PREFERRED_SIZE
static const int PROP_PREFERRED_SIZE
Definition: berryIPresentablePart.h:93
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IPresentablePart::PROP_PANE_MENU
static const int PROP_PANE_MENU
Definition: berryIPresentablePart.h:87
berryISizeProvider.h
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:33
berry::IPresentablePart::PROP_PART_NAME
static const int PROP_PART_NAME
Definition: berryIPresentablePart.h:66
berry
Definition: QmitkPropertyItemModel.h:24
berry::IPresentablePart::PROP_DIRTY
static const int PROP_DIRTY
Definition: berryIPresentablePart.h:45
berry::IPresentablePart
Definition: berryIPresentablePart.h:36