Medical Imaging Interaction Toolkit  2018.4.99-fa2b431b
Medical Imaging Interaction Toolkit
berryIContributionItem.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 BERRYICONTRIBUTIONITEM_H
15 #define BERRYICONTRIBUTIONITEM_H
16 
17 #include <berryMacros.h>
18 #include <berryObject.h>
19 
20 class QStatusBar;
21 class QMenu;
22 class QMenuBar;
23 class QToolBar;
24 class QAction;
25 
26 namespace berry {
27 
28 struct IContributionManager;
29 
50 struct IContributionItem : public virtual Object
51 {
52 
54 
55 
62  virtual void Fill(QStatusBar* parent) = 0;
63 
71  virtual void Fill(QMenuBar* parent, QAction* before) = 0;
72 
80  virtual void Fill(QMenu* parent, QAction* before) = 0;
81 
89  virtual void Fill(QToolBar* parent, QAction* before) = 0;
90 
98  virtual QString GetId() const = 0;
99 
105  virtual bool IsEnabled() const = 0;
106 
113  virtual bool IsDirty() const = 0;
114 
122  virtual bool IsDynamic() const = 0;
123 
135  virtual bool IsGroupMarker() const = 0;
136 
145  virtual bool IsSeparator() const = 0;
146 
153  virtual bool IsVisible() const = 0;
154 
159  virtual void SaveWidgetState() = 0;
160 
166  virtual void SetParent(IContributionManager* parent) = 0;
167 
174  virtual void SetVisible(bool visible) = 0;
175 
181  virtual void Update() = 0;
182 
189  virtual void Update(const QString& id) = 0;
190 };
191 
192 }
193 
194 #endif // BERRYICONTRIBUTIONITEM_H
virtual void Fill(QStatusBar *parent)=0
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berryObjectMacro(berry::IContributionItem)
virtual void SetVisible(bool visible)=0
virtual bool IsDynamic() const =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 bool IsGroupMarker() const =0