Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIContributionItem.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 BERRYICONTRIBUTIONITEM_H
19 #define BERRYICONTRIBUTIONITEM_H
20 
21 #include <berryMacros.h>
22 #include <berryObject.h>
23 
24 class QStatusBar;
25 class QMenu;
26 class QMenuBar;
27 class QToolBar;
28 class QAction;
29 
30 namespace berry {
31 
32 struct IContributionManager;
33 
55 struct IContributionItem : public virtual Object
56 {
57 
59 
60 
61 
67  virtual void Fill(QStatusBar* parent) = 0;
68 
77  virtual void Fill(QMenuBar* parent, QAction* before) = 0;
78 
87  virtual void Fill(QMenu* parent, QAction* before) = 0;
88 
97  virtual void Fill(QToolBar* parent, QAction* before) = 0;
98 
106  virtual QString GetId() const = 0;
107 
113  virtual bool IsEnabled() const = 0;
114 
121  virtual bool IsDirty() const = 0;
122 
130  virtual bool IsDynamic() const = 0;
131 
143  virtual bool IsGroupMarker() const = 0;
144 
153  virtual bool IsSeparator() const = 0;
154 
161  virtual bool IsVisible() const = 0;
162 
167  virtual void SaveWidgetState() = 0;
168 
174  virtual void SetParent(IContributionManager* parent) = 0;
175 
182  virtual void SetVisible(bool visible) = 0;
183 
189  virtual void Update() = 0;
190 
197  virtual void Update(const QString& id) = 0;
198 };
199 
200 }
201 
202 #endif // BERRYICONTRIBUTIONITEM_H
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
virtual void SetVisible(bool visible)=0
virtual bool IsDynamic() const =0
berryObjectMacro(berry::IContributionItem) virtual void Fill(QStatusBar *parent)=0
virtual bool IsSeparator() const =0
virtual void SaveWidgetState()=0
virtual bool IsVisible() const =0
virtual bool IsDirty() const =0
virtual bool IsEnabled() const =0
virtual QString GetId() const =0
virtual void SetParent(IContributionManager *parent)=0
virtual void Update()=0
virtual void Fill(QMenuBar *parent, QAction *before)=0
virtual bool IsGroupMarker() const =0