From: H.G. Muller Date: Sat, 18 Jan 2014 22:42:01 +0000 (+0100) Subject: Add some checkboxes in General Options dialog WB X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b338064a4b636bc5bfdcb22471ffd4e7310cb1ea;p=xboard.git Add some checkboxes in General Options dialog WB Checkboxes are added for -variations, -memoHeaders and -autoExtend. --- diff --git a/winboard/resource.h b/winboard/resource.h index efa3068..785bc84 100644 --- a/winboard/resource.h +++ b/winboard/resource.h @@ -444,6 +444,9 @@ #define OPT_HighlightMoveArrow 1438 #define OPT_AutoLogo 1439 #define OPT_AutoTags 1440 +#define OPT_Headers 1441 +#define OPT_Variations 1442 +#define OPT_AutoExtend 1443 #define IDC_BUTTON1 1440 #define IDC_BrowseForPolyglotDir 1440 #define IDC_BrowseForEGTB 1441 diff --git a/winboard/winboard.rc b/winboard/winboard.rc index 334a624..08bffff 100644 --- a/winboard/winboard.rc +++ b/winboard/winboard.rc @@ -445,7 +445,7 @@ BEGIN PUSHBUTTON "Cancel",IDCANCEL,208,86,50,14 END -DLG_GeneralOptions DIALOG DISCARDABLE 0, 0, 300, 211 +DLG_GeneralOptions DIALOG DISCARDABLE 0, 0, 300, 225 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "General Options" FONT 8, "MS Sans Serif" @@ -502,8 +502,14 @@ BEGIN "Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,174,151,10 CONTROL "auto-Display Comment",OPT_AutoComment, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,156,174,151,10 - DEFPUSHBUTTON "OK",IDOK,180,192,50,14 - PUSHBUTTON "Cancel",IDCANCEL,236,192,50,14 + CONTROL "Headers in Engine Output",OPT_Headers, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,188,151,10 + CONTROL "Enable Variation Trees",OPT_Variations, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,156,188,151,10 + CONTROL "Play Analysis PV on Click",OPT_AutoExtend, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,202,151,10 + DEFPUSHBUTTON "OK",IDOK,180,206,50,14 + PUSHBUTTON "Cancel",IDCANCEL,236,206,50,14 END DLG_IcsOptions DIALOGEX 0, 0, 302, 268 diff --git a/winboard/woptions.c b/winboard/woptions.c index 6f2adeb..d7e9c4e 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -212,6 +212,9 @@ GeneralOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) CHECK_BOX(OPT_SmartMove, appData.oneClick); // [HGM] one-click CHECK_BOX(OPT_AutoTags, appData.autoDisplayTags); // [HGM] CHECK_BOX(OPT_AutoComment, appData.autoDisplayComment); // [HGM] + CHECK_BOX(OPT_Headers, appData.headers); // [HGM] + CHECK_BOX(OPT_Variations, appData.variations); // [HGM] + CHECK_BOX(OPT_AutoExtend, appData.autoExtend); // [HGM] #undef CHECK_BOX @@ -263,6 +266,9 @@ GeneralOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) appData.oneClick =IS_CHECKED(OPT_SmartMove); // [HGM] one-click appData.autoDisplayTags =IS_CHECKED(OPT_AutoTags); // [HGM] appData.autoDisplayComment =IS_CHECKED(OPT_AutoComment); // [HGM] + appData.headers =IS_CHECKED(OPT_Headers); // [HGM] + appData.variations =IS_CHECKED(OPT_Variations); // [HGM] + appData.autoExtend =IS_CHECKED(OPT_AutoExtend); // [HGM] #undef IS_CHECKED