Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryViewPart.h
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 #ifndef BERRYVIEWPART_H_
18 #define BERRYVIEWPART_H_
19 
20 #include "berryIViewPart.h"
21 #include "berryIViewSite.h"
22 #include "berryWorkbenchPart.h"
23 
24 #include "berryIMemento.h"
25 
26 
27 namespace berry {
28 
71 {
72  Q_OBJECT
73  Q_INTERFACES(berry::IViewPart)
74 
75 protected:
76  ViewPart();
77 
85  void CheckSite(IWorkbenchPartSite::Pointer site) override;
86 
87 public:
88 
90 
91  void Init(IViewSite::Pointer site, IMemento::Pointer memento = IMemento::Pointer(nullptr)) override;
92 
93  void SaveState(IMemento::Pointer memento) override;
94 
95  /*
96  * Method declared on IViewPart.
97  */
98  IViewSite::Pointer GetViewSite() override;
99 
100 };
101 
102 } // namespace berry
103 
104 #endif /*BERRYVIEWPART_H_*/
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT