diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2010-02-07 13:25:35 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-02-10 11:18:02 +0800 |
commit | a6ec9cf51f8ddcf3f295ebe8f74b1c3a53248fae (patch) | |
tree | 4caa0e549bd1827da503af9ff490ab2709eb73f0 /src/FullPinyinEditor.h | |
parent | efa0c8f199b0e058b3cc5f88f0d6e20c382570b3 (diff) | |
download | ibus-libpinyin-a6ec9cf51f8ddcf3f295ebe8f74b1c3a53248fae.tar.gz ibus-libpinyin-a6ec9cf51f8ddcf3f295ebe8f74b1c3a53248fae.tar.xz ibus-libpinyin-a6ec9cf51f8ddcf3f295ebe8f74b1c3a53248fae.zip |
Refactory classes, and use sigc++ to make code clear.
Diffstat (limited to 'src/FullPinyinEditor.h')
-rw-r--r-- | src/FullPinyinEditor.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/FullPinyinEditor.h b/src/FullPinyinEditor.h index 81e6e1f..9e95fa8 100644 --- a/src/FullPinyinEditor.h +++ b/src/FullPinyinEditor.h @@ -8,8 +8,17 @@ namespace PY { class FullPinyinEditor : public PinyinEditor { public: - FullPinyinEditor (void); + FullPinyinEditor (PinyinProperties & props); + ~FullPinyinEditor (void); +public: + /* virtual functions */ +#if 0 + virtual gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers); +#endif + virtual void reset (void); + +protected: gboolean insert (gint ch); gboolean removeCharBefore (void); @@ -24,8 +33,6 @@ public: gboolean moveCursorToBegin (void); gboolean moveCursorToEnd (void); - gboolean reset (void); - private: void updatePinyin (void); |