Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFunctionalityCoordinator Class Reference

#include <QmitkFunctionalityCoordinator.h>

Inheritance diagram for QmitkFunctionalityCoordinator:
Collaboration diagram for QmitkFunctionalityCoordinator:

Public Member Functions

 QmitkFunctionalityCoordinator ()
 
virtual ~QmitkFunctionalityCoordinator ()
 
void Start ()
 
void Stop ()
 
berry::IPartListener::Events::Types GetPartEventTypes () const override
 
virtual void PartActivated (const berry::IWorkbenchPartReference::Pointer &partRef) override
 
virtual void PartDeactivated (const berry::IWorkbenchPartReference::Pointer &) override
 
virtual void PartOpened (const berry::IWorkbenchPartReference::Pointer &partRef) override
 
virtual void PartClosed (const berry::IWorkbenchPartReference::Pointer &partRef) override
 
virtual void PartHidden (const berry::IWorkbenchPartReference::Pointer &partRef) override
 
virtual void PartVisible (const berry::IWorkbenchPartReference::Pointer &partRef) override
 
virtual void WindowClosed (const berry::IWorkbenchWindow::Pointer &window) override
 
virtual void WindowOpened (const berry::IWorkbenchWindow::Pointer &) override
 
- Public Member Functions inherited from berry::IPartListener
virtual ~IPartListener ()
 
virtual void PartBroughtToTop (const IWorkbenchPartReference::Pointer &)
 
virtual void PartInputChanged (const IWorkbenchPartReference::Pointer &)
 
- Public Member Functions inherited from berry::IWindowListener
virtual ~IWindowListener ()
 
virtual void WindowActivated (const IWorkbenchWindow::Pointer &)
 
virtual void WindowDeactivated (const IWorkbenchWindow::Pointer &)
 

Protected Member Functions

void ActivateStandaloneFunctionality (berry::IWorkbenchPartReference *partRef)
 
void DeactivateStandaloneFunctionality (berry::IWorkbenchPartReference *functionality, berry::IWorkbenchPartReference *newRef)
 

Protected Attributes

berry::IWorkbenchWindow::WeakPtr m_Window
 
berry::IWorkbenchPartReferencem_StandaloneFuntionality
 
std::set< QmitkFunctionality * > m_Functionalities
 
std::set< berry::IWorkbenchPartReference * > m_VisibleStandaloneFunctionalities
 

Detailed Description

A class which coordinates active QmitkFunctionalities, e.g. calling activated and hidden on them.

Definition at line 35 of file QmitkFunctionalityCoordinator.h.

Constructor & Destructor Documentation

QmitkFunctionalityCoordinator::QmitkFunctionalityCoordinator ( )

Definition at line 25 of file QmitkFunctionalityCoordinator.cpp.

QmitkFunctionalityCoordinator::~QmitkFunctionalityCoordinator ( )
virtual

Definition at line 52 of file QmitkFunctionalityCoordinator.cpp.

Member Function Documentation

void QmitkFunctionalityCoordinator::DeactivateStandaloneFunctionality ( berry::IWorkbenchPartReference functionality,
berry::IWorkbenchPartReference newRef 
)
protected
berry::IPartListener::Events::Types QmitkFunctionalityCoordinator::GetPartEventTypes ( ) const
overridevirtual
void QmitkFunctionalityCoordinator::PartActivated ( const berry::IWorkbenchPartReference::Pointer partRef)
overridevirtual
See also
IPartListener::PartActivated()

Reimplemented from berry::IPartListener.

Definition at line 63 of file QmitkFunctionalityCoordinator.cpp.

References ActivateStandaloneFunctionality(), and berry::SmartPointer< TObjectType >::GetPointer().

void QmitkFunctionalityCoordinator::PartDeactivated ( const berry::IWorkbenchPartReference::Pointer )
overridevirtual
See also
IPartListener::PartDeactivated()

Reimplemented from berry::IPartListener.

Definition at line 69 of file QmitkFunctionalityCoordinator.cpp.

void QmitkFunctionalityCoordinator::PartHidden ( const berry::IWorkbenchPartReference::Pointer partRef)
overridevirtual
void QmitkFunctionalityCoordinator::PartOpened ( const berry::IWorkbenchPartReference::Pointer partRef)
overridevirtual
void QmitkFunctionalityCoordinator::PartVisible ( const berry::IWorkbenchPartReference::Pointer partRef)
overridevirtual
void QmitkFunctionalityCoordinator::Start ( )
void QmitkFunctionalityCoordinator::Stop ( )
void QmitkFunctionalityCoordinator::WindowClosed ( const berry::IWorkbenchWindow::Pointer window)
overridevirtual

Notifies this listener that the given window has been closed.

Reimplemented from berry::IWindowListener.

Definition at line 212 of file QmitkFunctionalityCoordinator.cpp.

void QmitkFunctionalityCoordinator::WindowOpened ( const berry::IWorkbenchWindow::Pointer window)
overridevirtual

Notifies this listener that the given window has been opened.

Reimplemented from berry::IWindowListener.

Definition at line 217 of file QmitkFunctionalityCoordinator.cpp.

Member Data Documentation

std::set<QmitkFunctionality*> QmitkFunctionalityCoordinator::m_Functionalities
protected

Saves all opened QmitkFclassunctionalities

Definition at line 114 of file QmitkFunctionalityCoordinator.h.

Referenced by PartClosed(), and PartOpened().

berry::IWorkbenchPartReference* QmitkFunctionalityCoordinator::m_StandaloneFuntionality
protected

Saves the last part that added interactors

Definition at line 109 of file QmitkFunctionalityCoordinator.h.

Referenced by ActivateStandaloneFunctionality(), and PartClosed().

std::set<berry::IWorkbenchPartReference*> QmitkFunctionalityCoordinator::m_VisibleStandaloneFunctionalities
protected

Saves all visible QmitkFunctionalities

Definition at line 118 of file QmitkFunctionalityCoordinator.h.

Referenced by PartHidden(), and PartVisible().

berry::IWorkbenchWindow::WeakPtr QmitkFunctionalityCoordinator::m_Window
protected

Saves the workbench window

Definition at line 105 of file QmitkFunctionalityCoordinator.h.


The documentation for this class was generated from the following files: