Mail Archives: geda-user/2011/10/11/00:34:12
On 10/10/2011 05:17 AM, Peter Clifton wrote:
>> Hey folks. Recently, Peter Clifton helped me set up horizontal and
>> vertical scrolling in gschem via the gesture interface in Ubuntu Linux,
>> using an Apple trackpad. Well, my schematic is done, now I'm starting
>> the PCB layout. Can I do the same with PCB? This works great in
>> several other apps, like Firefox and gschem.
>
> This is the delta I apply to gpcb-menu.res
>
>
> Author: Peter Clifton<pcjc2 AT cam DOT ac DOT uk>
> Date: Wed Oct 5 23:09:54 2011 +0100
>
> Change scroll-wheel bindings to match more GTK applications
>
> diff --git a/src/gpcb-menu.res.in b/src/gpcb-menu.res.in
> index 7e63811..1b85893 100644
> --- a/src/gpcb-menu.res.in
> +++ b/src/gpcb-menu.res.in
> @@ -25,18 +25,18 @@ Mouse =
> up-shift-ctrl = { Mode(Notify) Mode(Restore)
> Display(ToggleRubberbandMode)
> }
> Up = {
> - Zoom(0.8)
> - shift = Scroll(up)
> - ctrl = Scroll(left)
> + Scroll(up)
> + shift = Scroll(left)
> + ctrl = Zoom(0.8)
> }
> pcjc2 AT pcjc2lap:~/gedasrc/pcb/git$ git log -p HEAD^^^^^^^..HEAD^^^^^^ |
> cat
> commit 80b304f0952c82441a17f07f5701d25e92385f8e
> Author: Peter Clifton<pcjc2 AT cam DOT ac DOT uk>
> Date: Wed Oct 5 23:09:54 2011 +0100
>
> Change scroll-wheel bindings to match more GTK applications
>
> diff --git a/src/gpcb-menu.res.in b/src/gpcb-menu.res.in
> index 7e63811..1b85893 100644
> --- a/src/gpcb-menu.res.in
> +++ b/src/gpcb-menu.res.in
> @@ -25,18 +25,18 @@ Mouse =
> up-shift-ctrl = { Mode(Notify) Mode(Restore) Display(ToggleRubberbandMode) }
> }
> Up = {
> - Zoom(0.8)
> - shift = Scroll(up)
> - ctrl = Scroll(left)
> + Scroll(up)
> + shift = Scroll(left)
> + ctrl = Zoom(0.8)
> }
> Down = {
> - Zoom(1.25)
> - shift = Scroll(down)
> - ctrl = Scroll(right)
> + Scroll(down)
> + shift = Scroll(right)
> + ctrl = Zoom(1.25)
> }
> # If you want zoom to center, do this instead.
> - #Up = { {Zoom(0.8) Center()} }
> - #Down = { {Zoom(1.25) Center()} }
> + #Up = { ctrl = {Zoom(0.8) Center()} }
> + #Down = { ctrl = {Zoom(1.25) Center()} }
> }
>
> MainMenu =
Thank you once again, Peter! That got me scrolling up and down. Is
there any possibility of left/right as well? It works with shifted
two-finger scrolling, but I'd really like it to be consistent with
gschem, where I have full two-dimensional scrolling. Stuff wasn't
immediately obvious in gpcb-menu.res.in, though admittedly it's been a
really long time since I've slept.
I'm sorry if I'm being a bother, I really do appreciate your help!
-Dave
--
Dave McGuire
New Kensington, PA
- Raw text -