X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=frontend.h;h=f4734aa82ace452cbf9cc843534d7123b6ae17f2;hb=756dc94735b48fd28efc0bd19c4099acc39ccb94;hp=586720dbe090995c375a08d3758ed18a0709bf6f;hpb=7fb56edee87ea24c7b2b6b0065e73e5053650383;p=xboard.git diff --git a/frontend.h b/frontend.h index 586720d..f4734aa 100644 --- a/frontend.h +++ b/frontend.h @@ -88,6 +88,8 @@ void NotifyFrontendLogin P((void)); void CommentPopUp P((String title, String comment)); void CommentPopDown P((void)); void EditCommentPopUp P((int index, String title, String text)); +void ErrorPopDown P((void)); +int EventToSquare P((int x, int limit)); void RingBell P((void)); void PlayIcsWinSound P((void)); @@ -118,6 +120,13 @@ typedef void (*DelayedEventCallback) P((void)); void ScheduleDelayedEvent P((DelayedEventCallback cb, long millisec)); DelayedEventCallback GetDelayedEvent P((void)); void CancelDelayedEvent P((void)); +// [HGM] mouse: next six used by mouse handler, which was moved to backend +extern int fromX, fromY, toX, toY; +typedef enum { Press, Release } ClickType; +void PromotionPopUp P((void)); +void DragPieceBegin P((int x, int y)); +void DragPieceEnd P((int x, int y)); +void LeftClick P((ClickType c, int x, int y)); int StartChildProcess P((char *cmdLine, char *dir, ProcRef *pr)); void DestroyChildProcess P((ProcRef pr, int/*boolean*/ signal)); @@ -174,6 +183,9 @@ void HistorySet P((char movelist[][2*MOVE_LEN], int first, int last, int current void FreezeUI P((void)); void ThawUI P((void)); extern char *programName; +extern int commentUp; + +void GreyRevert P((Boolean grey)); typedef struct FrontEndProgramStats_TAG { int which; @@ -189,4 +201,9 @@ typedef struct FrontEndProgramStats_TAG { void SetProgramStats P(( FrontEndProgramStats * stats )); /* [AS] */ +void EngineOutputPopUp P((void)); +void EngineOutputPopDown P((void)); +int EngineOutputIsUp P((void)); +int EngineOutputDialogExists P((void)); + #endif