der Mouse wrote:
>>> Also, what are the semantics of a list of actions, such as is
>>> specified for Right?  It wasn't clear from a quick look at the
>>> existing implementation.
>> The documentation has an appendix of all actions and their semantics.
> 
> It's actually got two relevant appendices; I missed them.  Thank you.
> 
> However, I'm still not clear on what the semantics of this are:
> 
>       Mouse =
>       {
> ...
>         Right = {
>           { Mode(Save) Mode(Rotate) Mode(Notify) Mode(Release) Mode(Restore)
>           }
>         }
> ...
>       }
> 
> The right button invokes...what?  It looks a bit like a menu, but it's
> missing the string names that the documentation says are required for a
> menu; also, there's language implying that popup menus aren't yet
> implemented, and I can't see what other sort of menu could be attached
> to a mouse button.  Comparing it to Left and Middle makes it look as
> though it's trying to attach multiple different actions to the same
> no-modifiers click, which doesn't make much sense.
> 
> I tried to follow through the code to see what it would actually do,
> but got sufficiently lost in the maze of Resource code that I decided
> it would certainly be easier and would almost certainly produce a more
> accurate result to ask rather than to try to guess.  There's clearly
> something I'm still missing; I'll go poke around more.

For the GTK HID, the mouse section is ignored.  I never quite figured 
out how to implement it and I have been substantially overextended 
lately.  Also the popup menus in the GTK HID are partially implemented. 
  Popup1 is defined in gpcb-menu.res and a call to it is hard coded in 
src/hid/gtk/gui-output-events.c.  The goal which hasn't been reached yet 
is that there would be a Popup() action that would take a popup menu 
name as an argument.  Then once the mouse stuff was moved out of 
hard-coded land into gpcb-menu.res controlled land, we'd have the 
ability to connect up the right click popup that currently exists.

For the lesstif HID, I probably shouldn't comment too much as I'm not 
quite sure.  However I do believe that the mouse section of pcb-menu.res 
is used there.

As for the exact meaning of that line in pcb-menu.res, I'll have to let 
someone else answer.

-Dan




_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to