diff options
author | Peng Wu <alexepico@gmail.com> | 2014-04-16 10:33:01 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-04-16 10:33:01 +0800 |
commit | 63f62cc58c3bde41e94196c93735b788502b9e40 (patch) | |
tree | 9887dc2da94d01f688157cb3fd13484baf565467 /src/ZYZPhoneticEditor.h | |
parent | 93b8c269303109a0bbcd43152d1eb7354af13ffb (diff) | |
download | ibus-libzhuyin-63f62cc58c3bde41e94196c93735b788502b9e40.tar.gz ibus-libzhuyin-63f62cc58c3bde41e94196c93735b788502b9e40.tar.xz ibus-libzhuyin-63f62cc58c3bde41e94196c93735b788502b9e40.zip |
begin to implement class PhoneticEditor
Diffstat (limited to 'src/ZYZPhoneticEditor.h')
-rw-r--r-- | src/ZYZPhoneticEditor.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ZYZPhoneticEditor.h b/src/ZYZPhoneticEditor.h index a09f085..bcba643 100644 --- a/src/ZYZPhoneticEditor.h +++ b/src/ZYZPhoneticEditor.h @@ -28,8 +28,11 @@ namespace ZY { -class SymbolSection; class PhoneticSection; +typedef std::shared_ptr<PhoneticSection> PhoneticSectionPtr; + +class SymbolSection; +typedef std::shared_ptr<SymbolSection> SymbolSectionPtr; class PhoneticEditor : public EnhancedEditor { friend class SymbolSection; @@ -82,11 +85,16 @@ protected: enum { STATE_INPUT = 0, // input state STATE_CANDIDATE_SHOWN, // candidates shown state + STATE_BUILTIN_SYMBOL_SHOWN, // built-in symbol shown state +#if 0 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 +#endif STATE_LAST, } m_input_state; + + SymbolSectionPtr m_symbol_sections[STATE_LAST]; + PhoneticSectionPtr m_phonetic_section; }; }; |