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