diff options
author | Peng Wu <alexepico@gmail.com> | 2016-08-31 10:59:37 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-08-31 10:59:37 +0800 |
commit | 1ce17fdb0705b616817045330c3f2b9cce6cde57 (patch) | |
tree | fa67ed88b4a4e7f746d71c779b8f570f72f5cf4c /src/ZYZConfig.cc | |
parent | 2d4204379e1ba6758a0b31f69019b089734689ab (diff) | |
download | ibus-libzhuyin-1ce17fdb0705b616817045330c3f2b9cce6cde57.tar.gz ibus-libzhuyin-1ce17fdb0705b616817045330c3f2b9cce6cde57.tar.xz ibus-libzhuyin-1ce17fdb0705b616817045330c3f2b9cce6cde57.zip |
update class ZhuyinConfig
Diffstat (limited to 'src/ZYZConfig.cc')
-rw-r--r-- | src/ZYZConfig.cc | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/ZYZConfig.cc b/src/ZYZConfig.cc index db785e6..a6d7300 100644 --- a/src/ZYZConfig.cc +++ b/src/ZYZConfig.cc @@ -31,8 +31,7 @@ const gchar * const CONFIG_ORIENTATION = "LookupTableOrientation"; const gchar * const CONFIG_PAGE_SIZE = "candidatenum"; const gchar * const CONFIG_INIT_CHINESE = "chinesemode"; -const gchar * const CONFIG_INIT_FULL_ENGLISH = "fullhalfenglish"; -const gchar * const CONFIG_INIT_FULL_PUNCT = "fullhalfpunct"; +const gchar * const CONFIG_INIT_FULL_WIDTH = "fullhalfwidth"; const gchar * const CONFIG_INIT_TRAD_CHINESE = "traditionalchinese"; const gchar * const CONFIG_ALWAYS_INPUT_NUMBERS = "alwaysinputnum"; const gchar * const CONFIG_SPACE_SHOW_CANDIDATES = "spaceshowcandidates"; @@ -91,8 +90,7 @@ ZhuyinConfig::initDefaultValues (void) m_keyboard_layout = CHEWING_DEFAULT; m_init_chinese = TRUE; - m_init_full_english = FALSE; - m_init_full_punct = TRUE; + m_init_full_width = FALSE; m_init_trad_chinese = TRUE; m_always_input_numbers = FALSE; @@ -184,8 +182,7 @@ ZhuyinConfig::readDefaultValues (void) /* init states */ m_init_chinese = read (CONFIG_INIT_CHINESE, true); - m_init_full_english = read (CONFIG_INIT_FULL_ENGLISH, false); - m_init_full_punct = read (CONFIG_INIT_FULL_PUNCT, true); + m_init_full_width = read (CONFIG_INIT_FULL_WIDTH, false); m_init_trad_chinese = read (CONFIG_INIT_TRAD_CHINESE, true); m_always_input_numbers = read (CONFIG_ALWAYS_INPUT_NUMBERS, false); @@ -239,10 +236,8 @@ ZhuyinConfig::valueChanged (const std::string §ion, /* init states */ if (CONFIG_INIT_CHINESE == name) m_init_chinese = normalizeGVariant (value, true); - else if (CONFIG_INIT_FULL_ENGLISH == name) - m_init_full_english = normalizeGVariant (value, false); - else if (CONFIG_INIT_FULL_PUNCT == name) - m_init_full_punct = normalizeGVariant (value, true); + else if (CONFIG_INIT_FULL_WIDTH == name) + m_init_full_width = normalizeGVariant (value, false); else if (CONFIG_INIT_TRAD_CHINESE == name) m_init_trad_chinese = normalizeGVariant (value, true); else if (CONFIG_ALWAYS_INPUT_NUMBERS == name) |