Medical Imaging Interaction Toolkit  2018.4.99-663e373e
Medical Imaging Interaction Toolkit
berryViewPart.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 BERRYVIEWPART_H_
14 #define BERRYVIEWPART_H_
15 
16 #include "berryIViewPart.h"
17 #include "berryIViewSite.h"
18 #include "berryWorkbenchPart.h"
19 
20 #include "berryIMemento.h"
21 
22 
23 namespace berry {
24 
67 {
68  Q_OBJECT
69  Q_INTERFACES(berry::IViewPart)
70 
71 protected:
72  ViewPart();
73 
81  void CheckSite(IWorkbenchPartSite::Pointer site) override;
82 
83 public:
84 
86 
87  void Init(IViewSite::Pointer site, IMemento::Pointer memento = IMemento::Pointer(nullptr)) override;
88 
89  void SaveState(IMemento::Pointer memento) override;
90 
91  /*
92  * Method declared on IViewPart.
93  */
94  IViewSite::Pointer GetViewSite() override;
95 
96 };
97 
98 } // namespace berry
99 
100 #endif /*BERRYVIEWPART_H_*/
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT