summaryrefslogtreecommitdiffstats
path: root/src/PYPBopomofoEditor.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-09-28 17:30:41 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-22 12:23:13 +0800
commitb7042d52ffb286de6231a43b3c53947a78c19155 (patch)
treec100322ad9267029bc65e8e174e1a6ade3369d81 /src/PYPBopomofoEditor.h
parent1de241261875c35144a0a732849e057bc9bcc962 (diff)
downloadibus-libpinyin-b7042d52ffb286de6231a43b3c53947a78c19155.tar.gz
ibus-libpinyin-b7042d52ffb286de6231a43b3c53947a78c19155.tar.xz
ibus-libpinyin-b7042d52ffb286de6231a43b3c53947a78c19155.zip
write bopomofo editor
Diffstat (limited to 'src/PYPBopomofoEditor.h')
-rw-r--r--src/PYPBopomofoEditor.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/PYPBopomofoEditor.h b/src/PYPBopomofoEditor.h
index 9b6b4b6..cfdca2a 100644
--- a/src/PYPBopomofoEditor.h
+++ b/src/PYPBopomofoEditor.h
@@ -35,6 +35,13 @@ public:
LibPinyinBopomofoEditor (PinyinProperties & props, Config & config);
~LibPinyinBopomofoEditor (void);
+public:
+ gboolean removeWordBefore (void);
+ gboolean removeWordAfter (void);
+
+ gboolean moveCursorLeftByWord (void);
+ gboolean moveCursorRightByWord (void);
+
protected:
String bopomofo;
gboolean m_select_mode;
@@ -47,13 +54,12 @@ protected:
gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers);
+ virtual void updatePreeditText ();
virtual void updateAuxiliaryText ();
virtual void updatePinyin (void);
-#if 0
- void updateLookupTable ();
- void updatePreeditText ();
-#endif
+ guint getCursorLeftByWord (void);
+ guint getCursorRightByWord (void);
void commit ();
void reset ();