Medical Imaging Interaction Toolkit  2023.12.00
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
berry::IContributionItem::IsEnabled
virtual bool IsEnabled() const =0
berry::IContributionItem::SetVisible
virtual void SetVisible(bool visible)=0
berry::IContributionItem::IsDirty
virtual bool IsDirty() const =0
berry::IContributionItem::Fill
virtual void Fill(QStatusBar *parent)=0
berry::IContributionItem::IsDynamic
virtual bool IsDynamic() const =0
berry::IContributionItem::GetId
virtual QString GetId() const =0
berryMacros.h
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berry::IContributionItem::IsSeparator
virtual bool IsSeparator() const =0
berry::IContributionItem::SaveWidgetState
virtual void SaveWidgetState()=0
berry::IContributionItem::SetParent
virtual void SetParent(IContributionManager *parent)=0
berry::IContributionItem::Update
virtual void Update()=0
berry::IContributionItem::IsVisible
virtual bool IsVisible() const =0
berry::IContributionManager
Definition: berryIContributionManager.h:45
berry::IContributionItem
Definition: berryIContributionItem.h:50
berryObject.h
berry::IContributionItem::berryObjectMacro
berryObjectMacro(berry::IContributionItem)
berry
Definition: QmitkPropertyItemModel.h:24
berry::IContributionItem::IsGroupMarker
virtual bool IsGroupMarker() const =0