Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
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 
33 {
34 
35 public:
36 
38 
39 private:
40 
44  bool visible;
45 
50 
51 public:
52 
58 
60 
61  /*
62  * Method declared on IContributionItem.
63  */
64  void Fill(QStatusBar* parent) override;
65 
66  /*
67  * Method declared on IContributionItem.
68  */
69  void Fill(QMenu* parent, QAction* before) override;
70 
71  /*
72  * Method declared on IContributionItem.
73  */
74  void Fill(QToolBar* parent, QAction* before) override;
75 
76  /*
77  * Method declared on IContributionItem.
78  */
79  QString GetId() const override;
80 
86  IContributionItem::Pointer GetInnerItem() const;
87 
88  /*
89  * Method declared on IContributionItem.
90  */
91  bool IsEnabled() const override;
92 
93  /*
94  * Method declared on IContributionItem.
95  */
96  bool IsDirty() const override;
97 
98  /*
99  * Method declared on IContributionItem.
100  */
101  bool IsDynamic() const override;
102 
103  /*
104  * Method declared on IContributionItem.
105  */
106  bool IsGroupMarker() const override;
107 
108  /*
109  * Method declared on IContributionItem.
110  */
111  bool IsSeparator() const override;
112 
113  /*
114  * Method declared on IContributionItem.
115  */
116  bool IsVisible() const override;
117 
118  /*
119  * Method declared on IContributionItem.
120  */
121  void SetParent(IContributionManager* parent) override;
122 
123  /*
124  * Method declared on IContributionItem.
125  */
126  void SetVisible(bool visible) override;
127 
128  /*
129  * Method declared on IContributionItem.
130  */
131  void Update() override;
132 
133  /*
134  * Method declared on IContributionItem.
135  */
136  void Update(const QString& id) override;
137 
138  /*
139  * @see IContributionItem#SaveWidgetState()
140  */
141  void SaveWidgetState() override;
142 
143 };
144 
145 }
146 
147 #endif /* BERRYSUBCONTRIBUTIONITEM_H_ */
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:31
#define berryObjectMacro(...)
Definition: berryMacros.h:33
berryObjectMacro(SubContributionItem) private IContributionItem::Pointer innerItem
virtual void Fill(QMenuBar *parent, QAction *before)=0
#define BERRY_UI_QT