X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=d6821c3ce6a6037a2cc8b8c24857666e8475abe6;hb=4ed78aad91dbd1cd53fe03b752b09d91f54d231e;hp=a62292ff7e2d21116492513e4fe77878cc934dd5;hpb=7a866fe06a208b080c64d0afa9ebd5788cb542be;p=xboard.git diff --git a/xboard.c b/xboard.c index a62292f..d6821c3 100644 --- a/xboard.c +++ b/xboard.c @@ -343,7 +343,6 @@ void AutosaveProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void BlindfoldProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void FlashMovesProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); -void FlipViewProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void GetMoveListProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void HighlightDraggingProc P((Widget w, XEvent *event, String *prms, @@ -370,10 +369,6 @@ void HideThinkingProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void TestLegalityProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); -void InfoProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); -void ManProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); -void HintProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); -void BookProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void AboutGameProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void DebugProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void NothingProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); @@ -705,8 +700,8 @@ MenuItem modeMenu[] = { }; MenuItem optionsMenu[] = { - {N_("Flip View"), FlipViewProc}, - {"----", NothingProc}, + // {N_("Flip View"), FlipViewProc}, + // {"----", NothingProc}, {N_("Adjudications ..."), EngineMenuProc}, {N_("General Settings ..."), UciMenuProc}, {N_("Engine #1 Settings ..."), FirstSettingsProc}, @@ -743,21 +738,10 @@ MenuItem optionsMenu[] = { {NULL, NULL} }; -MenuItem helpMenu[] = { - {N_("Info XBoard"), InfoProc}, - {N_("Man XBoard"), ManProc}, - {"----", NothingProc}, - {N_("Hint"), HintProc}, - {N_("Book"), BookProc}, - {"----", NothingProc}, - {NULL, NULL} -}; - Menu menuBar[] = { {N_("File"), fileMenu}, {N_("Mode"), modeMenu}, {N_("Options"), optionsMenu}, - {N_("Help"), helpMenu}, {NULL, NULL} }; @@ -1882,7 +1866,7 @@ XtActionsRec boardActions[] = { { "AutosaveProc", AutosaveProc }, { "BlindfoldProc", BlindfoldProc }, { "FlashMovesProc", FlashMovesProc }, - { "FlipViewProc", FlipViewProc }, + // { "FlipViewProc", FlipViewProc }, { "GetMoveListProc", GetMoveListProc }, #if HIGHDRAG { "HighlightDraggingProc", HighlightDraggingProc }, @@ -1900,10 +1884,10 @@ XtActionsRec boardActions[] = { { "ShowThinkingProc", ShowThinkingProc }, { "HideThinkingProc", HideThinkingProc }, { "TestLegalityProc", TestLegalityProc }, - { "InfoProc", InfoProc }, - { "ManProc", ManProc }, - { "HintProc", HintProc }, - { "BookProc", BookProc }, + // { "InfoProc", InfoProc }, + // { "ManProc", ManProc }, + // { "HintProc", HintProc }, + // { "BookProc", BookProc }, { "AboutGameProc", AboutGameProc }, { "DebugProc", DebugProc }, { "NothingProc", NothingProc }, @@ -5815,16 +5799,6 @@ void FlashMovesProc(w, event, prms, nprms) args, 1); } -void FlipViewProc(w, event, prms, nprms) - Widget w; - XEvent *event; - String *prms; - Cardinal *nprms; -{ - flipView = !flipView; - DrawPosition(True, NULL); -} - void GetMoveListProc(w, event, prms, nprms) Widget w; XEvent *event; @@ -6099,52 +6073,6 @@ void HideThinkingProc(w, event, prms, nprms) args, 1); } -void InfoProc(w, event, prms, nprms) - Widget w; - XEvent *event; - String *prms; - Cardinal *nprms; -{ - char buf[MSG_SIZ]; - snprintf(buf, sizeof(buf), "xterm -e info --directory %s --directory . -f %s &", - INFODIR, INFOFILE); - system(buf); -} - -void ManProc(w, event, prms, nprms) - Widget w; - XEvent *event; - String *prms; - Cardinal *nprms; -{ - char buf[MSG_SIZ]; - String name; - if (nprms && *nprms > 0) - name = prms[0]; - else - name = "xboard"; - snprintf(buf, sizeof(buf), "xterm -e man %s &", name); - system(buf); -} - -void HintProc(w, event, prms, nprms) - Widget w; - XEvent *event; - String *prms; - Cardinal *nprms; -{ - HintEvent(); -} - -void BookProc(w, event, prms, nprms) - Widget w; - XEvent *event; - String *prms; - Cardinal *nprms; -{ - BookEvent(); -} - void DebugProc(w, event, prms, nprms) Widget w; XEvent *event;