Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIEditorPart.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 BERRYIEDITORPART_H_
18 #define BERRYIEDITORPART_H_
19 
20 #include "berryIWorkbenchPart.h"
21 #include "berryISaveablePart.h"
22 
23 #include <QObject>
24 
25 namespace berry
26 {
27 
28 struct IEditorInput;
29 struct IEditorSite;
30 
70 struct BERRY_UI_QT IEditorPart : public virtual IWorkbenchPart,
71  public ISaveablePart
72 {
73 
75 
76  virtual ~IEditorPart();
77 
78 
82  //static const int PROP_INPUT = IWorkbenchPartConstants.PROP_INPUT;
83 
84 
91  virtual SmartPointer<IEditorInput> GetEditorInput() const = 0;
92 
105  virtual SmartPointer<IEditorSite> GetEditorSite() const = 0;
106 
123  virtual void Init(SmartPointer<IEditorSite> site,
124  SmartPointer<IEditorInput> input) = 0;
125 };
126 
127 }
128 
129 Q_DECLARE_INTERFACE(berry::IEditorPart, "org.blueberry.ui.IEditorPart")
130 
131 #endif /*BERRYIEDITORPART_H_*/
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT