From: H.G. Muller Date: Thu, 25 Feb 2010 19:32:23 +0000 (+0100) Subject: Add -autokibitz checkbox to UCI-options menu dialog X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=2efc0144a02840f0454378b19b4dbaf428c226bd;p=xboard.git Add -autokibitz checkbox to UCI-options menu dialog --- diff --git a/winboard/resource.h b/winboard/resource.h index 940e367..ee1bd86 100644 --- a/winboard/resource.h +++ b/winboard/resource.h @@ -519,6 +519,7 @@ #define OPT_DualBoard 1753 #define OPT_SmartMove 1754 #define OPT_StartupChatBoxes 1755 +#define OPT_AutoKibitz 1756 #define IDC_SPECIFY_ENG_STATIC 1814 #define IDC_SPECIFY_SERVER_STATIC 1815 #define OPT_MESS 1818 diff --git a/winboard/winboard.rc b/winboard/winboard.rc index 0bffd9b..c9ca00f 100644 --- a/winboard/winboard.rc +++ b/winboard/winboard.rc @@ -484,6 +484,8 @@ BEGIN PUSHBUTTON "Cancel",IDCANCEL,248,250,50,15 CONTROL "&Auto Comment",OPT_AutoComment,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,12,63,8 + CONTROL "&Auto Kibitz",OPT_AutoKibitz,"Button",BS_AUTOCHECKBOX | + WS_TABSTOP,84,12,63,8 CONTROL "Auto &Observe",OPT_AutoObserve,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,25,63,8 CONTROL "&Get Move List",OPT_GetMoveList,"Button", diff --git a/winboard/woptions.c b/winboard/woptions.c index f5dbb3e..f9f3ce4 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -1177,6 +1177,7 @@ IcsOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) /* Initialize the dialog items */ #define CHECK_BOX(x,y) CheckDlgButton(hDlg, (x), (BOOL)(y)) + CHECK_BOX(OPT_AutoKibitz, appData.autoKibitz); CHECK_BOX(OPT_AutoComment, appData.autoComment); CHECK_BOX(OPT_AutoObserve, appData.autoObserve); CHECK_BOX(OPT_GetMoveList, appData.getMoveList); @@ -1261,6 +1262,7 @@ IcsOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) appData.premove = IS_CHECKED(OPT_Premove); appData.premoveWhite = IS_CHECKED(OPT_PremoveWhite); appData.premoveBlack = IS_CHECKED(OPT_PremoveBlack); + appData.autoKibitz = IS_CHECKED(OPT_AutoKibitz); appData.autoComment = IS_CHECKED(OPT_AutoComment); appData.autoObserve = IS_CHECKED(OPT_AutoObserve); appData.getMoveList = IS_CHECKED(OPT_GetMoveList);