tomwalters@0: /* tomwalters@0: Copyright (c) Applied Psychology Unit, Medical Research Council. 1993 tomwalters@0: =========================================================================== tomwalters@0: tomwalters@0: Permission to use, copy, modify, and distribute this software without fee tomwalters@0: is hereby granted for research purposes, provided that this copyright tomwalters@0: notice appears in all copies and in all supporting documentation, and that tomwalters@0: the software is not redistributed for any fee (except for a nominal tomwalters@0: shipping charge). Anyone wanting to incorporate all or part of this tomwalters@0: software in a commercial product must obtain a license from the Medical tomwalters@0: Research Council. tomwalters@0: tomwalters@0: The MRC makes no representations about the suitability of this tomwalters@0: software for any purpose. It is provided "as is" without express or tomwalters@0: implied warranty. tomwalters@0: tomwalters@0: THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING tomwalters@0: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL tomwalters@0: THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES tomwalters@0: OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, tomwalters@0: WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, tomwalters@0: ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS tomwalters@0: SOFTWARE. tomwalters@0: */ tomwalters@0: tomwalters@0: /* tomwalters@0: * xreview.h tomwalters@0: * --------- tomwalters@0: * tomwalters@0: * tomwalters@0: * M. Akeroyd. July 1993. version 1.00 tomwalters@0: * tomwalters@0: */ tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: #include tomwalters@0: #include tomwalters@0: #include tomwalters@0: #include tomwalters@0: #include tomwalters@0: #include tomwalters@0: tomwalters@0: #define BITMAPDEPTH 1 tomwalters@0: #define TOO_SMALL_X 0 tomwalters@0: #define BIG_ENOUGH_X 1 tomwalters@0: #define TOO_BIG_X 2 tomwalters@0: #define MIN_WIDTH_XWINDOW 200 /* in pixels */ tomwalters@0: #define MIN_HEIGHT_XWINDOW 200 /* in pixels */ tomwalters@0: tomwalters@0: #define LINE_WIDTH_X 0 tomwalters@0: #define LINE_STYLE_X LineSolid tomwalters@0: #define CAP_STYLE_X CapButt tomwalters@0: #define JOIN_STYLE_X JoinRound tomwalters@0: tomwalters@0: #define DEFAULT_POINTSIZE 18 /* of the font */ tomwalters@0: tomwalters@0: #define BYTES_PER_LINE 64 tomwalters@0: #define BITMAP_PAD 8 tomwalters@0: tomwalters@0: #define CONTROL_WIDTH 610 /* pixels */ tomwalters@0: #define CONTROL_HEIGHT 210 /* pixels */ tomwalters@0: #define CONTROL_X 100 /* pixels */ tomwalters@0: #define CONTROL_Y 600 /* pixels */ tomwalters@0: tomwalters@0: tomwalters@0: #define MAX_LINES_HEADER 100 /* 69 is what .ctns are */ tomwalters@0: #define MAX_LINE_LENGTH 80 /* of a header : width of an xterm */ tomwalters@0: #define MAX_FRAMES 1000 tomwalters@0: tomwalters@0: #define MAX_STRING_LENGTH 255 /* of a filename, etc */ tomwalters@0: #define NULL_STRING "" tomwalters@0: tomwalters@0: #define OFF 0 tomwalters@0: #define ON 1 tomwalters@0: tomwalters@0: #define READ 31 /* used in fopen as "rb" */ tomwalters@0: #define WRITE 32 /* used in fopen as "wb" */ tomwalters@0: tomwalters@0: #define INPUT_EXT ".ctn" tomwalters@0: tomwalters@0: #define MONO 10 tomwalters@0: #define COLOUR 11 tomwalters@0: #define SERVER 12 tomwalters@0: #define DEC 13 tomwalters@0: #define SUN 14 tomwalters@0: tomwalters@0: /* WARNING: fonts are left out */ tomwalters@0: tomwalters@0: typedef struct top_level_Window { tomwalters@0: Window win; tomwalters@0: unsigned int width; tomwalters@0: unsigned int height; tomwalters@0: int x; tomwalters@0: int y; tomwalters@0: unsigned int border_width; tomwalters@0: int window_size; tomwalters@0: char *window_name; tomwalters@0: char *icon_name; tomwalters@0: Pixmap icon_pixmap; tomwalters@0: XSizeHints size_hints; tomwalters@0: XEvent report; tomwalters@0: GC gc; tomwalters@0: XWMHints wm_hints; tomwalters@0: XClassHint class_hints; tomwalters@0: XTextProperty windowName; tomwalters@0: XTextProperty iconName; tomwalters@0: unsigned long valuemask; tomwalters@0: XGCValues values; tomwalters@0: unsigned int line_width; tomwalters@0: unsigned int line_style; tomwalters@0: unsigned int cap_style; tomwalters@0: unsigned int join_style; tomwalters@0: unsigned int foreground; tomwalters@0: } toplevelWindow; tomwalters@0: tomwalters@0: tomwalters@0: typedef struct button_window { tomwalters@0: Window win; tomwalters@0: unsigned int width; tomwalters@0: unsigned int height; tomwalters@0: int x; tomwalters@0: int y; tomwalters@0: } buttonWindow; tomwalters@0: tomwalters@0: tomwalters@0: