diff options
author | Peng Wu <alexepico@gmail.com> | 2014-05-21 09:46:16 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-05-21 09:46:16 +0800 |
commit | 7a98868d07581655b7a11c84005ec9cef7d50539 (patch) | |
tree | ba2f8ad45139916ebc2882a820d165a31e5a2765 /src/PYPBopomofoEditor.cc | |
parent | 7813d0b1711f08b0164242499c6ac02d30fab966 (diff) | |
download | ibus-libpinyin-7a98868d07581655b7a11c84005ec9cef7d50539.tar.gz ibus-libpinyin-7a98868d07581655b7a11c84005ec9cef7d50539.tar.xz ibus-libpinyin-7a98868d07581655b7a11c84005ec9cef7d50539.zip |
remove LibPinyin* class prefix
Diffstat (limited to 'src/PYPBopomofoEditor.cc')
-rw-r--r-- | src/PYPBopomofoEditor.cc | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc index 5c901c2..e0788a7 100644 --- a/src/PYPBopomofoEditor.cc +++ b/src/PYPBopomofoEditor.cc @@ -40,29 +40,29 @@ const static gchar * bopomofo_select_keys[] = { "qweasdzxcr" }; -LibPinyinBopomofoEditor::LibPinyinBopomofoEditor +BopomofoEditor::BopomofoEditor (PinyinProperties & props, Config & config) - : LibPinyinPhoneticEditor (props, config), + : PhoneticEditor (props, config), m_select_mode (FALSE) { m_instance = LibPinyinBackEnd::instance ().allocChewingInstance (); } -LibPinyinBopomofoEditor::~LibPinyinBopomofoEditor (void) +BopomofoEditor::~BopomofoEditor (void) { LibPinyinBackEnd::instance ().freeChewingInstance (m_instance); m_instance = NULL; } void -LibPinyinBopomofoEditor::reset (void) +BopomofoEditor::reset (void) { m_select_mode = FALSE; - LibPinyinPhoneticEditor::reset (); + PhoneticEditor::reset (); } gboolean -LibPinyinBopomofoEditor::insert (gint ch) +BopomofoEditor::insert (gint ch) { /* is full */ if (G_UNLIKELY (m_text.length () >= MAX_PINYIN_LEN)) @@ -77,7 +77,7 @@ LibPinyinBopomofoEditor::insert (gint ch) gboolean -LibPinyinBopomofoEditor::processGuideKey (guint keyval, guint keycode, +BopomofoEditor::processGuideKey (guint keyval, guint keycode, guint modifiers) { if (!m_config.guideKey ()) @@ -99,7 +99,7 @@ LibPinyinBopomofoEditor::processGuideKey (guint keyval, guint keycode, } gboolean -LibPinyinBopomofoEditor::processAuxiliarySelectKey +BopomofoEditor::processAuxiliarySelectKey (guint keyval, guint keycode, guint modifiers) { if (G_UNLIKELY (cmshm_filter (modifiers) != 0)) @@ -135,7 +135,7 @@ LibPinyinBopomofoEditor::processAuxiliarySelectKey } gboolean -LibPinyinBopomofoEditor::processSelectKey (guint keyval, guint keycode, +BopomofoEditor::processSelectKey (guint keyval, guint keycode, guint modifiers) { if (G_UNLIKELY (!m_text)) @@ -164,7 +164,7 @@ LibPinyinBopomofoEditor::processSelectKey (guint keyval, guint keycode, } gboolean -LibPinyinBopomofoEditor::processBopomofo (guint keyval, guint keycode, +BopomofoEditor::processBopomofo (guint keyval, guint keycode, guint modifiers) { if (G_UNLIKELY (cmshm_filter (modifiers) != 0)) @@ -182,7 +182,7 @@ LibPinyinBopomofoEditor::processBopomofo (guint keyval, guint keycode, } gboolean -LibPinyinBopomofoEditor::processKeyEvent (guint keyval, guint keycode, +BopomofoEditor::processKeyEvent (guint keyval, guint keycode, guint modifiers) { modifiers &= (IBUS_SHIFT_MASK | @@ -214,7 +214,7 @@ LibPinyinBopomofoEditor::processKeyEvent (guint keyval, guint keycode, case IBUS_Page_Down: case IBUS_KP_Page_Down: case IBUS_Tab: m_select_mode = TRUE; - return LibPinyinPhoneticEditor::processFunctionKey + return PhoneticEditor::processFunctionKey (keyval, keycode, modifiers); case IBUS_BackSpace: @@ -224,18 +224,18 @@ LibPinyinBopomofoEditor::processKeyEvent (guint keyval, guint keycode, case IBUS_Home: case IBUS_KP_Home: case IBUS_End: case IBUS_KP_End: m_select_mode = FALSE; - return LibPinyinPhoneticEditor::processFunctionKey + return PhoneticEditor::processFunctionKey (keyval, keycode, modifiers); default: - return LibPinyinPhoneticEditor::processFunctionKey + return PhoneticEditor::processFunctionKey (keyval, keycode, modifiers); } return FALSE; } void -LibPinyinBopomofoEditor::updatePinyin (void) +BopomofoEditor::updatePinyin (void) { if (G_UNLIKELY (m_text.empty ())) { m_pinyin_len = 0; @@ -251,7 +251,7 @@ LibPinyinBopomofoEditor::updatePinyin (void) } void -LibPinyinBopomofoEditor::commit () +BopomofoEditor::commit () { if (G_UNLIKELY (m_text.empty ())) return; @@ -288,12 +288,12 @@ LibPinyinBopomofoEditor::commit () pinyin_train(m_instance); LibPinyinBackEnd::instance ().modified(); - LibPinyinPhoneticEditor::commit ((const gchar *)m_buffer); + PhoneticEditor::commit ((const gchar *)m_buffer); reset(); } void -LibPinyinBopomofoEditor::updatePreeditText () +BopomofoEditor::updatePreeditText () { /* preedit text = guessed sentence + un-parsed pinyin text */ if (G_UNLIKELY (m_text.empty ())) { @@ -327,7 +327,7 @@ LibPinyinBopomofoEditor::updatePreeditText () } void -LibPinyinBopomofoEditor::updateAuxiliaryText (void) +BopomofoEditor::updateAuxiliaryText (void) { if (G_UNLIKELY (m_text.empty ())) { hideAuxiliaryText (); |