Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIViewPart.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 BERRYIVIEWPART_H_
18 #define BERRYIVIEWPART_H_
19 
21 #include "berryMacros.h"
22 
23 #include "berryIMemento.h"
24 #include "berryIWorkbenchPart.h"
25 #include "berryIViewSite.h"
26 
27 #include <QObject>
28 
29 namespace berry {
30 
74 struct BERRY_UI_QT IViewPart : public virtual IWorkbenchPart
75 {
76 
78 
79  virtual ~IViewPart();
80 
93  virtual IViewSite::Pointer GetViewSite() = 0;
94 
95 
111  virtual void Init(IViewSite::Pointer site, IMemento::Pointer memento = IMemento::Pointer(nullptr)) = 0;
112 
118  virtual void SaveState(IMemento::Pointer memento) = 0;
119 };
120 
121 }
122 
123 Q_DECLARE_INTERFACE(berry::IViewPart, "org.blueberry.ui.IViewPart")
124 
125 #endif /*BERRYIVIEWPART_H_*/
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT