X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=menus.c;h=50968c1ad8635defd623acb005814b3d1af2bf9b;hb=6487eb595b4ee51f8eab706698333e57c5dc4ff8;hp=863f2a016728f936cf6197ce24cd6e5939a9d1cc;hpb=0278ebc80411a20fd23303156285e55ce8d2b0a5;p=xboard.git diff --git a/menus.c b/menus.c index 863f2a0..50968c1 100644 --- a/menus.c +++ b/menus.c @@ -258,6 +258,8 @@ QuitProc () void MatchProc () { + static Enables matchOff[] = { { "Mode.MachineMatch", False }, { NULL, False } }; + if(matchMode) SetMenuEnables(matchOff); MatchEvent(2); } @@ -360,8 +362,7 @@ _("%s%s\n\n" "Enhancements Copyright 1992-2016 Free Software Foundation\n" "Enhancements Copyright 2005 Alessandro Scotti\n\n" "%s is free software and carries NO WARRANTY;" -"see the file COPYING for more information.\n" -"The GTK build of this version is experimental and unstable\n\n" +"see the file COPYING for more information.\n\n" "Visit XBoard on the web at: http://www.gnu.org/software/xboard/\n" "Check out the newest features at: http://www.gnu.org/software/xboard/whats_new.html\n\n" "Report bugs via email at: \n\n" @@ -386,7 +387,19 @@ DebugProc () void EditEngineProc () { - EditTagsPopUp(firstChessProgramNames, &firstChessProgramNames); + EditAnyPopUp(firstChessProgramNames, &firstChessProgramNames, _("Registered Engines")); +} + +void +EditThemesProc () +{ + EditAnyPopUp(appData.themeNames, &appData.themeNames, _("Predefined Themes")); +} + +void +EditMenuProc () +{ + EditAnyPopUp(icsTextMenuString, &icsTextMenuString, _("ICS Text-Menu Definition")); } void @@ -642,14 +655,17 @@ 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}, {NULL, NULL, NULL, NULL} }; @@ -699,6 +715,7 @@ MenuItem engineMenu[100] = { {"----", NULL, NULL, NothingProc}, {N_("Engine #1 Settings..."), NULL, "Engine#1Settings", FirstSettingsProc}, {N_("Engine #2 Settings..."), NULL, "Engine#2Settings", SecondSettingsProc}, + {N_("Common Settings..."), "u","CommonEngine", UciMenuProc}, {"----", NULL, NULL, NothingProc}, {N_("Hint"), NULL, "Hint", HintEvent}, {N_("Book"), NULL, "Book", BookEvent}, @@ -713,7 +730,6 @@ MenuItem optionsMenu[] = { {N_("General..."), NULL, "General", OptionsProc}, #endif {N_("Time Control..."), "t", "TimeControl", TimeControlProc}, - {N_("Common Engine..."), "u", "CommonEngine", UciMenuProc}, {N_("Adjudications..."), "j", "Adjudications", EngineMenuProc}, {N_("ICS..."), NULL, "ICS", IcsOptionsProc}, {N_("Tournament..."), NULL, "Match", MatchOptionsProc},