Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 
90  IContributionItem::Pointer GetInnerItem() const;
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_ */
org_blueberry_ui_qt_Export.h
berry::IContributionItem::Fill
virtual void Fill(QStatusBar *parent)=0
berry::SubContributionItem
Definition: berrySubContributionItem.h:31
berryIContributionItem.h
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IContributionManager
Definition: berryIContributionManager.h:45
berry::IContributionItem
Definition: berryIContributionItem.h:50
berry::Object::Pointer
berry::SmartPointer< Self > Pointer
Definition: berryObject.h:82
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry
Definition: QmitkPropertyItemModel.h:24