Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berrySubContributionItem.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef BERRYSUBCONTRIBUTIONITEM_H_
19 #define BERRYSUBCONTRIBUTIONITEM_H_
20 
21 #include "berryIContributionItem.h"
22 
24 
25 namespace berry {
26 
37 {
38 
39 public:
40 
42 
43 private:
44 
48  bool visible;
49 
53  IContributionItem::Pointer innerItem;
54 
55 public:
56 
62 
63  using IContributionItem::Fill;
64 
65  /*
66  * Method declared on IContributionItem.
67  */
68  void Fill(QStatusBar* parent) override;
69 
70  /*
71  * Method declared on IContributionItem.
72  */
73  void Fill(QMenu* parent, QAction* before) override;
74 
75  /*
76  * Method declared on IContributionItem.
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_ */
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT