X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=menus.c;h=28540212e19620f5577a78a1f4d44a9342b7c522;hb=v4.9.x;hp=af8e33d8c3c84046345612a0cdaddac7d5be7e02;hpb=51d2fca3f8d1d539b75c21ef49c84dd1d85b32e6;p=xboard.git diff --git a/menus.c b/menus.c index af8e33d..2854021 100644 --- a/menus.c +++ b/menus.c @@ -387,7 +387,27 @@ DebugProc () void EditEngineProc () { - EditEnginePopUp(firstChessProgramNames, &firstChessProgramNames); + if(*engineListFile) ParseSettingsFile(engineListFile, &engineListFile); + EditAnyPopUp(firstChessProgramNames, &firstChessProgramNames, _("Registered Engines")); +} + +void +EditThemesProc () +{ + EditAnyPopUp(appData.themeNames, &appData.themeNames, _("Predefined Themes")); +} + +void +EditMenuProc () +{ + EditAnyPopUp(icsTextMenuString, &icsTextMenuString, _("ICS Text-Menu Definition")); +} + +void +MuteProc () +{ + mute = !mute; + MarkMenuItem("Options.Mute", mute); } void @@ -643,13 +663,15 @@ MenuItem viewMenu[] = { {N_("Move History"), "h", "MoveHistory", HistoryShowProc, CHECK}, // [HGM] hist: activate 4.2.7 code {N_("Evaluation Graph"), "e", "EvaluationGraph", EvalGraphProc, CHECK}, {N_("Game List"), "g", "GameList", ShowGameListProc, CHECK}, - {N_("ICS text menu"), NULL, "ICStextmenu", IcsTextProc, CHECK}, {"----", NULL, NULL, NothingProc}, {N_("Tags"), NULL, "Tags", EditTagsProc, CHECK}, {N_("Comments"), NULL, "Comments", EditCommentProc, CHECK}, {N_("ICS Input Box"), NULL, "ICSInputBox", IcsInputBoxProc, CHECK}, {N_("ICS/Chat Console"), NULL, "OpenChatWindow", ChatProc, CHECK}, + {N_("ICS text menu"), NULL, "ICStextmenu", IcsTextProc, CHECK}, + {N_("Edit ICS menu..."), NULL, "EditTextMenu", EditMenuProc}, {"----", NULL, NULL, NothingProc}, + {N_("Edit Theme List..."), NULL, "EditThemeList", EditThemesProc}, {N_("Board..."), NULL, "Board", BoardOptionsProc}, {N_("Fonts..."), NULL, "Fonts", FontsProc}, {N_("Game List Tags..."), NULL, "GameListTags", GameListOptionsProc}, @@ -712,6 +734,8 @@ MenuItem engineMenu[100] = { }; MenuItem optionsMenu[] = { + {N_("Mute all Sounds"), NULL, "Mute", MuteProc, CHECK}, + {"----", NULL, NULL, NothingProc}, #ifdef OPTIONSDIALOG {N_("General..."), NULL, "General", OptionsProc}, #endif