From: Foster T. B. <fbr...@ad...> - 2007-01-08 18:25:27
|
Hi Ralph, keyboard_t is a step in the direction of splitting out the various event trees into their separate components. keyboard_t is intended to be the even= t tree for all events related to the keyboard. Individual widgets can attach themselves into the keyboard handler tree if they'd like to receive notification of keyboard events in particular. It is our intent to eventually have event trees for other events as well (e.g., mouse_t) The only place keyboard_t is driven is from within handle_dialog. One of th= e big issues we have yet to tackle is getting this new event mechanism integrated into legacy event handling systems. Because we haven't tackled this problem yet, Begin doesn't have a top-level mechanism to translate events from its event handlers (be they win32 or Carbon) to keyboard_t. We started down this road with handle_dialog because it has a subloop over which we have complete control. I'd recommend having a look within modal_dialog_interface.cpp, as that's where all the fun is being had at thi= s time. The underlying_handler routine is an access function for the keyboard_t mechanism so it can get to the platform-specific "thing" that does the actual handling of the event. Again, the need for this routine comes out of the need to integrate keyboard_t into the classical event handling systems found in Carbon and win32. I hope that sheds some light on the subject. If there's anything more I can do to help answer your questions, please let me know. Blessings, Foster On 1/5/07 11:31 p, "Ralph Thomas" <ra...@gm...> wrote: > Hi list, >=20 > How does adobe::keyboard_t work: >=20 > - How do keyboard events get put in there? (On Windows I can see > that the top-level window puts some in, but it won't get all of them, > will it? On Mac I can't see anything that calls > keyboard_t::dispatch...) > - What is underlying_handler() used for? >=20 > Thanks, > Ralph >=20 > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV > _______________________________________________ > Adobe-source-devel mailing list > Ado...@li... > https://lists.sourceforge.net/lists/listinfo/adobe-source-devel --=20 Foster T. Brereton <=E1=BC=B0=CF=87=CE=B8=CF=8D=CF=82>< Romans 3:= 21-26 A d o b e S o f t w a r e T e c h n o l o g y L a b "What 99 percent of programmers need to know is not how to build components but how to use them." -- Alexander Stepanov "Now we have very simple code and the meaning is perfectly clear. Drink the Kool-Aid" -- Sean Parent |