diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-05-28 17:57:17 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-05-28 17:57:17 +0800 |
commit | 80b4de2fc0535a94d51d2c5f0192b950c9e8979b (patch) | |
tree | 00f377627f5216af484840f1ae155cd83e3e169c /ibus | |
parent | 53c6e1f1d0939b4c585301427920e0cf1dd9e341 (diff) | |
download | ibus-80b4de2fc0535a94d51d2c5f0192b950c9e8979b.tar.gz ibus-80b4de2fc0535a94d51d2c5f0192b950c9e8979b.tar.xz ibus-80b4de2fc0535a94d51d2c5f0192b950c9e8979b.zip |
Refactory Panel interface.
Diffstat (limited to 'ibus')
-rw-r--r-- | ibus/interface.py | 50 |
1 files changed, 42 insertions, 8 deletions
diff --git a/ibus/interface.py b/ibus/interface.py index 10eddf1..9411bea 100644 --- a/ibus/interface.py +++ b/ibus/interface.py @@ -125,23 +125,23 @@ class IEngine (dbus.service.Object): @method () def Destroy (self): pass - @signal () + @signal (signature="s") def CommitString (self, text): pass - @signal () + @signal (signature="ubu") def ForwardKeyEvent (self, keyval, is_press, state): pass - @signal () + @signal (signature="svu") def PreeditChanged (self, text, attrs, cursor_pos): pass # below signals are optional. The engine could create and maintain panel by self. - @signal () + @signal (signature="v") def UpdateProperties (self, properties): pass - @signal () + @signal (signature="sv") def AuxStringChanged (self, text, attrs): pass - @signal () + @signal (signature="v") def UpdateLookupTable (self, lookup_table): pass @signal () @@ -166,10 +166,43 @@ class IPanel (dbus.service.Object): dbus.service.method (dbus_interface = IBUS_PANE_IFACE, \ async_callbacks = ("reply_cb", "error_cb"), \ **args) + @method (in_signature="svu") + def SetPreeditString (self, text, attrs, cursor_pos): pass + + @method () + def ShowPreeditString (self): pass + + @method () + def HidePreeditString (self): pass + + @method (in_signature="sv") + def SetAuxString (self, text, attrs): pass + + @method () + def ShowAuxString (self): pass + + @method () + def HideAuxString (self): pass + + @method (in_signature="v") + def UpdateLookupTable (self, lookup_table): pass + + @method () + def ShowCandidateWindow (self): pass + + @method () + def HideCandidateWindow (self): pass + + @method () + def ShowLanguageBar (self): pass + + @method () + def HideLanguageBar (self): pass @method () def Destroy (self): pass + #signals @signal () def PageUp (self): pass @@ -177,7 +210,8 @@ class IPanel (dbus.service.Object): def PageDown (self): pass @signal () - def CursorUp (self): pass + def CursorBack (self): pass @signal () - def CursorDown (self): pass + def CursorForward (self): pass + |