X-Git-Url: http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=xboard.git;a=blobdiff_plain;f=engineoutput.h;h=b0a2c31fb0c1d7d6e30b2f7e568df7611e9df5d0;hp=8c396d273f974b3e6697edf080b8f6a2af30ffcb;hb=190cfda76b87b10514aa45bac061c3d4828ceffe;hpb=c082824a507c0fb577beb908ed5615a161c6c6fa diff --git a/engineoutput.h b/engineoutput.h index 8c396d27..b0a2c31f 100644 --- a/engineoutput.h +++ b/engineoutput.h @@ -34,11 +34,14 @@ // [HGM] same for output fields (note that there are two of each type, one per color) #define nColorIcon 1 -#define nStateIcon 2 -#define nLabel 3 +#define nLabel 2 +#define nStateIcon 3 #define nStateData 4 #define nLabelNPS 5 -#define nMemo 6 +#define nMemo 6 /* must match the ranking of the TextBox in following option list! */ + +#define STRIDE 7 /* must match the number of option in one pane! */ +#define MEMO (nMemo-1) /* Module variables */ #define H_MARGIN 2 @@ -48,24 +51,23 @@ #define ICON_SIZE 14 -#define STATE_UNKNOWN -1 -#define STATE_THINKING 0 -#define STATE_IDLE 1 -#define STATE_PONDERING 2 -#define STATE_ANALYZING 3 +enum ENGINE_STATE { STATE_UNKNOWN, STATE_THINKING, STATE_IDLE, STATE_PONDERING, STATE_ANALYZING }; extern int windowMode; extern char exclusionHeader[]; // back-end called by front-end -void SetEngineState( int which, int state, char * state_data ); +void SetEngineState( int which, enum ENGINE_STATE state, char * state_data ); // front-end called by back-end +void SetEngineColorIcon( int which ); void SetIcon( int which, int field, int nIcon ); void DoSetWindowText(int which, int field, char *s_label); void InsertIntoMemo( int which, char * text, int where ); void DoClearMemo(int which); void ResizeWindowControls( int mode ); -int EngineOutputDialogExists(); +int EngineOutputDialogExists(); void SetEngineOutputTitle( char *title ); +void InitEngineOutput P((Option *opt, Option *memo2)); // XB only +void DrawWidgetIcon P((Option *opt, int nIcon)); // XB only