@method (in_signature = "b")
def SetEnable (self, enable): pass
+ @method (in_signature = "s")
+ def TriggerProperty (self, property): pass
+
@method ()
def Destroy (self): pass
def PreeditChanged (self, text, attrs, cursor_pos): pass
# below signals are optional. The engine could create and maintain panel by self.
+ @signal ()
+ def UpdateProperties (self, properties): pass
+
@signal ()
def AuxStringChanged (self, text, attrs): pass
def _preedit_changed_cb (self, engine, text, attrs, cursor):
self.preedit_changed (self, text, attrs, cursor)
+ def _aux_string_changed_cb (self, engine, text, attrs):
+ pass
+
+ def _update_lookup_table (self, engine, lookup_table):
+ pass
+
+ def _show_lookup_table (self, engine):
+ pass
+
+ def _hide_lookup_table (self, engine):
+ pass
+
def _remove_engine_handlers (self):
assert self._engine != None
for id in self._engine_handler_ids:
def _install_engine_handlers (self):
id = self._engine.connect ("destroy", self._engine_destroy_cb)
+ self._engine_handler_ids.append (id)
id = self._engine.connect ("commit-string", self._commit_string_cb)
self._engine_handler_ids.append (id)
id = self._engine.connect ("preedit-changed", self._preedit_changed_cb)
self._engine_handler_ids.append (id)
+ id = self._engine.connect ("aux-string-changed", self._aux_string_changed_cb)
+ self._engine_handler_ids.append (id)
+ id = self._engine.connect ("update-lookup-table", self._update_lookup_table_cb)
+ self._engine_handler_ids.append (id)
+ id = self._engine.connect ("show-lookup-table", self._show_lookup_table_cb)
+ self._engine_handler_ids.append (id)
+ id = self._engine.connect ("hide-lookup-table", self._hide_lookup_table_cb)
+ self._engine_handler_ids.append (id)
+
self.emit ("forward-key-event", args[0], arg[1], arg[2])
return True
elif message.is_signal (ibus.IBUS_ENGINE_IFACE, "PreeditChanged"):
- args = message.get_args_list ()
attrs = ibus.attr_list_from_dbus_value (args[1])
- self.emit ("preedit-changed", args[0], attrs, args[2])
+ self.emit ("preedit-changed", args[0], args[1], args[2])
return True
elif message.is_signal (ibus.IBUS_ENGINE_IFACE, "AuxStringChanged"):
- args = message.get_args_list ()
attrs = ibus.attr_list_from_dbus_value (args[1])
- self.emit ("aux-string-changed", args[0], attrs)
+ self.emit ("aux-string-changed", args[0], args[1])
return True
elif message.is_signal (ibus.IBUS_ENGINE_IFACE, "UpdateLookupTable"):
args = message.get_args_list ()