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
berryIPresentablePart.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 
18 #ifndef BERRYIPRESENTABLEPART_H_
19 #define BERRYIPRESENTABLEPART_H_
20 
21 #include <berryMacros.h>
22 
23 #include "berryISizeProvider.h"
25 
26 class QToolBar;
27 
28 namespace berry {
29 
42 
44 
46 
50  static const int PROP_DIRTY; // = IWorkbenchPartConstants.PROP_DIRTY;
51 
55  static const int PROP_INPUT; // = IWorkbenchPartConstants.PROP_INPUT;
56 
61  static const int PROP_TITLE; // = IWorkbenchPartConstants.PROP_TITLE;
62 
66  static const int PROP_CONTENT_DESCRIPTION; // = IWorkbenchPartConstants.PROP_CONTENT_DESCRIPTION;
67 
71  static const int PROP_PART_NAME; // = IWorkbenchPartConstants.PROP_PART_NAME;
72 
76  static const int PROP_BUSY; // = 0x92;
77 
81  static const int PROP_TOOLBAR; // = 0x93;
82 
87  static const int PROP_HIGHLIGHT_IF_BACK; // = 0x94;
88 
92  static const int PROP_PANE_MENU; // = 0x302;
93 
98  static const int PROP_PREFERRED_SIZE; // = IWorkbenchPartConstants.PROP_PREFERRED_SIZE;
99 
105  virtual void SetBounds(const QRect& bounds) = 0;
106 
115  virtual void SetVisible(bool isVisible) = 0;
116 
120  virtual void SetFocus() = 0;
121 
131  virtual void AddPropertyListener(IPropertyChangeListener* listener) = 0;
132 
138  virtual void RemovePropertyListener(IPropertyChangeListener* listener) = 0;
139 
146  virtual QString GetName() const = 0;
147 
159  virtual QString GetTitle() const = 0;
160 
173  virtual QString GetTitleStatus() const = 0;
174 
187  virtual QIcon GetTitleImage() = 0;
188 
200  virtual QString GetTitleToolTip() const = 0;
201 
210  virtual bool IsDirty() const = 0;
211 
216  virtual bool IsBusy() const = 0;
217 
224  virtual bool IsCloseable() const = 0;
225 
232  virtual QToolBar* GetToolBar() = 0;
233 
239  //virtual IPartMenu getMenu();
240 
250  virtual QWidget* GetControl() = 0;
251 
264  virtual QString GetPartProperty(const QString& key) const = 0;
265 
266 };
267 
268 }
269 
270 #endif /* BERRYIPRESENTABLEPART_H_ */
static const int PROP_CONTENT_DESCRIPTION
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
static const int PROP_HIGHLIGHT_IF_BACK
static const int PROP_PREFERRED_SIZE
#define berryObjectMacro(...)
Definition: berryMacros.h:37
static std::string GetName(std::string fileName, std::string suffix)
#define BERRY_UI_QT