Re: Equivalent to Xt translation manager (XtAppAddActions() etc.)?
- From: Roel Vanhout <roel riks nl>
- To: Bob Caryl <bob fis-cal com>
- Cc: GTK-- Mailing List <gtkmm-list gnome org>, Toralf Lund <toralf procaptura com>
- Subject: Re: Equivalent to Xt translation manager (XtAppAddActions() etc.)?
- Date: Tue, 09 Aug 2005 16:50:27 +0200
I think he's trying to ask if there is a way in gtkmm to fire an event
when a certain sequence of keypresses, mousemovements and mouseclicks is
done by the user. AFAIK the answer to that is 'no'.
Bob Caryl wrote:
What's your point?
Toralf Lund wrote:
> Bob Caryl wrote:
>> Yes, see:
> Doesn't that page just describe the basic event mechanism as well as
> high-level signals or callbacks? That's not quite the same thing as
> using Xt translations. The translation manager is essentially a layer
> above the event handling, but below widget callbacks/signals. It saves
> you from from writing code for each event when you want to do a
> certain action after a *sequence* of events. You can specify a handler
> or callback for, say, a keypress followed by a mouse button-click
> followed by motion followed by mouse release followed by key release
> via a single "translation" event. It may be seen as a way to define
> your own highlevel callbacks/signals.
>> Toralf Lund wrote:
>>> Does Gtkmm/Gtk/GDK have an equivalent to XtAppAddActions()/the Xt
>>> translations manager?
>>> What the translation manager does is, and I quote,
>>> The Xt translation manager calls an action routine when an event
>>> sequence matches an event specification in a widget translation
>>> table. In a translation table, actions are associated with event
>>> specifications. More than one event sequence can invoke the same
>>> action routine.
>>> [ from http://docs.hp.com/en/B1171-90145/ch03s04.html ]
>>> - Toralf
>>> gtkmm-list mailing list
>>> gtkmm-list gnome org
>> gtkmm-list mailing list
>> gtkmm-list gnome org
gtkmm-list mailing list
gtkmm-list gnome org
] [Thread Prev