Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
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_ */
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
#define BERRY_UI_QT