Re: Equivalent to Xt translation manager (XtAppAddActions() etc.)?



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









[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]