www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2011/10/11/00:34:12

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Virus-Scanned: amavisd-new at neurotica.com
Message-ID: <4E93C721.9010109@neurotica.com>
Date: Tue, 11 Oct 2011 00:33:37 -0400
From: Dave McGuire <mcguire AT neurotica DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] PCB scrolling configuration
References: <4E923EA3 DOT 4030805 AT neurotica DOT com> <1318238253 DOT 18334 DOT 1 DOT camel AT localhost>
In-Reply-To: <1318238253.18334.1.camel@localhost>
Reply-To: geda-user AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019