X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=frontend.h;h=38abd03cd386c9642dbce6ecfa9a28d45a5478fe;hb=85e09fb8d532d31848d6785dc43b6f9ee56e009a;hp=4ac29b2f46dfc1fe8f492dfa187e27f0b7fa8fd7;hpb=7b4dacf6fe9f8c10b6eb4d6070869a3d933dbeb5;p=xboard.git diff --git a/frontend.h b/frontend.h index 4ac29b2..38abd03 100644 --- a/frontend.h +++ b/frontend.h @@ -2,9 +2,12 @@ * frontend.h -- Interface exported by all XBoard front ends * * Copyright 1991 by Digital Equipment Corporation, Maynard, - * Massachusetts. Enhancements Copyright - * 1992-2001,2002,2003,2004,2005,2006,2007,2008,2009 Free Software - * Foundation, Inc. + * Massachusetts. + * + * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, + * 2007, 2008, 2009 Free Software Foundation, Inc. + * + * Enhancements Copyright 2005 Alessandro Scotti * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -81,9 +84,12 @@ void AskQuestion P((String title, String question, String replyPrefix, void DisplayIcsInteractionTitle P((String title)); void DrawPosition P((int fullRedraw, Board board)); void ResetFrontEnd P((void)); +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)); @@ -114,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)); @@ -142,6 +155,14 @@ void CmailSigHandlerCallBack P((InputSourceRef isr, VOIDSTAR closure, extern ProcRef cmailPR; +/* in xgamelist.c or winboard.c */ +void GLT_ClearList(); +void GLT_DeSelectList(); +void GLT_AddToList( char *name ); +Boolean GLT_GetFromList( int index, char *name ); + +extern char lpUserGLT[]; + /* these are in wgamelist.c */ void GameListPopUp P((FILE *fp, char *filename)); void GameListPopDown P((void)); @@ -155,8 +176,8 @@ void TagsPopDown P((void)); void ICSInitScript P((void)); void StartAnalysisClock P((void)); -void AnalysisPopUp P((char *title, char *label)); -void AnalysisPopDown P((void)); +void EngineOutputPopUp P((void)); +void EgineOutputPopDown P((void)); void SetHighlights P((int fromX, int fromY, int toX, int toY)); void ClearHighlights P((void)); @@ -170,6 +191,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; @@ -185,4 +209,14 @@ 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)); +void EvalGraphPopUp P((void)); +void EvalGraphPopDown P((void)); +Boolean EvalGraphIsUp P((void)); +int EvalGraphDialogExists P((void)); +Boolean MoveHistoryIsUp P((void)); + #endif