summaryrefslogtreecommitdiffstats
path: root/src/ZYZPhoneticEditor.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-04-16 10:33:01 +0800
committerPeng Wu <alexepico@gmail.com>2014-04-16 10:33:01 +0800
commit63f62cc58c3bde41e94196c93735b788502b9e40 (patch)
tree9887dc2da94d01f688157cb3fd13484baf565467 /src/ZYZPhoneticEditor.h
parent93b8c269303109a0bbcd43152d1eb7354af13ffb (diff)
downloadibus-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.h12
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;
};
};