octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MouseMode in QtHandles


From: John W. Eaton
Subject: Re: MouseMode in QtHandles
Date: Tue, 03 Feb 2015 13:49:09 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0

On 02/03/2015 12:46 PM, Michael Goffioul wrote:

It's been a while, but looking at the code, I believe it is to keep
track of the mouse mode when the toolbar is hidden. That is: when you
hide the toolbar, you want to revert to NoMode as it could be awkward to
have some mouse mode enabled, while not being able to change it; so
m_mouseMode is reset to NoMode, as it's being used in the rest of the
code. However, when you show the toolbar again, you may want to restore
the mouse mode to what it was initially (especially to keep the visual
state of the toggle buttons in sync with the actual mouse mode).

It's probably better to check first in Matlab how this is handled. Maybe
I made things to complicated and we should just maintain the mouse mode,
even after hiding the toolbar.

What test would you do?

Maybe I'm missing something, but it seems to me that it would be sufficient to just check the figure properties when displaying the toolbar and display whatever is consistent with the properties.

jwe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]