Hi,

you could try to register a Qt event filter on the QmitkRenderWindow instances (either from the QmitkStdMultiWidget or your custom implementation) and intercept the space bar event, triggering the maximisation of one view.

Best,
Sascha

On 03/26/2013 03:04 PM, Federico Milano wrote:
Yes, I've seen those. But the medical doctors I do research with insist in some layout they managed for years in a commercial application :( I have another question, related to that one. They also want to maximize a view (set it to LAYOUT_BIG_3D, LAYOUT_WIDGET1, LAYOUT_WIDGET2 or LAYOUT_WIDGET3) by pressing the space bar when the view has focus. I was considering of overwriting the keyPressEvent in my version of QmitkStdMultiWidget...but I was wondering if there's a less invasive way to do this using the interaction mechanism provided by MITK.

I would really appreciate any hint!

Best,

Federico

On Tue, Mar 26, 2013 at 6:53 AM, Goch, Caspar Jonas <[email protected] <mailto:[email protected]>> wrote:

    Hi Federico,

    as an addendum to Saschas answer. On the off chance you might not
    have noticed it, the MultiWidget does offer several choices for
    layouting the windows. See the "Layout choices" image in [1].
    Maybe one of these fits your need?

    Best,
    Caspar

    [1]
    
http://docs.mitk.org/2012.12/MITKUserManualPage.html#MITKUserManualPageMultiWidgetCustomizingViews

    -----Ursprüngliche Nachricht-----
    Von: Sascha Zelzer [mailto:[email protected]
    <mailto:[email protected]>]
    Gesendet: Montag, 25. März 2013 18:58
    An: Federico Milano
    Cc: [email protected]
    <mailto:[email protected]>
    Betreff: Re: [mitk-users] Best way to customize
    QmitkStdMultiWidget behaviour

    Hi Federico,

    the QmitkStdMultiWidget is an old class, pre-dating the
    introduction of interfaces in MITK. We introducted
    mitk::IRenderWindowPart for that purpose, which
    QmitkStdMultiWidgetEditor implements.

    Not every View in MITK is using the mitk::IRenderWindowPart yet to
    interface with implementations like QmitkStdMultiWidgetEditor, but
    this is the idea.

    If you are not satisfied with the available layout choices in
    QmitkStdMultiWidget, I am afraid you will have to implement your
    own editor.

    Best,
    Sascha

    On 03/21/2013 03:38 PM, Federico Milano wrote:
    > Hi. I want to change/customize some simple things about
    > QmitkStdMultiWidget, for example, the order of the default
    anatomical
    > views; I don't want to change its interface, only some of its
    > behaviours. What's the best way to do this? I was thinking of
    > rewriting also the QmitkStdMultiWidgetEditor plugin...but I have
    > noticed that this plugin is exposing directly
    QmitkStdMultiWidget, and
    > QmitkStdMultiWidget is not an abstract/interface class.
    >
    > I would really appreciate any advise.
    >
    > Best regards,
    >
    > Federico


    
------------------------------------------------------------------------------
    Everyone hates slow websites. So do we.
    Make your web apps faster with AppDynamics Download AppDynamics
    Lite for free today:
    http://p.sf.net/sfu/appdyn_d2d_mar
    _______________________________________________
    mitk-users mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/mitk-users



------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to