From: Dexter O. <oys...@ya...> - 2008-05-04 06:40:49
|
Hey, thanks for the tip! I've read the source codes for scim_input_pad, and I still got some questions. Here's what I've understood though: 1.) scim_input_pad still basically controls scim via simulated keypresses, but it now sends it directly to the IMEngineFactory via HelperAgent.send_key_events, or the other case, directly to the InputContext via HelperAgent.commit_string.. 2.) HelperAgent needs to open a connection to scim before doing #1. 3.) No other prerequisites to do the above, just a couple of signal handling assignments, and that GIOChannel which I'm still trying to figure out what it does. My questions: 1.) HelperAgent (scim_input_pad) is run via scim panel, thru the run() function, can it be run independent of a scim module? Like within my application? 2.) I'd still need to consult the config for the hotkeys to turn on scim-anthy (I need japanese kana-to-kanji conversion), is there a way to directly turn on scim-anthy via function bypassing hotkeys? or hotkeys is the best recommended way? 3.) How to initiate a kana-to-kanji conversion? Like doing the NextCandidate (Space) event...? Thanks again, Dexter LiuCougar wrote: > > look at the source code for scim_input_pad > > On Sat, May 3, 2008 at 2:46 AM, Dexter Oyster > <oys...@ya...> wrote: >> >> I understand what the first post intends to do.. >> I am also looking for a way to "pilot" scim from a gtk application, is >> there >> a way to control scim from within the application, like simulate >> keypresses >> and kana to kanji conversion? >> >> I am developing a touch-panel only interface application, and I'd like >> to >> know if scim input can be activate via the application without keyboard >> intervention. The keyboard in my application is a soft-keyboard -- a >> customized graphical keyboard interactive to the user via the >> touch-panel >> only.. >> >> I've looked around the documentation and developer docs, but I haven't >> found >> any information on how to do this.. >> >> Any help is greatly appreciated.. >> Thanks, >> > -- View this message in context: http://www.nabble.com/Application-gtk-tp15089593p17043317.html Sent from the scim-user mailing list archive at Nabble.com. |