From: H.G. Muller Date: Tue, 25 Jan 2011 20:35:10 +0000 (+0100) Subject: Re-instate load next/prev position menu items X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=a1da98c7ba94945975b1e6373997521f5b560459;p=xboard.git Re-instate load next/prev position menu items As positions do not use something similar to the game list, these are still useful. For some reason I could not get Alt+Shift+PgUp/Dn to work, so I settled for Shift+PgUp/Dn. --- diff --git a/winboard/winboard.rc b/winboard/winboard.rc index c836813..3eaa824 100644 --- a/winboard/winboard.rc +++ b/winboard/winboard.rc @@ -1109,9 +1109,9 @@ BEGIN // MENUITEM "Load &Next Game\tAlt+PgDn", IDM_LoadNextGame // MENUITEM "Load &Previous Game\tAlt+PgUp", IDM_LoadPrevGame // MENUITEM "&Reload Same Game", IDM_ReloadGame -// MENUITEM "Load N&ext Position\tAlt+Shift+PgDn", IDM_LoadNextPosition -// MENUITEM "Load Pre&vious Position\tAlt+Shift+PgUp", -// IDM_LoadPrevPosition + MENUITEM "Load N&ext Position\tAlt+Shift+PgDn", IDM_LoadNextPosition + MENUITEM "Load Pre&vious Position\tAlt+Shift+PgUp", + IDM_LoadPrevPosition // MENUITEM "Reload Sa&me Position", IDM_ReloadPosition MENUITEM SEPARATOR MENUITEM "&Save Game...\tCtrl-S", IDM_SaveGame diff --git a/xboard.c b/xboard.c index f3e7a76..d618be4 100644 --- a/xboard.c +++ b/xboard.c @@ -606,9 +606,9 @@ MenuItem fileMenu[] = { // {N_("Load Next Game"), "Load Next Game", LoadNextGameProc}, // {N_("Load Previous Game"), "Load Previous Game", LoadPrevGameProc}, // {N_("Reload Same Game"), "Reload Same Game", ReloadGameProc}, + {N_("Next Position Shift+PgDn"), "Load Next Position", LoadNextPositionProc}, + {N_("Prev Position Shift+PgUp"), "Load Previous Position", LoadPrevPositionProc}, {"----", NULL, NothingProc}, -// {N_("Load Next Position"), "Load Next Position", LoadNextPositionProc}, -// {N_("Load Previous Position"), "Load Previous Position", LoadPrevPositionProc}, // {N_("Reload Same Position"), "Reload Same Position", ReloadPositionProc}, {N_("Save Game Ctrl+S"), "Save Game", SaveGameProc}, {N_("Save Position Ctrl+Shift+S"), "Save Position", SavePositionProc}, @@ -1032,8 +1032,8 @@ char globalTranslations[] = :Ctrlc: CopyGameProc() \n \ :Ctrlv: PasteGameProc() \n \ :CtrlO: LoadPositionProc() \n \ - :Shift MetaNext: LoadNextPositionProc() \n \ - :Shift MetaPrior: LoadPrevPositionProc() \n \ + :ShiftNext: LoadNextPositionProc() \n \ + :ShiftPrior: LoadPrevPositionProc() \n \ :CtrlS: SavePositionProc() \n \ :CtrlC: CopyPositionProc() \n \ :CtrlV: PastePositionProc() \n \