| |
---|
| | } |
---|
| | |
---|
| | |
---|
| | /*! |
---|
| | \fn Honoka::PreEditor::getCommitString() |
---|
| | */ |
---|
| | const WideString Honoka::PreEditor::getCommitString() |
---|
| | \fn PreEditor::getCommitString() |
---|
| | */ |
---|
| | const WideString PreEditor::getCommitString() |
---|
| | { |
---|
| | return commitString; |
---|
| | } |
---|
| | |
---|
| | |
---|
| | /*! |
---|
| | \fn Honoka::PreEditor::setCommitString(const WideString &t) |
---|
| | */ |
---|
| | void Honoka::PreEditor::setCommitString(const WideString &t) |
---|
| | \fn PreEditor::setCommitString(const WideString &t) |
---|
| | */ |
---|
| | void PreEditor::setCommitString(const WideString &t) |
---|
| | { |
---|
| | commitString = t; |
---|
| | } |
---|
| | |
---|
| | |
---|
| | /*! |
---|
| | \fn Honoka::PreEditor::resetCommitString() |
---|
| | */ |
---|
| | void Honoka::PreEditor::resetCommitString() |
---|
| | \fn PreEditor::resetCommitString() |
---|
| | */ |
---|
| | void PreEditor::resetCommitString() |
---|
| | { |
---|
| | commitString.clear(); |
---|
| | } |
---|
| | |
---|
| | |
---|
| | /*! |
---|
| | \fn Honoka::PreEditor::isPrintable(const KeyEvent &key) |
---|
| | */ |
---|
| | bool Honoka::PreEditor::isPrintable(const KeyEvent &key) |
---|
| | \fn PreEditor::isPrintable(const KeyEvent &key) |
---|
| | */ |
---|
| | bool PreEditor::isPrintable(const KeyEvent &key) |
---|
| | { |
---|
| | if ((key.code == SCIM_KEY_Return) || |
---|
| | (key.code == SCIM_KEY_Linefeed) || |
---|
| | (key.code == SCIM_KEY_Tab)) return false; |
---|
| |
---|
| | if (key.get_unicode_code() && (!key.is_alt_down()) && (!key.is_control_down())) return true; |
---|
| | return false; |
---|
| | } |
---|
| | |
---|
| | |
---|
| | |
---|
| | /*! |
---|
| | \fn PreEditor::isThrough(const KeyEvent &key) |
---|
| | */ |
---|
| | bool PreEditor::isThrough(const KeyEvent &key) |
---|
| | { |
---|
| | // 喰っておくべきもの。 |
---|
| | if ((key.code == SCIM_KEY_Shift_L) || |
---|
| | (key.code == SCIM_KEY_Shift_R) || |
---|
| | (key.code == SCIM_KEY_Control_L) || |
---|
| | (key.code == SCIM_KEY_Control_R) || |
---|
| | (key.code == SCIM_KEY_Alt_L) || |
---|
| | (key.code == SCIM_KEY_Alt_R) || |
---|
| | (key.code == SCIM_KEY_Super_L) || |
---|
| | (key.code == SCIM_KEY_Super_R) || |
---|
| | (key.code == SCIM_KEY_Hyper_L) || |
---|
| | (key.code == SCIM_KEY_Hyper_R) || |
---|
| | (key.code == SCIM_KEY_Meta_L) || |
---|
| | (key.code == SCIM_KEY_Meta_R) || |
---|
| | (key.code == SCIM_KEY_Num_Lock) || |
---|
| | (key.code == SCIM_KEY_Caps_Lock) || |
---|
| | (key.code == SCIM_KEY_Shift_Lock) || |
---|
| | (key.code == SCIM_KEY_Mode_switch) || |
---|
| | (key.code == SCIM_KEY_ISO_Next_Group)) return true; |
---|
| | return false; |
---|
| | } |
---|
| | |
---|
| | |
---|
| | |