Re: Equivalent to Xt translation manager (XtAppAddActions() etc.)?
- From: Toralf Lund <toralf procaptura com>
- To: GTK-- Mailing List <gtkmm-list gnome org>
- Subject: Re: Equivalent to Xt translation manager (XtAppAddActions() etc.)?
- Date: Tue, 09 Aug 2005 17:53:53 +0200
Roel Vanhout wrote:
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.
Exactly. I thought this was clear enough from the documentation
paragraph I included...
AFAIK the answer to that is 'no'.
To bad ;-(
So how are the high-level widget signals (like item selection, button
press etc.) implemented, then? Via lots of explicit tests etc. in event
handlers? In Xt those were also defined via the translation manager, I
believe...
cheers,
roel
Bob Caryl wrote:
What's your point?
Toralf Lund wrote:
> Bob Caryl wrote:
>
>> Yes, see: >>
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apb.html#id2510543
>>
>
>
> 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
>>> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>>>
>>
>> _______________________________________________
>> gtkmm-list mailing list
>> gtkmm-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
>
>
>
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]