/*			COPYRIGHT (c) 1989 BY			     *
 *	PARADIGM ASSOCIATES INCORPORATED, CAMBRIDGE, MASSACHUSETTS.       *
 *			   ALL RIGHTS RESERVED			      *

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Paradigm Associates Inc
not be used in advertising or publicity pertaining to distribution of
the software without specific, written prior permission.

PARADIGM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
PARADIGM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.

t2ps header file @(#)tek.h	1.10 (Copyright) Michael Fischbein
Copyright 1987 Michael Fischbein.  Commercial reproduction prohibited;
non-profit reproduction and distribution encouraged.
*/

#include <Xm/Xm.h>
#include <Xm/DrawingA.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

#define XDIM 4096
#define YDIM 3120
			/* 4014 modes & 4105 */
#define ALPHA 0
#define GRAPH 1
#define INCRE 2
#define LCEMD 3
#define PTPLT 4
#define CMD41 5
			/* type sizes (char/line, or lines/page) (for 12bit) */
#define CHUGEX 55
#define CLARGEX 51
#define CMEDX 34
#define CSMALLX 31
#define CHUGEY 89
#define CLARGEY 82
#define CMEDY 54
#define CSMALLY 49
			/* ASCII */
#define NUL 0
#define SOH 1
#define STX 2
#define ETX 3
#define EOT 4
#define ENQ 5
#define ACK 6
#define BEL 7
#define BS  8
#define HT  9
#define LF  10
#define VT  11
#define FF  12
#define NL  13
#define CR  13
#define SO  14
#define SI  15
#define DLE 16
#define DC1 17
#define DC2 18
#define DC3 19
#define DC4 20
#define NAK 21
#define SYN 22
#define ETB 23
#define CAN 24
#define EM  25
#define SUB 26
#define ESC 27
#define FS  28
#define GS  29
#define RS  30
#define US  31
#define SPACE 32
#define DEL 127

#ifndef NULL
#define NULL 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif

static void callbackDrawingArea();
static void handlerFocus();
static void handlerWindow();
static void handlerKeyPress();
static void handlerButtonPress();

static Arg args[15];
static int nargs;
static Widget wdraw;
static Cursor cursor;

#define POINT 1
#define LINE  2
#define LABEL 3
#define POLY  4
