summaryrefslogtreecommitdiffstats
path: root/src/ZYZPhoneticEditor.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-03-31 14:15:25 +0800
committerPeng Wu <alexepico@gmail.com>2014-03-31 14:15:25 +0800
commit1b1d7bb7591d2b30d11c7a264c5ae2a36eae6793 (patch)
treedb85d9c861b1fa162adc7df906aaf2a24bdea3b7 /src/ZYZPhoneticEditor.h
parent3a5b168dd3a339bbd8566187be2e0eb2fe8a8150 (diff)
downloadibus-libzhuyin-1b1d7bb7591d2b30d11c7a264c5ae2a36eae6793.tar.gz
ibus-libzhuyin-1b1d7bb7591d2b30d11c7a264c5ae2a36eae6793.tar.xz
ibus-libzhuyin-1b1d7bb7591d2b30d11c7a264c5ae2a36eae6793.zip
introduce input state for phonetic editor
Diffstat (limited to 'src/ZYZPhoneticEditor.h')
-rw-r--r--src/ZYZPhoneticEditor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ZYZPhoneticEditor.h b/src/ZYZPhoneticEditor.h
index 07524b9..875c0ec 100644
--- a/src/ZYZPhoneticEditor.h
+++ b/src/ZYZPhoneticEditor.h
@@ -72,6 +72,15 @@ protected:
/* use libzhuyin here. */
zhuyin_instance_t *m_instance;
+
+ enum {
+ STATE_INPUT = 0, // input state
+ STATE_CANDIDATE_SHOWN, // candidates shown state
+ STATE_USER_SYMBOL_LIST_ALL, // user symbol input state
+ STATE_USER_SYMBOL_SHOWN, // user symbol shown state
+ STATE_BUILTIN_SYMBOL_SHOWN, // built-in symbol shown state
+ STATE_LAST,
+ } m_input_state;
};
};