X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=frontend.h;h=a195f2e879a9b7afa504c2076a8891fe5332151c;hb=v4.9.x;hp=10bb064d27040c78b24feea2d4268cbe7dfdd372;hpb=c37d45adc7d98a702a7459ccdc0ac23df01a476e;p=xboard.git diff --git a/frontend.h b/frontend.h index 10bb064..a195f2e 100644 --- a/frontend.h +++ b/frontend.h @@ -5,7 +5,8 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free + * Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -79,6 +80,7 @@ void DisplayIcsInteractionTitle P((String title)); void ParseArgsFromString P((char *p)); void ParseArgsFromFile P((FILE *f)); void DrawPosition P((int fullRedraw, Board board)); +void DrawPositionX P((int fullRedraw, Board board)); void ResetFrontEnd P((void)); void NotifyFrontendLogin P((void)); void CommentPopUp P((String title, String comment)); @@ -93,13 +95,14 @@ void DrawSeekDot P((int x, int y, int color)); void PopUpMoveDialog P((char first)); void RingBell P((void)); +int Roar P((void)); void PlayIcsWinSound P((void)); void PlayIcsLossSound P((void)); void PlayIcsDrawSound P((void)); void PlayIcsUnfinishedSound P((void)); void PlayAlarmSound P((void)); void PlayTellSound P((void)); -void PlaySoundFile P((char *name)); +int PlaySoundFile P((char *name)); void PlaySoundByColor P((void)); void EchoOn P((void)); void EchoOff P((void)); @@ -107,6 +110,7 @@ void Raw P((void)); void Colorize P((ColorClass cc, int continuation)); char *InterpretFileName P((char *name, char *dir)); void DoSleep P((int n)); +void DoEvents P((void)); char *UserName P((void)); char *HostName P((void)); @@ -122,22 +126,25 @@ int LoadGameTimerRunning P((void)); int StopLoadGameTimer P((void)); void StartLoadGameTimer P((long millisec)); void AutoSaveGame P((void)); +Boolean ParseSettingsFile P((char *name, char **addr)); 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; -void PromotionPopUp P((void)); +void PromotionPopUp P((char choice)); void DragPieceBegin P((int x, int y, Boolean instantly)); void DragPieceEnd P((int x, int y)); void DragPieceMove P((int x, int y)); void LeftClick P((ClickType c, int x, int y)); int RightClick P((ClickType c, int x, int y, int *col, int *row)); +void Wheel P((int dir, int x, int y)); int StartChildProcess P((char *cmdLine, char *dir, ProcRef *pr)); void DestroyChildProcess P((ProcRef pr, int/*boolean*/ signal)); void InterruptChildProcess P((ProcRef pr)); +char *BufferCommandOutput P((char *command, int size)); void RunCommand P((char *buf)); int OpenTelnet P((char *host, char *port, ProcRef *pr)); @@ -163,6 +170,7 @@ void CmailSigHandlerCallBack P((InputSourceRef isr, VOIDSTAR closure, extern ProcRef cmailPR; extern int shiftKey, controlKey; +extern char dataDir[], manDir[]; /* in xgamelist.c or winboard.c */ void GLT_ClearList(); @@ -178,6 +186,7 @@ void GameListPopUp P((FILE *fp, char *filename)); void GameListPopDown P((void)); void GameListHighlight P((int index)); void GameListDestroy P((void)); +void GameListUpdate P((void)); FILE *GameFile P((void)); /* these are in wedittags.c */ @@ -207,7 +216,10 @@ void ChangeDragPiece P((ChessSquare piece)); void CopyFENToClipboard P((void)); extern char *programName; extern int commentUp; +extern char *engineListFile; extern char *firstChessProgramNames; +extern char *icsTextMenuString; +extern int mute; void GreyRevert P((Boolean grey)); void EnableNamedMenuItem P((char *menuRef, int state)); @@ -236,6 +248,7 @@ int EvalGraphDialogExists P((void)); void SlavePopUp P((void)); void ActivateTheme P((int new)); char *Col2Text P((int n)); +char *Shorten P((char *s)); /* these are in xhistory.c */ Boolean MoveHistoryIsUp P((void));