Medical Imaging Interaction Toolkit
2016.11.0
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 35 of file QmitkFunctionalityCoordinator.h.
QmitkFunctionalityCoordinator::QmitkFunctionalityCoordinator | ( | ) |
Definition at line 25 of file QmitkFunctionalityCoordinator.cpp.
|
virtual |
Definition at line 52 of file QmitkFunctionalityCoordinator.cpp.
|
protected |
Activates the standalone functionality
Definition at line 172 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 195 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 56 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 63 of file QmitkFunctionalityCoordinator.cpp.
References ActivateStandaloneFunctionality(), and berry::SmartPointer< TObjectType >::GetPointer().
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 97 of file QmitkFunctionalityCoordinator.cpp.
References berry::SmartPointer< TObjectType >::Cast(), DeactivateStandaloneFunctionality(), berry::SmartPointer< TObjectType >::GetPointer(), berry::SmartPointer< TObjectType >::IsNotNull(), m_Functionalities, and m_StandaloneFuntionality.
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 69 of file QmitkFunctionalityCoordinator.cpp.
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 133 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 74 of file QmitkFunctionalityCoordinator.cpp.
References berry::SmartPointer< TObjectType >::Cast(), berry::SmartPointer< TObjectType >::GetPointer(), berry::SmartPointer< TObjectType >::IsNotNull(), and m_Functionalities.
|
overridevirtual |
Reimplemented from berry::IPartListener.
Definition at line 151 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 30 of file QmitkFunctionalityCoordinator.cpp.
References berry::IWorkbench::AddWindowListener(), and berry::PlatformUI::GetWorkbench().
void QmitkFunctionalityCoordinator::Stop | ( | ) |
Remove listener
Definition at line 40 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 212 of file QmitkFunctionalityCoordinator.cpp.
|
overridevirtual |
Notifies this listener that the given window has been opened.
Reimplemented from berry::IWindowListener.
Definition at line 217 of file QmitkFunctionalityCoordinator.cpp.
|
protected |
Saves all opened QmitkFclassunctionalities
Definition at line 114 of file QmitkFunctionalityCoordinator.h.
Referenced by PartClosed(), and PartOpened().
|
protected |
Saves the last part that added interactors
Definition at line 109 of file QmitkFunctionalityCoordinator.h.
Referenced by ActivateStandaloneFunctionality(), and PartClosed().
|
protected |
Saves all visible QmitkFunctionalities
Definition at line 118 of file QmitkFunctionalityCoordinator.h.
Referenced by PartHidden(), and PartVisible().
|
protected |
Saves the workbench window
Definition at line 105 of file QmitkFunctionalityCoordinator.h.