summaryrefslogtreecommitdiffstats
path: root/ibus/panel.py
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-07-20 11:02:29 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-07-20 11:02:29 +0800
commit492c222924bac40f218015d07bcad037f6168341 (patch)
tree936d23397388942dd997975f6eab9aa53c95dc52 /ibus/panel.py
parent3aafb8f024f73d32284304948d548964d6021082 (diff)
downloadibus-492c222924bac40f218015d07bcad037f6168341.tar.gz
ibus-492c222924bac40f218015d07bcad037f6168341.tar.xz
ibus-492c222924bac40f218015d07bcad037f6168341.zip
Add some interface.
Diffstat (limited to 'ibus/panel.py')
-rw-r--r--ibus/panel.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/ibus/panel.py b/ibus/panel.py
index 3fe085d..5901a5f 100644
--- a/ibus/panel.py
+++ b/ibus/panel.py
@@ -53,15 +53,45 @@ class PanelBase(ibus.Object):
def update_preedit(self, text, attrs, cursor_pos, visible):
pass
+ def show_preedit(self):
+ pass
+
+ def hide_preedit(self):
+ pass
+
def update_aux_string(self, text, attrs, visible):
pass
+ def show_aux_string(self):
+ pass
+
+ def hide_aux_string(self):
+ pass
+
def update_lookup_table(self, lookup_table, visible):
pass
+ def show_lookup_table(self):
+ pass
+
+ def hide_lookup_table(self):
+ pass
+
def show_candidate_window(self):
pass
+ def page_up_lookup_table(self):
+ pass
+
+ def page_down_lookup_table(self):
+ pass
+
+ def cursor_up_lookup_table(self):
+ pass
+
+ def cursor_down_lookup_table(self):
+ pass
+
def hide_candidate_window(self):
pass
@@ -144,6 +174,24 @@ class PanelProxy(interface.IPanel):
lookup_table = ibus.lookup_table_from_dbus_value(lookup_table)
self.__panel.update_lookup_table(lookup_table, show)
+ def ShowLookupTable(self):
+ self.__panel.show_lookup_table()
+
+ def HideLookupTable(self):
+ self.__panel.hide_lookup_table()
+
+ def PageUpLookupTable(self):
+ self.__panel.page_up_lookup_table()
+
+ def PageDownLookupTable(self):
+ self.__panel.page_down_lookup_table()
+
+ def CursorUpLookupTable(self):
+ self.__panel.cursor_up_lookup_table()
+
+ def CursorDownLookupTable(self):
+ self.__panel.cursor_down_lookup_table()
+
def ShowCandidateWindow(self):
self.__panel.show_candidate_window()