X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=140f94fe49c9f4cd66a1510e7a7eeccabe90d234;hb=2380bd9a886c088ba6040d99932c20cdf080fbbb;hp=2cca4373d60bde7ec5540e1fc5fef519a9b04657;hpb=3076655d51195e09429c2abde2763e917d3a67a9;p=xboard.git diff --git a/common.h b/common.h index 2cca437..140f94f 100644 --- a/common.h +++ b/common.h @@ -407,7 +407,7 @@ typedef struct { int firstProtocolVersion; int secondProtocolVersion; Boolean showButtonBar; - /* [AS] New properties */ + /* [AS] New properties (down to the "ZIPPY" part) */ Boolean firstScoreIsAbsolute; /* If true, engine score is always from white side */ Boolean secondScoreIsAbsolute; /* If true, engine score is always from white side */ Boolean saveExtendedInfoInPGN; /* If true, saved PGN games contain extended info */ @@ -430,6 +430,17 @@ typedef struct { char * nameOfDebugFile; char * pgnEventHeader; int defaultFrcPosition; + char * gameListTags; + Boolean saveOutOfBookInfo; + Boolean showEvalInMoveHistory; + int evalHistColorWhite; + int evalHistColorBlack; + Boolean highlightMoveWithArrow; + int highlightArrowColor; + Boolean useStickyWindows; + int adjudicateDrawMoves; + Boolean autoDisplayComment; + Boolean autoDisplayTags; #if ZIPPY char *zippyLines; char *zippyPinhead; @@ -450,6 +461,25 @@ typedef struct { #endif } AppData, *AppDataPtr; +/* [AS] PGN tags (for showing in the game list) */ +#define GLT_EVENT 'e' +#define GLT_SITE 's' +#define GLT_DATE 'd' +#define GLT_ROUND 'o' +#define GLT_PLAYERS 'p' /* I.e. white "-" black */ +#define GLT_RESULT 'r' +#define GLT_WHITE_ELO 'w' +#define GLT_BLACK_ELO 'b' +#define GLT_TIME_CONTROL 't' +#define GLT_VARIANT 'v' +#define GLT_OUT_OF_BOOK 'a' + +#define GLT_DEFAULT_TAGS "eprd" /* Event, players, result, date */ + +#define GLT_ALL_TAGS "esdoprwbtva" + +#define PGN_OUT_OF_BOOK "Annotator" + extern AppData appData; typedef struct { @@ -469,6 +499,7 @@ typedef struct { int whiteRating; /* -1 if unknown */ int blackRating; /* -1 if unknown */ VariantClass variant; + char *outOfBook; /* [AS] Move and score when engine went out of book */ } GameInfo;