From 3a11677c0e70fe1833016cbf9070c3d5df615112 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 5 Dec 2010 13:56:52 +0100 Subject: [PATCH] Add one-click move control to WB general-options dialog This is a duplicate of the one in the ICS options dialog, but the latter is inaccessible in non-ICS modes, and one-click move is now alsoavailable in engine mode. --- winboard/winboard.c | 2 +- winboard/winboard.rc | 2 ++ winboard/woptions.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index 58759e7..b10b0da 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -282,7 +282,7 @@ int dialogItems[][40] = { OPT_AutoFlipView, OPT_ShowButtonBar, OPT_AutoRaiseBoard, OPT_ShowCoordinates, OPT_Blindfold, OPT_ShowThinking, OPT_HighlightDragging, OPT_TestLegality, OPT_SaveExtPGN, OPT_HideThinkFromHuman, OPT_ExtraInfoInMoveHistory, - OPT_HighlightMoveArrow, OPT_AutoLogo }, + OPT_HighlightMoveArrow, OPT_AutoLogo ,OPT_SmartMove }, { DLG_IcsOptions, IDOK, IDCANCEL, OPT_AutoComment, OPT_AutoKibitz, OPT_AutoObserve, OPT_GetMoveList, OPT_LocalLineEditing, OPT_QuietPlay, OPT_SeekGraph, OPT_AutoRefresh, OPT_BgObserve, OPT_DualBoard, OPT_Premove, OPT_PremoveWhite, OPT_PremoveBlack, diff --git a/winboard/winboard.rc b/winboard/winboard.rc index be39e94..b0520bd 100644 --- a/winboard/winboard.rc +++ b/winboard/winboard.rc @@ -470,6 +470,8 @@ BEGIN "Button",BS_AUTOCHECKBOX | WS_TABSTOP,156,146,151,10 CONTROL "Displa&y Logos",OPT_AutoLogo, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,160,151,10 + CONTROL "One-Click Move",OPT_SmartMove, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,156,160,151,10 END DLG_IcsOptions DIALOGEX 0, 0, 302, 268 diff --git a/winboard/woptions.c b/winboard/woptions.c index 2c5b24f..254547a 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -187,6 +187,7 @@ GeneralOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) CHECK_BOX(OPT_ExtraInfoInMoveHistory, appData.showEvalInMoveHistory); CHECK_BOX(OPT_HighlightMoveArrow, appData.highlightMoveWithArrow); CHECK_BOX(OPT_AutoLogo, appData.autoLogo); // [HGM] logo + CHECK_BOX(OPT_SmartMove, appData.oneClick); // [HGM] one-click #undef CHECK_BOX @@ -235,6 +236,7 @@ GeneralOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) appData.testLegality = IS_CHECKED(OPT_TestLegality); appData.highlightMoveWithArrow=IS_CHECKED(OPT_HighlightMoveArrow); appData.autoLogo =IS_CHECKED(OPT_AutoLogo); // [HGM] logo + appData.oneClick =IS_CHECKED(OPT_SmartMove); // [HGM] one-click #undef IS_CHECKED -- 1.7.0.4