Medical Imaging Interaction Toolkit  2025.12.02
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 
88 
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_*/
Implements transparent reference counting.
#define BERRY_UI_QT
virtual SmartPointer< IEditorSite > GetEditorSite() const =0
virtual SmartPointer< IEditorInput > GetEditorInput() const =0
berryObjectMacro(berry::IEditorPart, IWorkbenchPart, ISaveablePart)
~IEditorPart() override
virtual void Init(SmartPointer< IEditorSite > site, SmartPointer< IEditorInput > input)=0