Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <QmitkFunctionalityCoordinator.h>
Protected Member Functions | |
void | ActivateStandaloneFunctionality (berry::IWorkbenchPartReference *partRef) |
void | DeactivateStandaloneFunctionality (berry::IWorkbenchPartReference *functionality, berry::IWorkbenchPartReference *newRef) |
Protected Attributes | |
berry::IWorkbenchWindow::WeakPtr | m_Window |
berry::IWorkbenchPartReference * | m_StandaloneFuntionality |
std::set< QmitkFunctionality * > | m_Functionalities |
std::set< berry::IWorkbenchPartReference * > | m_VisibleStandaloneFunctionalities |
A class which coordinates active QmitkFunctionalities, e.g. calling activated and hidden on them.
Definition at line 31 of file QmitkFunctionalityCoordinator.h.
QmitkFunctionalityCoordinator::QmitkFunctionalityCoordinator | ( | ) |
Definition at line 21 of file QmitkFunctionalityCoordinator.cpp.
|
override |
Definition at line 48 of file QmitkFunctionalityCoordinator.cpp.
|
protected |
Activates the standalone functionality
Definition at line 168 of file QmitkFunctionalityCoordinator.cpp.
References QmitkFunctionality::Activated(), DeactivateStandaloneFunctionality(), berry::IWorkbenchPartReference::GetPart(), QmitkFunctionality::IsActivated(), QmitkFunctionality::IsExclusiveFunctionality(), m_StandaloneFuntionality, MITK_INFO, and QmitkFunctionality::SetActivated().
Referenced by PartActivated(), PartHidden(), and PartVisible().
|
protected |
Deactivates the standalone functionality
Definition at line 191 of file QmitkFunctionalityCoordinator.cpp.
References QmitkFunctionality::Deactivated(), berry::IWorkbenchPartReference::GetPart(), QmitkFunctionality::IsActivated(), and QmitkFunctionality::SetActivated().
Referenced by ActivateStandaloneFunctionality(), and PartClosed().
|
overridevirtual |
Implements berry::IPartListener.
Definition at line 52 of file QmitkFunctionalityCoordinator.cpp.
References berry::IPartListener::Events::ACTIVATED, berry::IPartListener::Events::CLOSED, berry::IPartListener::Events::DEACTIVATED, berry::IPartListener::Events::HIDDEN, berry::IPartListener::Events::OPENED, and berry::IPartListener::Events::VISIBLE.
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 59 of file QmitkFunctionalityCoordinator.cpp.
References ActivateStandaloneFunctionality(), and berry::SmartPointer< TObjectType >::GetPointer().
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 93 of file QmitkFunctionalityCoordinator.cpp.
References berry::SmartPointer< TObjectType >::Cast(), DeactivateStandaloneFunctionality(), QmitkStdMultiWidgetEditor::EDITOR_ID, berry::SmartPointer< TObjectType >::GetPointer(), berry::SmartPointer< TObjectType >::IsNotNull(), m_Functionalities, and m_StandaloneFuntionality.
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 65 of file QmitkFunctionalityCoordinator.cpp.
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 129 of file QmitkFunctionalityCoordinator.cpp.
References ActivateStandaloneFunctionality(), berry::SmartPointer< TObjectType >::Cast(), berry::SmartPointer< TObjectType >::GetPointer(), and m_VisibleStandaloneFunctionalities.
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 70 of file QmitkFunctionalityCoordinator.cpp.
References berry::SmartPointer< TObjectType >::Cast(), QmitkStdMultiWidgetEditor::EDITOR_ID, berry::SmartPointer< TObjectType >::GetPointer(), berry::SmartPointer< TObjectType >::IsNotNull(), and m_Functionalities.
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 147 of file QmitkFunctionalityCoordinator.cpp.
References ActivateStandaloneFunctionality(), berry::SmartPointer< TObjectType >::Cast(), berry::SmartPointer< TObjectType >::GetPointer(), berry::SmartPointer< TObjectType >::IsNotNull(), and m_VisibleStandaloneFunctionalities.
void QmitkFunctionalityCoordinator::Start | ( | ) |
Add listener
Definition at line 26 of file QmitkFunctionalityCoordinator.cpp.
References berry::IWorkbench::AddWindowListener(), and berry::PlatformUI::GetWorkbench().
void QmitkFunctionalityCoordinator::Stop | ( | ) |
Remove listener
Definition at line 36 of file QmitkFunctionalityCoordinator.cpp.
References berry::PlatformUI::GetWorkbench(), berry::PlatformUI::IsWorkbenchRunning(), and berry::IWorkbench::RemoveWindowListener().
|
overridevirtual |
Notifies this listener that the given window has been closed.
Reimplemented from berry::IWindowListener.
Definition at line 208 of file QmitkFunctionalityCoordinator.cpp.
|
overridevirtual |
Notifies this listener that the given window has been opened.
Reimplemented from berry::IWindowListener.
Definition at line 213 of file QmitkFunctionalityCoordinator.cpp.
|
protected |
Saves all opened QmitkFclassunctionalities
Definition at line 110 of file QmitkFunctionalityCoordinator.h.
Referenced by PartClosed(), and PartOpened().
|
protected |
Saves the last part that added interactors
Definition at line 105 of file QmitkFunctionalityCoordinator.h.
Referenced by ActivateStandaloneFunctionality(), and PartClosed().
|
protected |
Saves all visible QmitkFunctionalities
Definition at line 114 of file QmitkFunctionalityCoordinator.h.
Referenced by PartHidden(), and PartVisible().
|
protected |
Saves the workbench window
Definition at line 101 of file QmitkFunctionalityCoordinator.h.