Spelling fixes
[oweals/cde.git] / cde / programs / dthello / dthello.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: dthello.h /main/6 1996/10/30 18:19:18 mgreess $ */
24 /*                                                                      *
25  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
26  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
27  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
28  * (c) Copyright 1993, 1994 Novell, Inc.                                *
29  */
30
31 #define  DTHELLO_ID     0
32 #define  DTCOLOR_ID     1
33
34 #define  DTCOLOR_PROGNAME       "dtcolor"
35 #define  DTHELLO_PROGNAME       "dthello"
36
37 #define  DTHELLO_RES_NAME       "dthello"
38 #define  DTHELLO_CLASS_NAME     "Dthello"
39 #define  DTHELLO_CLASS          "Dthello"
40
41 struct globalStruct {
42         char resname [80];
43         char classname [80];
44 };
45
46 /*
47  * Definitions and Macros
48  */
49 #if 0
50 #define DEFAULT_FILE            "/etc/copyright"
51 #endif
52
53 #define DEFAULT_FONT_LARGE      "-dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*"
54 #define DEFAULT_FONT_MEDIUM     "-dt-interface system-medium-r-normal-l*-*-*-*-*-*-*-*-*"
55 #define DEFAULT_FONT_SMALL      "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*"
56 #define DEFAULT_FONT            "-*-*-*-R-*-*-*-120-*-*-*-*"
57  
58 #define FIXED_FONT      "fixed"
59 #define DEFAULT_BG      "cornflowerblue"
60 #define DEFAULT_LOW_BG  "black"
61 #define DEFAULT_FG      "white"
62 #define DEFAULT_LOW_FG  "white"
63 #define DEFAULT_TIME    "240"
64
65 #define DEFAULT_XOFFSET_SMALL    25
66 #define DEFAULT_XOFFSET_MEDIUM   50
67 #define DEFAULT_XOFFSET_LARGE    125
68
69 #define BOX_LINE_WIDTH_SMALL     4
70 #define BOX_LINE_WIDTH_MEDIUM    (BOX_LINE_WIDTH_SMALL + 2)
71 #define BOX_LINE_WIDTH_LARGE     (BOX_LINE_WIDTH_SMALL * 2)
72
73 #define MAX_FILES       5
74 #define MAX_LINES       100
75 #define MAX_COLUMNS     160
76
77
78 /*
79  * My resources
80  */
81 #define vNfont          "vfont"
82 #define vCFont          "Vfont"
83 #define vNxoffset       "xoffset"
84 #define vCXoffset       "Xoffset"
85 #define vNbackground    "vbackground"
86 #define vCBackground    "Vbackground"
87 #define vNforeground    "vforeground"
88 #define vCForeground    "Vforeground"
89 #define vNfile          "file"
90 #define vCFile          "File"
91 #define vNstring        "string"
92 #define vCString        "String"
93 #define vNtimeout       "timeout"
94 #define vCTimeout       "Timeout"
95
96 #ifndef True
97 #define True 1
98 #endif
99 #ifndef False
100 #define False 0
101 #endif
102
103
104 /* 
105  * Data definitions
106  */
107 typedef struct 
108 {
109     char *name;
110     int  len;
111 } ArgSpec;
112
113 typedef struct
114 {
115     char        *resname;
116     char        *resclass;
117     char        **ppvalue;
118     int         *size;
119
120 } VhResourceEntry;
121
122
123 /********    Public Function Declarations    ********/
124
125 extern int main( 
126                         int argc,
127                         char **argv) ;
128 extern int ArgMatch( 
129                         char *pch,
130                         int arn) ;
131 extern char * GetMessage( int set, int n, char *s);
132 extern unsigned char * SkipWhitespace( 
133                         unsigned char *pch) ;
134 extern void KillNewlines( 
135                         unsigned char *pch) ;
136 extern void ReadInTextLines( 
137                         FILE *fp,
138                         XFontSet fontset,
139                         unsigned int *pMaxWidth) ;
140 extern void SeparateTextLines( 
141                         unsigned char *pchIn) ;
142 extern void CatchAlarm( 
143                         int sig) ;
144 extern Cursor GetHourGlass( 
145                         Display *dpy) ;
146 extern void VhGetResources( 
147                         Display *dpy,
148                         char *name,
149                         char *class,
150                         VhResourceEntry *res,
151                         int num) ;
152
153 extern void PaintText( void ) ;
154
155 extern void DrawBox( void ) ;