Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
berryIEditorPart.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 BERRYIEDITORPART_H_
14 #define BERRYIEDITORPART_H_
15 
16 #include "berryIWorkbenchPart.h"
17 #include "berryISaveablePart.h"
18 
19 #include <QObject>
20 
21 namespace berry
22 {
23 
24 struct IEditorInput;
25 struct IEditorSite;
26 
66 struct BERRY_UI_QT IEditorPart : public virtual IWorkbenchPart,
67  public ISaveablePart
68 {
69 
71 
72  ~IEditorPart() override;
73 
74 
78  //static const int PROP_INPUT = IWorkbenchPartConstants.PROP_INPUT;
79 
80 
87  virtual SmartPointer<IEditorInput> GetEditorInput() const = 0;
88 
101  virtual SmartPointer<IEditorSite> GetEditorSite() const = 0;
102 
117  virtual void Init(SmartPointer<IEditorSite> site,
118  SmartPointer<IEditorInput> input) = 0;
119 };
120 
121 }
122 
123 Q_DECLARE_INTERFACE(berry::IEditorPart, "org.blueberry.ui.IEditorPart")
124 
125 #endif /*BERRYIEDITORPART_H_*/
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berryISaveablePart.h
berry::IEditorPart
Definition: berryIEditorPart.h:66
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IWorkbenchPart
Definition: berryIWorkbenchPart.h:106
berryIWorkbenchPart.h
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:33
berry::ISaveablePart
Definition: berryISaveablePart.h:33
berry
Definition: QmitkPropertyItemModel.h:24