diff --git a/honoka/plugins/anthyconversion.cpp b/honoka/plugins/anthyconversion.cpp index 1a36f80..abb710e 100644 --- a/honoka/plugins/anthyconversion.cpp +++ b/honoka/plugins/anthyconversion.cpp @@ -43,6 +43,7 @@ { m_iconv.set_encoding ("EUC-JP"); pos = 0; + current = false; anthy_init(); context = anthy_create_context(); } @@ -141,12 +142,20 @@ } bool AnthyConversion::connect() { - return true; + return current; } void AnthyConversion::disconnect() { return; } +void AnthyConversion::selected() { + current = true; +} + +void AnthyConversion::unSelected() { + current = false; +} + void AnthyConversion::buildResult() { struct anthy_conv_stat stat; diff --git a/honoka/plugins/anthyconversion.h b/honoka/plugins/anthyconversion.h index 65f65e0..ae16ad3 100644 --- a/honoka/plugins/anthyconversion.h +++ b/honoka/plugins/anthyconversion.h @@ -61,7 +61,8 @@ virtual String getName(); virtual String getPropertyName(); virtual const vector getSegmentList(); - + virtual void selected(); + virtual void unSelected(); protected: void buildResult(); @@ -71,7 +72,7 @@ WideString yomiText; vector convResult; int pos; - + bool current; }; }