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