diff --git a/honoka/plugins/asciiplugin.cpp b/honoka/plugins/asciiplugin.cpp index 2223d05..aa4f7ae 100644 --- a/honoka/plugins/asciiplugin.cpp +++ b/honoka/plugins/asciiplugin.cpp @@ -42,7 +42,9 @@ HonokaSetupCorePage *AsciiPlugin::setup() { - HonokaSetupPage *page = new HonokaSetupPage(_("Ascii-plugin"),"",""); + HonokaSetupPage *p = new HonokaSetupPage(_("Ascii-plugin"),"",""); + HonokaSetup *s = new HonokaSetup("setup","",""); + HonokaSetupPage *page = new HonokaSetupPage(_("general setting"),"",""); page->append(new HonokaSetupFileItem( _("Words _file: "), HONOKA_CONFIG_WORDSPREDICTION_FILE, @@ -80,7 +82,25 @@ _("set the key that commit the string automatic."), String(HONOKA_DEFAULT_ASCIIINPUT_AUTO_COMMIT_KEY) )); - + HonokaSetupPage *sc = new HonokaSetupPage(_("shortcut keys: "),"",""); + sc->append(new HonokaSetupKeyItem( + _("Ascii Input: "), + String(HONOKA_CONFIG_KEY_PREEDITOR_PREFIX) + String("/AsciiInput"), + "", + "" + )); + sc->append(new HonokaSetupKeyItem( + _("Words Prediction: "), + String(HONOKA_CONFIG_KEY_PREDICTOR_PREFIX) + String("/WordsPrediction"), + "", + "" + )); + page->append(sc); + s->append(page); + //p->append(s); + + //s = new HonokaSetup("setup","",""); + page = new HonokaSetupPage(_("key setting"),"",""); page->append(new HonokaSetupKeyItem( _("Compose key: "), String(HONOKA_CONFIG_ASCIIINPUT_COMPOSE_KEY), @@ -144,22 +164,9 @@ String(HONOKA_DEFAULT_ASCIIINPUT_TILDE_KEY) )); - HonokaSetupPage *sc = new HonokaSetupPage(_("shortcut keys: "),"",""); - sc->append(new HonokaSetupKeyItem( - _("Ascii Input: "), - String(HONOKA_CONFIG_KEY_PREEDITOR_PREFIX) + String("/AsciiInput"), - "", - "" - )); - sc->append(new HonokaSetupKeyItem( - _("Words Prediction: "), - String(HONOKA_CONFIG_KEY_PREDICTOR_PREFIX) + String("/WordsPrediction"), - "", - "" - )); - page->append(sc); - - return page; + s->append(page); + p->append(s); + return p; }; AsciiPlugin::AsciiPlugin(ConfigPointer cfg) : HonokaMultiplePluginBase(cfg)