octave-maintainers
[Top][All Lists]
Advanced

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

Re: Zoom GUI in fltk backend


From: Ben Abbott
Subject: Re: Zoom GUI in fltk backend
Date: Fri, 24 Jul 2009 07:42:34 -0400


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

On Wed, Jul 22, 2009 at 9:31 PM, Shai Ayal<address@hidden> wrote:
On Wed, Jul 22, 2009 at 3:58 AM, John W. Eaton<address@hidden> 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






reply via email to

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