Medical Imaging Interaction Toolkit  2018.4.99-36d69b77
Medical Imaging Interaction Toolkit
berrySeparator.cpp
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 #include "berrySeparator.h"
15 
16 #include <QMenu>
17 #include <QToolBar>
18 
19 namespace berry {
20 
22 {
23 }
24 
25 Separator::Separator(const QString& groupName)
26  : AbstractGroupMarker(groupName)
27 {
28 }
29 
30 void Separator::Fill(QMenu* menu, QAction* before)
31 {
32  if (before)
33  {
34  menu->insertSeparator(before);
35  }
36  else
37  {
38  menu->addSeparator();
39  }
40 }
41 
42 void Separator::Fill(QToolBar* toolbar, QAction* before)
43 {
44  if (before)
45  {
46  toolbar->insertSeparator(before);
47  }
48  else
49  {
50  toolbar->addSeparator();
51  }
52 }
53 
55 {
56  return true;
57 }
58 
59 }
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
bool IsSeparator() const override
void Fill(QMenu *menu, QAction *before) override