X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.h;h=7f12900d024a89c4c48c2dbcd3569e50bda106fc;hb=02de46755f727ffb565f7c855f37c344eee925ff;hp=bc2a5f984b64004750a79d115153a3461bb3a3e7;hpb=0f9e0a86b743e218d43e72fba5ad1e3640236a2a;p=xboard.git diff --git a/xboard.h b/xboard.h index bc2a5f9..7f12900 100644 --- a/xboard.h +++ b/xboard.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -52,7 +52,6 @@ #include #define ICS_LOGON ".icsrc" -#define INFOFILE "xboard.info" #define MANPAGE "xboard.6" #if ENABLE_NLS #define CLOCK_FONT_NAME \ @@ -104,10 +103,10 @@ typedef struct { { "Big", 87, 3, 34, 14, 14, 0, 0, 864 }, \ { "Large", 80, 3, 34, 14, 14, 0, 0, 864 }, \ { "Bulky", 72, 3, 34, 12, 14, 0, 0, 864 }, \ - { "Medium", 64, 3, 34, 12, 14, 0, 0, 768 }, \ - { "Moderate", 58, 3, 34, 12, 14, 0, 0, 768 }, \ - { "Average", 54, 2, 30, 11, 12, 0, 0, 600 }, \ - { "Middling", 49, 2, 24, 10, 12, 0, 0, 600 }, \ + { "Medium", 64, 3, 34, 12, 14, 1, 0, 768 }, \ + { "Moderate", 58, 3, 34, 12, 14, 1, 0, 768 }, \ + { "Average", 54, 2, 30, 11, 12, 1, 0, 600 }, \ + { "Middling", 49, 2, 24, 10, 12, 1, 0, 600 }, \ { "Mediocre", 45, 2, 20, 10, 12, 1, 0, 600 }, \ { "Small", 40, 2, 20, 10, 12, 1, 0, 480 }, \ { "Slim", 37, 2, 20, 10, 12, 1, 0, 480 }, \ @@ -133,19 +132,26 @@ typedef struct { typedef int (*FileProc) P((FILE *f, int n, char *title)); -int PopDown P((int n)); -void InputBoxPopup P((void)); +void NewTagsPopup P((char *text, char *msg)); +int AppendText P((Option *opt, char *s)); +void NewCommentPopup P((char *title, char *text, int index)); +void MarkMenu P((char *item, int dlgNr)); +void GetWidgetText P((Option *opt, char **buf)); +void ClearTextWidget P((Option *opt)); void CatchDeleteWindow(Widget w, String procname); -void PlaySound P((char *name)); -void ParseIcsTextColors P((void)); +void GenericPopDown P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); void InitDrawingSizes P((int i, int j)); void SendToICS P((char *buf)); void SendToProgram P((char *message, ChessProgramState *cps)); +void TypeInProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); +void WheelProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); +void TabProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); +void GenericMenu P((Widget w, XEvent *event, String *prms, Cardinal *nprms)); FILE * XsraSelFile P((Widget w, char *prompt, char *ok, char *cancel, char *failed, char *init_path, char *filter, char *mode, int (*show_entry)(), char **name_return)); extern Widget shells[]; -extern Boolean shellUp[]; +extern int dialogError; extern Widget formWidget, shellWidget, boardWidget, menuBarWidget, gameListShell, historyShell; extern Display *xDisplay; extern Window xBoardWindow; @@ -162,6 +168,7 @@ extern char *icsTextMenuString; extern char ICSInputTranslations[]; extern char *selected_fen_position; extern GC coordGC; +extern Dimension textHeight; // of message widget in board window #define TOPLEVEL 1 /* preference item; 1 = make popup windows toplevel */