1 /*****************************************************************************/
2 /*
3 
4 Copyright 1989, 1998  The Open Group
5 
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
10 documentation.
11 
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14 
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 
22 Except as contained in this notice, the name of The Open Group shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in this Software without prior written authorization from The Open Group.
25 
26 */
27 /**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
28 /**                          Salt Lake City, Utah                           **/
29 /**                        Cambridge, Massachusetts                         **/
30 /**                                                                         **/
31 /**                           All Rights Reserved                           **/
32 /**                                                                         **/
33 /**    Permission to use, copy, modify, and distribute this software and    **/
34 /**    its documentation  for  any  purpose  and  without  fee is hereby    **/
35 /**    granted, provided that the above copyright notice appear  in  all    **/
36 /**    copies and that both  that  copyright  notice  and  this  permis-    **/
37 /**    sion  notice appear in supporting  documentation,  and  that  the    **/
38 /**    name of Evans & Sutherland not be used in advertising    **/
39 /**    in publicity pertaining to distribution of the  software  without    **/
40 /**    specific, written prior permission.                                  **/
41 /**                                                                         **/
42 /**    EVANS & SUTHERLAND DISCLAIMs ALL WARRANTIES WITH REGARD    **/
43 /**    TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES  OF  MERCHANT-    **/
44 /**    ABILITY  AND  FITNESS,  IN  NO  EVENT SHALL EVANS & SUTHERLAND    **/
45 /**    BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL  DAM-    **/
46 /**    AGES OR  ANY DAMAGES WHATSOEVER  RESULTING FROM LOSS OF USE, DATA    **/
47 /**    OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER    **/
48 /**    TORTIOUS ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE    **/
49 /**    OR PERFORMANCE OF THIS SOFTWARE.                                     **/
50 /*****************************************************************************/
51 
52 /**********************************************************************
53  *
54  * .twmrc parsing externs
55  *
56  *  8-Apr-88 Tom LaStrange        Initial Version.
57  *
58  **********************************************************************/
59 
60 #ifndef _PARSE_
61 #define _PARSE_
62 
63 #include "list.h"
64 
65 extern void assign_var_savecolor(void);
66 extern int do_single_keyword(int keyword);
67 extern int do_string_keyword(int keyword, char *s);
68 extern int do_number_keyword(int keyword, int num);
69 extern name_list **do_colorlist_keyword(int keyword, int colormode, char *s);
70 extern int do_color_keyword(int keyword, int colormode, char *s);
71 extern void do_string_savecolor(int colormode, char *s);
72 extern void do_var_savecolor(int key);
73 extern int ParseTwmrc(char *filename);
74 extern int parse_keyword(char *s, int *nump);
75 extern void TwmOutput(int c);
76 extern void twmUnput(int c);
77 extern void do_squeeze_entry(name_list ** list, char *name, int justify,
78                              int num, int denom);
79 
80 extern int (*twmInputFunc) (void);
81 extern int ConstrainedMoveTime;
82 extern unsigned char *defTwmrc[];
83 extern int mods;
84 
85 #define F_NOP                   0
86 #define F_BEEP                  1
87 #define F_RESTART               2
88 #define F_QUIT                  3
89 #define F_FOCUS                 4
90 #define F_REFRESH               5
91 #define F_WINREFRESH            6
92 #define F_DELTASTOP             7
93 #define F_MOVE                  8
94 #define F_POPUP                 9
95 #define F_FORCEMOVE             10
96 #define F_AUTORAISE             11
97 #define F_IDENTIFY              12
98 #define F_ICONIFY               13
99 #define F_DEICONIFY             14
100 #define F_UNFOCUS               15
101 #define F_RESIZE                16
102 #define F_ZOOM                  17
103 #define F_LEFTZOOM              18
104 #define F_RIGHTZOOM             19
105 #define F_TOPZOOM               20
106 #define F_BOTTOMZOOM            21
107 #define F_HORIZOOM              22
108 #define F_FULLZOOM              23
109 #define F_RAISE                 24
110 #define F_RAISELOWER            25
111 #define F_LOWER                 26
112 #define F_DESTROY               27
113 #define F_DELETE                28
114 #define F_SAVEYOURSELF          29
115 #define F_VERSION               30
116 #define F_TITLE                 31
117 #define F_RIGHTICONMGR          32
118 #define F_LEFTICONMGR           33
119 #define F_UPICONMGR             34
120 #define F_DOWNICONMGR           35
121 #define F_FORWICONMGR           36
122 #define F_BACKICONMGR           37
123 #define F_NEXTICONMGR           38
124 #define F_PREVICONMGR           39
125 #define F_SORTICONMGR           40
126 #define F_CIRCLEUP              41
127 #define F_CIRCLEDOWN            42
128 #define F_CUTFILE               43
129 #define F_SHOWLIST              44
130 #define F_HIDELIST              45
131 
132 #define F_MENU                  101     /* string */
133 #define F_WARPNEXT              112     /* string */
134 #define F_WARPPREV              113     /* string */
135 #define F_WARPTO                102     /* string */
136 #define F_WARPTOICONMGR         103     /* string */
137 #define F_WARPRING              104     /* string */
138 #define F_FILE                  105     /* string */
139 #define F_EXEC                  106     /* string */
140 #define F_CUT                   107     /* string */
141 #define F_FUNCTION              108     /* string */
142 #define F_WARPTOSCREEN          109     /* string */
143 #define F_COLORMAP              110     /* string */
144 #define F_PRIORITY              111     /* string */
145 #define F_STARTWM               114     /* string */
146 
147 #define D_NORTH                 1
148 #define D_SOUTH                 2
149 #define D_EAST                  3
150 #define D_WEST                  4
151 
152 #endif                          /* _PARSE_ */
153