Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
berryContributionItem.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 BERRYCONTRIBUTIONITEM_H
15 #define BERRYCONTRIBUTIONITEM_H
16 
17 #include "berryIContributionItem.h"
18 
20 
21 namespace berry {
22 
27 {
28 
29 public:
30 
32 
33  enum Mode {
34  DEFAULT = 0x00,
35 
41  MODE_FORCE_TEXT = 0x01
42  };
43  Q_DECLARE_FLAGS(Modes, Mode)
44 
45  enum Style {
46 
50  STYLE_PUSH = 0x01,
51 
55  STYLE_CHECK = 0x02,
56 
60  STYLE_RADIO = 0x04,
61 
65  STYLE_PULLDOWN = 0x08
66  };
67 
72  void Fill(QStatusBar* parent) override;
73 
78  void Fill(QMenu* menu, QAction* before) override;
79 
84  void Fill(QMenuBar* menu, QAction* before) override;
85 
90  void Fill(QToolBar* parent, QAction* before) override;
91 
96  void SaveWidgetState() override;
97 
98  /*
99  * Method declared on IContributionItem.
100  */
101  QString GetId() const override;
102 
109  IContributionManager *GetParent() const;
110 
115  bool IsDirty() const override;
116 
121  bool IsEnabled() const override;
122 
127  bool IsDynamic() const override;
128 
133  bool IsGroupMarker() const override;
134 
139  bool IsSeparator() const override;
140 
147  bool IsVisible() const override;
148 
154  void SetVisible(bool visible) override;
155 
160  QString ToString() const override;
161 
166  void Update() override;
167 
168  /*
169  * Method declared on IContributionItem.
170  */
171  void SetParent(IContributionManager* parent) override;
172 
178  void Update(const QString& id) override;
179 
187  void SetId(const QString& itemId);
188 
189 protected:
190 
196 
204  ContributionItem(const QString& id);
205 
206 private:
207 
211  QString id;
212 
217  bool visible;
218 
222  IContributionManager* parent;
223 };
224 
225 }
226 
227 #endif // BERRYCONTRIBUTIONITEM_H
org_blueberry_ui_qt_Export.h
berry::ContributionItem::Mode
Mode
Definition: berryContributionItem.h:33
berryIContributionItem.h
berry::ContributionItem
Definition: berryContributionItem.h:26
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
menu
The custom viewer plugin implements simple viewer functionality presented in a customized look and feel It was developed to demonstrate extensibility and customizability of the blueberry application framework As an example for the GUI customization capabilities provided by the BlueBerry application the custom viewer plugin was developed It features simple viewer functionality presented in a customized look and feel The custom viewer consists of two i e a viewer perspective and a DICOM perspective As part of the viewer an instance of QmitkDataManagerView allows for data selection Visualization of the selected data is then performed by a simple render window view According data can either be directly loaded from file or be imported as DICOM data DICOM import functionality is accessible from the DICOM perspective incorporating the QmitkDicomExternalDataWidget The customization of Qt Stylesheets is used to give the application a non native look and feel This is further emphasized by a Tab Widget like unification of the perspectives with the according perspective bar In addition to an absence of menu
Definition: CustomViewerExample.dox:312
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry::ContributionItem::Style
Style
Definition: berryContributionItem.h:45
berry
Definition: QmitkPropertyItemModel.h:24