Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkMxNMultiWidgetEditor.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 QmitkMxNMultiWidgetEditor_h
14 #define QmitkMxNMultiWidgetEditor_h
15 
17 
19 
20 // c++
21 #include <memory>
22 
24 
26 {
27  Q_OBJECT
28 
29 public:
30 
31  static const QString EDITOR_ID;
32 
34  ~QmitkMxNMultiWidgetEditor() override;
35 
36  virtual QmitkLevelWindowWidget* GetLevelWindowWidget() const override { return nullptr; }
37 
41  virtual berry::IPartListener::Events::Types GetPartEventTypes() const override;
45  virtual void PartClosed(const berry::IWorkbenchPartReference::Pointer& partRef) override;
49  virtual void PartOpened(const berry::IWorkbenchPartReference::Pointer& partRef) override;
53  virtual void PartHidden(const berry::IWorkbenchPartReference::Pointer& partRef) override;
57  virtual void PartVisible(const berry::IWorkbenchPartReference::Pointer& partRef) override;
58 
59  void OnLayoutSet(int row, int column) override;
61 
62 private Q_SLOTS:
63 
64  void OnLayoutChanged();
65 
66 private:
70  void SetFocus() override;
74  void CreateQtPartControl(QWidget* parent) override;
78  void OnPreferencesChanged(const mitk::IPreferences* preferences) override;
79 
80  struct Impl;
81  std::unique_ptr<Impl> m_Impl;
82 
83 };
84 
85 #endif
QmitkLevelWindowWidget
Definition: QmitkLevelWindowWidget.h:23
mitk::InteractionSchemeSwitcher::InteractionScheme
InteractionScheme
Definition: mitkInteractionSchemeSwitcher.h:114
berry::IPartListener::PartHidden
virtual void PartHidden(const IWorkbenchPartReference::Pointer &)
Definition: berryIPartListener.h:127
MXNMULTIWIDGETEDITOR_EXPORT
#define MXNMULTIWIDGETEDITOR_EXPORT
Definition: org_mitk_gui_qt_mxnmultiwidgeteditor_Export.h:26
berry::SmartPointer< Self >
QmitkMxNMultiWidgetEditor
Definition: QmitkMxNMultiWidgetEditor.h:25
QmitkMxNMultiWidgetEditor::GetLevelWindowWidget
virtual QmitkLevelWindowWidget * GetLevelWindowWidget() const override
Definition: QmitkMxNMultiWidgetEditor.h:36
QmitkAbstractMultiWidgetEditor::OnInteractionSchemeChanged
virtual void OnInteractionSchemeChanged(mitk::InteractionSchemeSwitcher::InteractionScheme scheme)
berry::IPartListener::PartOpened
virtual void PartOpened(const IWorkbenchPartReference::Pointer &)
Definition: berryIPartListener.h:122
berry::IPartListener::PartVisible
virtual void PartVisible(const IWorkbenchPartReference::Pointer &)
Definition: berryIPartListener.h:132
berry::QtEditorPart::CreateQtPartControl
virtual void CreateQtPartControl(QWidget *parent)=0
berry::IPartListener::PartClosed
virtual void PartClosed(const IWorkbenchPartReference::Pointer &)
Definition: berryIPartListener.h:105
QmitkMxNMultiWidget
The 'QmitkMxNMultiWidget' is a 'QmitkAbstractMultiWidget' that is used to display multiple render win...
Definition: QmitkMxNMultiWidget.h:33
berry::IPartListener::GetPartEventTypes
virtual Events::Types GetPartEventTypes() const =0
QmitkAbstractMultiWidgetEditor.h
mitk::IPreferences
Interface to application preferences.
Definition: mitkIPreferences.h:50
QmitkMxNMultiWidgetEditor::EDITOR_ID
static const QString EDITOR_ID
Definition: QmitkMxNMultiWidgetEditor.h:31
berry::WorkbenchPart::SetFocus
void SetFocus() override=0
QmitkAbstractMultiWidgetEditor::OnLayoutSet
virtual void OnLayoutSet(int row, int column)
A slot that can be called if the layout has been changed. This function will call the function 'SetLa...
QmitkAbstractMultiWidgetEditor
Definition: QmitkAbstractMultiWidgetEditor.h:33
org_mitk_gui_qt_mxnmultiwidgeteditor_Export.h