diff --git a/honoka/libhonoka/convertor.cpp b/honoka/libhonoka/convertor.cpp index 8f4e77f..0982844 100644 --- a/honoka/libhonoka/convertor.cpp +++ b/honoka/libhonoka/convertor.cpp @@ -135,3 +135,15 @@ // getText�ˤ�����Ρ� return vector(); } + + +void Convertor::unSelected() +{ + return; +} + + +void Convertor::selected() +{ + return; +} diff --git a/honoka/libhonoka/convertor.h b/honoka/libhonoka/convertor.h index 97d58c7..666e546 100644 --- a/honoka/libhonoka/convertor.h +++ b/honoka/libhonoka/convertor.h @@ -71,6 +71,8 @@ virtual String getName(); virtual String getPropertyName(); virtual const vector getSegmentList(); + virtual void unSelected(); + virtual void selected(); protected: ConfigPointer config; diff --git a/honoka/libhonoka/preeditor.cpp b/honoka/libhonoka/preeditor.cpp index 04f0099..19215d4 100644 --- a/honoka/libhonoka/preeditor.cpp +++ b/honoka/libhonoka/preeditor.cpp @@ -369,3 +369,21 @@ // getText��Ʊ���˻Ȥ���Attribute���֤��ޤ��� return AttributeList(); } + + +/*! + \fn PreEditor::selected() + */ +void PreEditor::selected() +{ + return; +} + + +/*! + \fn PreEditor::unSelected() + */ +void PreEditor::unSelected() +{ + return; +} diff --git a/honoka/libhonoka/preeditor.h b/honoka/libhonoka/preeditor.h index 0481b92..d79566f 100644 --- a/honoka/libhonoka/preeditor.h +++ b/honoka/libhonoka/preeditor.h @@ -85,6 +85,8 @@ virtual void toWide(); virtual void toHalf(); virtual AttributeList getAttributeList(); + virtual void selected(); + virtual void unSelected(); protected: static WideString text; diff --git a/honoka/src/honoka_imengine.cpp b/honoka/src/honoka_imengine.cpp index 91dccd7..1c53c27 100644 --- a/honoka/src/honoka_imengine.cpp +++ b/honoka/src/honoka_imengine.cpp @@ -531,7 +531,9 @@ // PreEditor���ѹ�����᥽�åɡ� for(unsigned int i = 0;i < preeditors.size();i ++) { if (preeditors[i]->getName() == name) { + m_preeditor->unSelected(); m_preeditor = preeditors[i]; + m_preeditor->selected(); return true; } } @@ -548,7 +550,9 @@ // Convertor���ѹ�����᥽�åɡ� for(unsigned int i = 0;i < convertors.size();i ++) { if (convertors[i]->getName() == name) { + m_convertor->unSelected(); m_convertor = convertors[i]; + m_convertor->selected(); return true; } }