Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkExtActionBarAdvisor.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 #ifndef QmitkExtActionBarAdvisor_h
14 #define QmitkExtActionBarAdvisor_h
15 
16 #include <berryActionBarAdvisor.h>
17 
19 
20 #include <QIcon>
21 #include <QKeySequence>
22 
23 namespace berry {
24 
25 struct IContributionItem;
26 struct IWorkbenchWindow;
27 
28 class MenuManager;
29 
30 }
31 
33 {
34 public:
35 
37 
38 protected:
39 
40  void MakeActions(berry::IWorkbenchWindow* window) override;
41 
42  void FillMenuBar(berry::IMenuManager* menuBar) override;
43 
44  void FillToolBar(berry::IToolBarManager* toolBar) override;
45 
46 private:
47 
52 
57 
61  berry::SmartPointer<berry::MenuManager> CreateWindowMenu();
62 
67 
68 
72  void AddPerspectiveActions(berry::MenuManager* menu);
73 
74  berry::SmartPointer<berry::IContributionItem> GetItem(const QString& commandId, const QString& label,
75  const QString& tooltip = QString(), const QIcon& icon = QIcon(),
76  const QKeySequence& shortcut = QKeySequence());
77 
79 };
80 
81 #endif
QmitkExtActionBarAdvisor
Definition: QmitkExtActionBarAdvisor.h:32
berry::IWorkbenchWindow
Definition: berryIWorkbenchWindow.h:64
berry::SmartPointer< berry::IActionBarConfigurer >
berry::ActionBarAdvisor::FillToolBar
virtual void FillToolBar(IToolBarManager *toolBar)
MITK_QT_COMMON_EXT_EXPORT
#define MITK_QT_COMMON_EXT_EXPORT
Definition: org_mitk_gui_qt_ext_Export.h:26
berryActionBarAdvisor.h
berry::MenuManager
Definition: berryMenuManager.h:37
berry::ActionBarAdvisor::MakeActions
virtual void MakeActions(IWorkbenchWindow *window)
berry::IMenuManager
Definition: berryIMenuManager.h:36
berry::ActionBarAdvisor
Definition: berryActionBarAdvisor.h:51
berry::ActionBarAdvisor::FillMenuBar
virtual void FillMenuBar(IMenuManager *menuBar)
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
berry
Definition: QmitkPropertyItemModel.h:24
org_mitk_gui_qt_ext_Export.h