Hi Sebastian,

interaction with the StdMultiWidgetEditor is asked for on the mailing 
list quite often. You can in fact achieve what you want, but you should 
be aware that the platform was not designed for this scenario and you 
would be somewhat misusing it or missing an approach that would fit better.

Editors are meant to be controlled by the user and there can be zero to 
many, stacked in arbitrary layouts (albeit constrained to the main area 
in the center of the window). Changing the active layout of the four 
render window widget depending on the perspective sounds like it should 
be part of that perspective proper. Which means that the four render 
window widget should rather be a view not an editor.

If you for some reason need to stick with the current design, you will 
need a "perspective listener". On each "activate" signal, you would need 
to get the list of open editors from the workbench and try to 
dynamic_cast each entry to the QmitkStdMultiWidgetEditor class. There 
was a recent mitk-users thread about that.

Best,
Sascha

On 08/15/2015 12:03 AM, Sebastian Ordas wrote:
> Hi Team,
>
> I would like to change the active Layout e.g. Standard, 2D views up, 2D
> views left, etc. whenever I change the active perspective and also when
> it gets activated the first time.
>
> In other words, how can I set a different view layout depending on the
> active perspective?
>
> thank you!
> sebastian
>
> PS: no problems to extend StdMultiWidgetEditor but how to call it from a
> perspective when it gets changed/activated?
>
> ------------------------------------------------------------------------------
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to