X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.h;h=24b72c3e7043e2f5df563fc025ba67051a9f1972;hb=62b9ce815b3e4ad57092f321c293895aeea4bf45;hp=115000dd3aa24ce1fd270b54e525bea1d03ab33d;hpb=d8018fb1955ada67b23469d7b3610882c99ee4ed;p=xboard.git diff --git a/xboard.h b/xboard.h index 115000d..24b72c3 100644 --- a/xboard.h +++ b/xboard.h @@ -1,11 +1,11 @@ /* * xboard.h -- Parameter definitions for X front end - * $Id: xboard.h,v 2.1 2003/10/27 19:21:00 mann Exp $ * * 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, 2010, 2011, 2012 Free Software Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -54,9 +54,24 @@ #define ICS_LOGON ".icsrc" #define INFOFILE "xboard.info" #define MANPAGE "xboard.6" -#define CLOCK_FONT "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*" -#define COORD_FONT "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*" -#define DEFAULT_FONT "-*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*" +#if ENABLE_NLS +#define CLOCK_FONT_NAME \ + "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*," \ + "-misc-fixed-bold-r-normal--*-*-*-*-*-*-*-*," \ + "-*-*-*-*-*-*-*-*-*-*-*-*-*-*" +#define COORD_FONT_NAME \ + "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*," \ + "-misc-fixed-bold-r-normal--*-*-*-*-*-*-*-*," \ + "-*-*-*-*-*-*-*-*-*-*-*-*-*-*" +#define DEFAULT_FONT_NAME \ + "-*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*," \ + "-misc-fixed-medium-r-normal--*-*-*-*-*-*-*-*," \ + "-*-*-*-*-*-*-*-*-*-*-*-*-*-*" +#else +#define CLOCK_FONT_NAME "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*" +#define COORD_FONT_NAME "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*" +#define DEFAULT_FONT_NAME "-*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*" +#endif #define COLOR_SHOUT "green" #define COLOR_SSHOUT "green,black,1" #define COLOR_CHANNEL1 "cyan" @@ -67,6 +82,7 @@ #define COLOR_REQUEST "red" #define COLOR_SEEK "blue" #define COLOR_NORMAL "default" +#define COLOR_LOWTIMEWARNING "red" typedef struct { char *name; @@ -99,22 +115,61 @@ typedef struct { { "Dinky", 29, 1, 15, 9, 11, 1, 0, 480 }, \ { "Teeny", 25, 1, 12, 8, 11, 1, 1, 480 }, \ { "Tiny", 21, 1, 12, 8, 11, 1, 1, 0 }, \ - { NULL, 0, 0, 0, 0, 0, 0 } } + { NULL, 0, 0, 0, 0, 0, 0, 0, 0 } } #define BORDER_X_OFFSET 3 #define BORDER_Y_OFFSET 27 #define FIRST_CHESS_PROGRAM "fairymax" #define SECOND_CHESS_PROGRAM "fairymax" - -/* Default to no flashing (the "usual" XBoard behavior) */ -#define FLASH_COUNT 0 /* Number of times to flash */ -#define FLASH_RATE 5 /* Flashes per second */ - -/* Default delay per character (in msec) while sending login script */ -#define MS_LOGIN_DELAY 0 +#define FIRST_DIRECTORY "." +#define SECOND_DIRECTORY "." +#define SOUND_BELL "" +#define ICS_NAMES "" +#define FCP_NAMES "" +#define SCP_NAMES "" +#define ICS_TEXT_MENU_DEFAULT "" +#define SETTINGS_FILE SYSCONFDIR"/xboard.conf" +#define COLOR_BKGD "white" typedef int (*FileProc) P((FILE *f, int n, char *title)); + +int PopDown P((int n)); +void NewTagsPopup P((char *text, char *msg)); +int AppendText P((Option *opt, char *s)); +int GenericPopUp P((Option *option, char *title, int dlgNr)); +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 InputBoxPopup P((void)); void CatchDeleteWindow(Widget w, String procname); +void PlaySound P((char *name)); +void ParseIcsTextColors P((void)); +void InitDrawingSizes P((int i, int j)); +void SendToICS P((char *buf)); +void SendToProgram P((char *message, ChessProgramState *cps)); +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 Widget formWidget, shellWidget, boardWidget, menuBarWidget, gameListShell, historyShell; +extern Display *xDisplay; +extern Window xBoardWindow; +extern int squareSize; +extern Pixmap xMarkPixmap, wIconPixmap, bIconPixmap; +extern char *layoutName; +extern Arg layoutArgs[2], formArgs[2], messageArgs[4]; +extern Pixel timerForegroundPixel, timerBackgroundPixel; +extern int searchTime; +extern Atom wm_delete_window; +extern int squareSize, lineGap, defaultLineGap, useImages, useImageSqs; +extern int startedFromPositionFile; +extern char *icsTextMenuString; +extern char ICSInputTranslations[]; +extern char *selected_fen_position; +extern GC coordGC; + #define TOPLEVEL 1 /* preference item; 1 = make popup windows toplevel */