Dear Matt,

until now I had no problems with layout switches. I just switched to the view 
that was convenient to work with. I also don't see a problem since it can be 
done anyway using the render window menu icons.
I have a plugin that uses the widget1 view on activation, because it 
exclusively works with 2D images. So I don't want to see the remaining three 
widgets. Until now I switched the layout from Default to Widget1 using the 
GetActiveStdMultiWidget()->changeLayoutToWidget1() function of the 
QmitkFunctionality and vice versa.

I applied the layout change in the plugin activation and deactivation so that I 
don't have to switch it manually using the render window menu icons every time 
I do a plugin switch.
And because I don't want to use the legacy code anymore the question is, how 
can I do this in a View derived from the new QmitkAbstractView class.

Matthias

From: Clarkson, Matt [mailto:[email protected]]
Sent: Mittwoch, 7. August 2013 16:17
To: Noll, Matthias
Cc: [email protected]
Subject: Re: [mitk-users] Code based layout change in MITK 2013

Hi Matthias

can you remind me what you are trying to do?

In my experience, both with the legacy QmitkFunctionality, and now with the 
newer IRenderWindowPart, trying to control the layout from a plugin (View .... 
i.e. a class derived from QmitkAbstractView) is almost always problematic. The 
design concept of Editors and Views suggest that they should work independently.

Matt



On 7 Aug 2013, at 14:07, "Noll, Matthias" 
<[email protected]<mailto:[email protected]>>
 wrote:


Dear list,

I'm wondering if there is a new way to change the MITK layout to 
widget1(),widget2() etc. without using the legacy module with the 
QmitkFunctionality class?

Before it was: GetActiveStdMultiWidget()->changeLayoutToWidget1();
Since QmitkFunctionality is in the legacy module I would think that there is a 
new convenient way to access the MITK layout, but I can't seem to find it. I 
could copy the GetActiveStdMultiWidget() function from QmitkFunctionality but 
that's just code duplication. Any suggestions?

Regards,
Matthias

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to