Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifndef QMITKEXTACTIONBARADVISOR_H_
18 #define QMITKEXTACTIONBARADVISOR_H_
19 
20 #include <berryActionBarAdvisor.h>
21 
23 
24 #include <QIcon>
25 #include <QKeySequence>
26 
27 namespace berry {
28 
29 struct IContributionItem;
30 struct IWorkbenchWindow;
31 
32 class MenuManager;
33 
34 }
35 
37 {
38 public:
39 
41 
42 protected:
43 
44  void MakeActions(berry::IWorkbenchWindow* window) override;
45 
46  void FillMenuBar(berry::IMenuManager* menuBar) override;
47 
48  void FillToolBar(berry::IToolBarManager* toolBar) override;
49 
50 private:
51 
56 
61 
65  berry::SmartPointer<berry::MenuManager> CreateWindowMenu();
66 
71 
72 
76  void AddPerspectiveActions(berry::MenuManager* menu);
77 
78  berry::SmartPointer<berry::IContributionItem> GetItem(const QString& commandId, const QString& label,
79  const QString& tooltip = QString(), const QIcon& icon = QIcon(),
80  const QKeySequence& shortcut = QKeySequence());
81 
83 };
84 
85 #endif /*QMITKEXTACTIONBARADVISOR_H_*/
virtual void FillToolBar(IToolBarManager *toolBar)
virtual void FillMenuBar(IMenuManager *menuBar)
virtual void MakeActions(IWorkbenchWindow *window)
#define MITK_QT_COMMON_EXT_EXPORT
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