Medical Imaging Interaction Toolkit  2018.4.99-e1268d66
Medical Imaging Interaction Toolkit
berryIViewPart.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 BERRYIVIEWPART_H_
14 #define BERRYIVIEWPART_H_
15 
17 #include "berryMacros.h"
18 
19 #include "berryIMemento.h"
20 #include "berryIWorkbenchPart.h"
21 #include "berryIViewSite.h"
22 
23 #include <QObject>
24 
25 namespace berry {
26 
70 struct BERRY_UI_QT IViewPart : public virtual IWorkbenchPart
71 {
72 
74 
75  ~IViewPart() override;
76 
89  virtual IViewSite::Pointer GetViewSite() = 0;
90 
91 
107  virtual void Init(IViewSite::Pointer site, IMemento::Pointer memento = IMemento::Pointer(nullptr)) = 0;
108 
114  virtual void SaveState(IMemento::Pointer memento) = 0;
115 };
116 
117 }
118 
119 Q_DECLARE_INTERFACE(berry::IViewPart, "org.blueberry.ui.IViewPart")
120 
121 #endif /*BERRYIVIEWPART_H_*/
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT