2 * xboard.h -- Parameter definitions for X front end
5 * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.
6 * Enhancements Copyright 1992-95 Free Software Foundation, Inc.
8 * The following terms apply to Digital Equipment Corporation's copyright
10 * ------------------------------------------------------------------------
13 * Permission to use, copy, modify, and distribute this software and its
14 * documentation for any purpose and without fee is hereby granted,
15 * provided that the above copyright notice appear in all copies and that
16 * both that copyright notice and this permission notice appear in
17 * supporting documentation, and that the name of Digital not be
18 * used in advertising or publicity pertaining to distribution of the
19 * software without specific, written prior permission.
21 * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
22 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
23 * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
24 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
25 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
26 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
28 * ------------------------------------------------------------------------
30 * The following terms apply to the enhanced version of XBoard distributed
31 * by the Free Software Foundation:
32 * ------------------------------------------------------------------------
33 * This program is free software; you can redistribute it and/or modify
34 * it under the terms of the GNU General Public License as published by
35 * the Free Software Foundation; either version 2 of the License, or
36 * (at your option) any later version.
38 * This program is distributed in the hope that it will be useful,
39 * but WITHOUT ANY WARRANTY; without even the implied warranty of
40 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 * GNU General Public License for more details.
43 * You should have received a copy of the GNU General Public License
44 * along with this program; if not, write to the Free Software
45 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
46 * ------------------------------------------------------------------------
51 #define ICS_LOGON ".icsrc"
52 #define INFOFILE "xboard.info"
53 #define MANPAGE "xboard.6"
54 #define CLOCK_FONT "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*"
55 #define COORD_FONT "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*"
56 #define DEFAULT_FONT "-*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*"
57 #define COLOR_SHOUT "green"
58 #define COLOR_SSHOUT "green,black,1"
59 #define COLOR_CHANNEL1 "cyan"
60 #define COLOR_CHANNEL "cyan,black,1"
61 #define COLOR_KIBITZ "magenta,black,1"
62 #define COLOR_TELL "yellow,black,1"
63 #define COLOR_CHALLENGE "red,black,1"
64 #define COLOR_REQUEST "red"
65 #define COLOR_SEEK "blue"
66 #define COLOR_NORMAL "default"
80 #define SIZE_DEFAULTS \
81 { { "Titanic", 129, 4, 34, 14, 14, 0, 0, 1200 }, \
82 { "Colossal", 116, 4, 34, 14, 14, 0, 0, 1200 }, \
83 { "Giant", 108, 3, 34, 14, 14, 0, 0, 1024 }, \
84 { "Huge", 95, 3, 34, 14, 14, 0, 0, 1024 }, \
85 { "Big", 87, 3, 34, 14, 14, 0, 0, 864 }, \
86 { "Large", 80, 3, 34, 14, 14, 0, 0, 864 }, \
87 { "Bulky", 72, 3, 34, 12, 14, 0, 0, 864 }, \
88 { "Medium", 64, 3, 34, 12, 14, 0, 0, 768 }, \
89 { "Moderate", 58, 3, 34, 12, 14, 0, 0, 768 }, \
90 { "Average", 54, 2, 30, 11, 12, 0, 0, 600 }, \
91 { "Middling", 49, 2, 24, 10, 12, 0, 0, 600 }, \
92 { "Mediocre", 45, 2, 20, 10, 12, 1, 0, 600 }, \
93 { "Small", 40, 2, 20, 10, 12, 1, 0, 480 }, \
94 { "Slim", 37, 2, 20, 10, 12, 1, 0, 480 }, \
95 { "Petite", 33, 1, 15, 9, 11, 1, 0, 480 }, \
96 { "Dinky", 29, 1, 15, 9, 11, 1, 0, 480 }, \
97 { "Teeny", 25, 1, 12, 8, 11, 1, 1, 480 }, \
98 { "Tiny", 21, 1, 12, 8, 11, 1, 1, 0 }, \
99 { NULL, 0, 0, 0, 0, 0, 0 } }
101 #define BORDER_X_OFFSET 3
102 #define BORDER_Y_OFFSET 27
103 #define FIRST_CHESS_PROGRAM "gnuchessx"
104 #define SECOND_CHESS_PROGRAM "gnuchessx"
106 /* Default to no flashing (the "usual" XBoard behavior) */
107 #define FLASH_COUNT 0 /* Number of times to flash */
108 #define FLASH_RATE 5 /* Flashes per second */
110 /* Default delay per character (in msec) while sending login script */
111 #define MS_LOGIN_DELAY 0
113 typedef int (*FileProc) P((FILE *f, int n, char *title));
114 void CatchDeleteWindow(Widget w, String procname);
116 #define TOPLEVEL 1 /* preference item; 1 = make popup windows toplevel */