Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berrySubContributionItem.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 BERRYSUBCONTRIBUTIONITEM_H_
15 #define BERRYSUBCONTRIBUTIONITEM_H_
16 
17 #include "berryIContributionItem.h"
18 
20 
21 namespace berry {
22 
32 {
33 
34 public:
35 
37 
38 private:
39 
43  bool visible;
44 
49 
50 public:
51 
57 
59 
60  /*
61  * Method declared on IContributionItem.
62  * \param parent
63  */
64  void Fill(QStatusBar* parent) override;
65 
66  /*
67  * Method declared on IContributionItem.
68  * \param parent
69  * \param before
70  */
71  void Fill(QMenu* parent, QAction* before) override;
72 
73  /*
74  * Method declared on IContributionItem.
75  * \param parent
76  * \param before
77  */
78  void Fill(QToolBar* parent, QAction* before) override;
79 
80  /*
81  * Method declared on IContributionItem.
82  */
83  QString GetId() const override;
84 
91 
92  /*
93  * Method declared on IContributionItem.
94  */
95  bool IsEnabled() const override;
96 
97  /*
98  * Method declared on IContributionItem.
99  */
100  bool IsDirty() const override;
101 
102  /*
103  * Method declared on IContributionItem.
104  */
105  bool IsDynamic() const override;
106 
107  /*
108  * Method declared on IContributionItem.
109  */
110  bool IsGroupMarker() const override;
111 
112  /*
113  * Method declared on IContributionItem.
114  */
115  bool IsSeparator() const override;
116 
117  /*
118  * Method declared on IContributionItem.
119  */
120  bool IsVisible() const override;
121 
122  /*
123  * Method declared on IContributionItem.
124  */
125  void SetParent(IContributionManager* parent) override;
126 
127  /*
128  * Method declared on IContributionItem.
129  */
130  void SetVisible(bool visible) override;
131 
132  /*
133  * Method declared on IContributionItem.
134  */
135  void Update() override;
136 
137  /*
138  * Method declared on IContributionItem.
139  */
140  void Update(const QString& id) override;
141 
142  /*
143  * @see IContributionItem#SaveWidgetState()
144  */
145  void SaveWidgetState() override;
146 
147 };
148 
149 }
150 
151 #endif /* BERRYSUBCONTRIBUTIONITEM_H_ */
Implements transparent reference counting.
SubContributionItem(IContributionItem::Pointer item)
bool IsDynamic() const override
IContributionItem::Pointer GetInnerItem() const
berryObjectMacro(SubContributionItem)
void SetVisible(bool visible) override
void Fill(QMenu *parent, QAction *before) override
bool IsGroupMarker() const override
bool IsEnabled() const override
void SaveWidgetState() override
void SetParent(IContributionManager *parent) override
bool IsSeparator() const override
void Update(const QString &id) override
bool IsVisible() const override
void Fill(QToolBar *parent, QAction *before) override
void Fill(QStatusBar *parent) override
bool IsDirty() const override
QString GetId() const override
#define BERRY_UI_QT
virtual void Fill(QStatusBar *parent)=0