self.__ibus.SetFactory(factory)
gobject.type_register(Panel, "IBusPanel")
-
-class PanelProxy(interface.IPanel):
- def __init__ (self, panel, dbusconn, object_path):
- super(PanelProxy, self).__init__(dbusconn, object_path)
- self.__dbusconn = dbusconn
- self.__panel = panel
-
- def SetCursorLocation(self, x, y, w, h):
- self.__panel.set_cursor_location(x, y, w, h)
-
- def UpdatePreedit(self, text, attrs, cursor_pos, show):
- attrs = ibus.attr_list_from_dbus_value(attrs)
- self.__panel.update_preedit(text, atrrs, cursor_pos, show)
-
- def ShowPreeditString(self):
- self.__panel.show_preedit_string()
-
- def HidePreeditString(self):
- self.__panel.hide_preedit_string()
-
- def UpdateAuxString(self, text, attrs, show):
- attrs = ibus.attr_list_from_dbus_value(attrs)
- self.__panel.update_aux_string(text, attrs, show)
-
- def ShowAuxString(self):
- self.__panel.show_aux_string()
-
- def HideAuxString(self):
- self.__panel.hide_aux_string()
-
- def UpdateLookupTable(self, lookup_table, show):
- lookup_table = ibus.lookup_table_from_dbus_value(lookup_table)
- self.__panel.update_lookup_table(lookup_table, show)
-
- def ShowCandidateWindow(self):
- self.__panel.show_candidate_window()
-
- def HideCandidateWindow(self):
- self.__panel.hide_candidate_window()
-
- def ShowLanguageBar(self):
- self.__panel.show_language_bar()
-
- def HideLanguageBar(self):
- self.__panel.hide_language_bar()
-
- def RegisterProperties(self, props):
- props = ibus.prop_list_from_dbus_value(props)
- self.__panel.register_properties(props)
-
- def UpdateProperty(self, prop):
- prop = ibus.property_from_dbus_value(prop)
- self.__panel.update_property(prop)
-
- def FocusIn(self, ic):
- self.__panel.focus_in(ic)
-
- def FocusOut(self, ic):
- self.__panel.focus_out(ic)
-
- def StatesChanged(self):
- self.__panel.states_changed()
-
- def Reset(self):
- self.__panel.reset()
-
- def Destroy(self):
- self.__panel.destroy()
-