diff --git a/honoka/libhonoka/preeditor.cpp b/honoka/libhonoka/preeditor.cpp index 19215d4..076556f 100644 --- a/honoka/libhonoka/preeditor.cpp +++ b/honoka/libhonoka/preeditor.cpp @@ -67,6 +67,7 @@ map PreEditor::hKanaChars; int PreEditor::pos = 0; IConvert PreEditor::iconvert; +WideString PreEditor::commitString = WideString(); /*! \fn PreEditor::getPos() @@ -387,3 +388,30 @@ { return; } + + +/*! + \fn Honoka::PreEditor::getCommitString() + */ +const WideString Honoka::PreEditor::getCommitString() +{ + return commitString; +} + + +/*! + \fn Honoka::PreEditor::setCommitString(const WideString &t) + */ +void Honoka::PreEditor::setCommitString(const WideString &t) +{ + commitString = t; +} + + +/*! + \fn Honoka::PreEditor::resetCommitString() + */ +void Honoka::PreEditor::resetCommitString() +{ + commitString.clear(); +} diff --git a/honoka/libhonoka/preeditor.h b/honoka/libhonoka/preeditor.h index bc62090..60dffef 100644 --- a/honoka/libhonoka/preeditor.h +++ b/honoka/libhonoka/preeditor.h @@ -89,6 +89,8 @@ virtual AttributeList getAttributeList(); virtual void selected(); virtual void unSelected(); + static const WideString getCommitString(); + static void resetCommitString(); protected: static WideString text; @@ -97,7 +99,10 @@ ConfigPointer config; static WideString convChars; static map hKanaChars; + static WideString commitString; +protected: + static void setCommitString(const WideString &t); }; }