26 : m_StandaloneFuntionality(0)
34 for (
auto i = wnds.begin(); i != wnds.end(); ++i)
36 (*i)->GetPartService()->AddPartListener(
this);
46 for (
auto i = wnds.begin(); i != wnds.end(); ++i)
48 (*i)->GetPartService()->RemovePartListener(
this);
77 if ( partRef->GetId() == QmitkStdMultiWidgetEditor::EDITOR_ID )
82 (*it)->StdMultiWidgetAvailable(*(partRef
83 ->GetPart(
false).Cast<QmitkStdMultiWidgetEditor>()->GetStdMultiWidget()));
100 if ( partRef->GetId() == QmitkStdMultiWidgetEditor::EDITOR_ID )
107 (*it)->StdMultiWidgetClosed(*(stdMultiWidgetEditor->GetStdMultiWidget()));
108 (*it)->StdMultiWidgetNotAvailable();
127 _QmitkFunctionality->ClosePartProxy();
137 if(_QmitkFunctionality != 0)
139 _QmitkFunctionality->SetVisible(
false);
140 _QmitkFunctionality->Hidden();
157 _QmitkFunctionality->SetVisible(
true);
158 _QmitkFunctionality->Visible();
161 if( _QmitkFunctionality->IsExclusiveFunctionality() )
177 MITK_INFO <<
"**** Activating legacy standalone functionality";
187 else if (dynamic_cast<mitk::IZombieViewPart*>(partRef->
GetPart(
false).GetPointer()) &&
198 if (partRef == 0)
return;
219 window->GetPartService()->AddPartListener(
this);
berry::IPartListener::Events::Types GetPartEventTypes() const override
void DeactivateStandaloneFunctionality(berry::IWorkbenchPartReference *functionality, berry::IWorkbenchPartReference *newRef)
virtual SmartPointer< IWorkbenchPart > GetPart(bool restore)=0
void SetActivated(bool activated)
virtual void PartClosed(const berry::IWorkbenchPartReference::Pointer &partRef) override
virtual void RemoveWindowListener(IWindowListener *listener)=0
std::set< berry::IWorkbenchPartReference * > m_VisibleStandaloneFunctionalities
QmitkFunctionalityCoordinator()
virtual void Deactivated()
virtual bool IsExclusiveFunctionality() const
virtual void PartOpened(const berry::IWorkbenchPartReference::Pointer &partRef) override
void ActivateStandaloneFunctionality(berry::IWorkbenchPartReference *partRef)
virtual void WindowOpened(const berry::IWorkbenchWindow::Pointer &) override
virtual void PartDeactivated(const berry::IWorkbenchPartReference::Pointer &) override
virtual ~QmitkFunctionalityCoordinator()
virtual void PartVisible(const berry::IWorkbenchPartReference::Pointer &partRef) override
Interface for MITK Workbench Views with special Zombie state handling.
The base class of all MITK related blueberry views (~ in the old version of MITK, this was called "Fu...
virtual void AddWindowListener(IWindowListener *listener)=0
ObjectType * GetPointer() const
virtual void PartActivated(const berry::IWorkbenchPartReference::Pointer &partRef) override
berry::IWorkbenchPartReference * m_StandaloneFuntionality
virtual void WindowClosed(const berry::IWorkbenchWindow::Pointer &window) override
virtual void PartHidden(const berry::IWorkbenchPartReference::Pointer &partRef) override
SmartPointer< Other > Cast() const
std::set< QmitkFunctionality * > m_Functionalities