Hello,

I have a question regarding the current best practice if I have the following 
use case.

I have a view that should responde (e.g. updating its GUI) to any position 
change (as long as the view is open; it should not matter if it has the focus 
or not) in the editor (currently the default StdMultiWidget).

There are several MITK Diffusion views which realize that, by buildung upon 
QmitkFunctionality and using the overload of 
QmitkFunctionality::StdMultiWidgetAvailable and 
QmitkFuncitonality::StdMultiWidgetNotAvailable to do so.
But I was wondering if this pattern may be outdated, because QmitkFunktionality 
is in the legacy module. This (at least to me) implies that it is still there 
for backwards compatibality but not the prefered solution anymore. Am I right? 
If so, is there any example / template how to do it currently

Currently we tried a different approach (which makes proplems ;). The view 
implements IRenderWindowPartListener and uses RenderWindowPartActivated() to 
get the renderwindow part and therefore the SliceNavigationController to enlist 
the observer. With this approach we are currently running into the problem to 
correctly and timely removing the observerse (view destructor is to late -> 
crash; berry::IPartListener::PartClosed() is triggered for every view in the 
part -> observers become removed even if a different view is closed).

Any help is appriciated.
Thank you very much.

Best regards,

Ralf Floca

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to