X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.h;h=a0b8cf6e1492993aa3376feb09a2cc5e78b9b7cc;hb=c538ad128cef9fea034c4c67405cfb51dc2b6ce3;hp=28259e72ab9afd7d62e0287aa380958689653ef4;hpb=4011e8678d85310eedf19fd00aa5d96a9a60770a;p=xboard.git diff --git a/dialogs.h b/dialogs.h index 28259e7..a0b8cf6 100644 --- a/dialogs.h +++ b/dialogs.h @@ -1,7 +1,7 @@ /* * dialogs.h -- shared variables for generic dialog popup of XBoard * - * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -77,6 +77,8 @@ #define NO_OK (1 << 1) #define NO_CANCEL (1 << 2) +#define REPLACE (1 << 16) + #define MODAL 1 #define NONMODAL 0 @@ -131,6 +133,11 @@ extern WindowPlacement wpComment, wpTags, wpMoveHistory, wpMain, wpDualBoard, wp extern char *marked[]; extern Boolean shellUp[]; extern Option textOptions[], typeOptions[], dualOptions[], mainOptions[]; +extern Option historyOptions[], engoutOptions[], gamesOptions[], chatOptions[], tagsOptions[], commentOptions[]; +#define MAX_SIZE 130 +extern Boolean fontIsSet[], fontValid[][MAX_SIZE]; +extern int initialSquareSize; +extern char *fontTable[][MAX_SIZE]; void GetPlacement P((DialogClass dlg, WindowPlacement *wp)); @@ -154,6 +161,7 @@ void SetWidgetText P((Option *opt, char *buf, int n)); void GetWidgetState P((Option *opt, int *state)); void SetWidgetState P((Option *opt, int state)); void SetWidgetLabel P((Option *opt, char *buf)); +void SetComboChoice P((Option *opt, int choice)); void SetDialogTitle P((DialogClass dlg, char *title)); void LoadListBox P((Option *opt, char *emptyText, int n1, int n2)); void HighlightListBoxItem P((Option *opt, int nr)); @@ -198,6 +206,12 @@ void LoadOptionsPopUp P((DialogClass parent)); void GameListOptionsPopUp P((DialogClass parent)); void RefreshColor P((int source, int n)); void SendString P((char *p)); +void DisplayHelp P((char *name)); +void WidgetEcho P((Option *opt, int n)); +int ErrorOK P((int n)); +void ApplyFont P((Option *opt, char *font)); +void LockBoardSize P((int after)); + // in ngamelist.c int GameListClicks P((int direction));