Zoom GUI in fltk backend

Ben Abbott bpabbott at mac.com
Fri Jul 24 06:42:34 CDT 2009


On Jul 23, 2009, at 2:51 PM, Shai Ayal wrote:

> On Wed, Jul 22, 2009 at 9:31 PM, Shai Ayal<shaiay at gmail.com> wrote:
>> On Wed, Jul 22, 2009 at 3:58 AM, John W. Eaton<jwe at octave.org> wrote:
>>> On 21-Jul-2009, Shai Ayal wrote:
>>>
>>> | Before I submit a changeset, I'll wait a bit to see if anyone  
>>> else has
>>> | any input on which buttons to use for what.
>>> | Anyone have any more suggestions?
>>>
>>> I don't have any strong preferences about how it should work, but  
>>> I do
>>> think it would be good to have a way to zoom other than the scroll
>>> wheel (or similar functionality from a mouse pad).
>>>
>>> Would you like for me to commit your earlier patch now?
>>>
>>
>> Let me send a better changeset in a fwe days ...
>>
>> Shai
>>
> I attach a changeset incorporating Soren's and my precious patch. It
> implements the following behavior for the fltk backend:
> Keyboard Shortcuts (operate on the current axes):
> a - autoscale
> g - toggle grid
>
> Mouse (operate on the axes below the mouse pointer)
> left drag - pan
> mouse wheel - zoom
> right drag - rectangle zoom
> left double click - autoscale
>
> It laso chages the help buttons label from "H" to "?" which might help
> people realize what it is.
> Hopefully this compromise will satisfy all (Probably, as compromises
> go, it'll just annoy everyone). Maybe in the future there will be some
> mechanism to customize the backend, so everyone can be happy
>
> Shai
> <fltk_zoom.changeset>

Shai,

On my mac I have a trackpad that allows me to pan and zoom.

(1) Pan: click and stroke.
(2) Zoom in: two fingers on pad and pinch (move them closer together).
(3) Zoom out: two finger on pad and separate (move them farther apart).

Using your patch, he panning works as expected.
However, the zoom-in/zoom-out behavior has changed.

(1) Zoom-in: two fingers on the pad and stroked to the right, left, or  
up.
(2) Zoom-out: two fingers on the pad stroked down.

Is this expected behavior?

Ben






More information about the Octave-maintainers mailing list