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