comparison xaim/xreview.h @ 0:5242703e91d3 tip

Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author tomwalters
date Fri, 20 May 2011 15:19:45 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5242703e91d3
1 /*
2 Copyright (c) Applied Psychology Unit, Medical Research Council. 1993
3 ===========================================================================
4
5 Permission to use, copy, modify, and distribute this software without fee
6 is hereby granted for research purposes, provided that this copyright
7 notice appears in all copies and in all supporting documentation, and that
8 the software is not redistributed for any fee (except for a nominal
9 shipping charge). Anyone wanting to incorporate all or part of this
10 software in a commercial product must obtain a license from the Medical
11 Research Council.
12
13 The MRC makes no representations about the suitability of this
14 software for any purpose. It is provided "as is" without express or
15 implied warranty.
16
17 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
18 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
19 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
20 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
22 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
23 SOFTWARE.
24 */
25
26 /*
27 * xreview.h
28 * ---------
29 *
30 *
31 * M. Akeroyd. July 1993. version 1.00
32 *
33 */
34
35
36
37 #include <X11/Xlib.h>
38 #include <X11/Xutil.h>
39 #include <X11/Xos.h>
40 #include <X11/Xatom.h>
41 #include <X11/Xmu/Xmu.h>
42 #include <X11/keysym.h>
43
44 #define BITMAPDEPTH 1
45 #define TOO_SMALL_X 0
46 #define BIG_ENOUGH_X 1
47 #define TOO_BIG_X 2
48 #define MIN_WIDTH_XWINDOW 200 /* in pixels */
49 #define MIN_HEIGHT_XWINDOW 200 /* in pixels */
50
51 #define LINE_WIDTH_X 0
52 #define LINE_STYLE_X LineSolid
53 #define CAP_STYLE_X CapButt
54 #define JOIN_STYLE_X JoinRound
55
56 #define DEFAULT_POINTSIZE 18 /* of the font */
57
58 #define BYTES_PER_LINE 64
59 #define BITMAP_PAD 8
60
61 #define CONTROL_WIDTH 610 /* pixels */
62 #define CONTROL_HEIGHT 210 /* pixels */
63 #define CONTROL_X 100 /* pixels */
64 #define CONTROL_Y 600 /* pixels */
65
66
67 #define MAX_LINES_HEADER 100 /* 69 is what .ctns are */
68 #define MAX_LINE_LENGTH 80 /* of a header : width of an xterm */
69 #define MAX_FRAMES 1000
70
71 #define MAX_STRING_LENGTH 255 /* of a filename, etc */
72 #define NULL_STRING ""
73
74 #define OFF 0
75 #define ON 1
76
77 #define READ 31 /* used in fopen as "rb" */
78 #define WRITE 32 /* used in fopen as "wb" */
79
80 #define INPUT_EXT ".ctn"
81
82 #define MONO 10
83 #define COLOUR 11
84 #define SERVER 12
85 #define DEC 13
86 #define SUN 14
87
88 /* WARNING: fonts are left out */
89
90 typedef struct top_level_Window {
91 Window win;
92 unsigned int width;
93 unsigned int height;
94 int x;
95 int y;
96 unsigned int border_width;
97 int window_size;
98 char *window_name;
99 char *icon_name;
100 Pixmap icon_pixmap;
101 XSizeHints size_hints;
102 XEvent report;
103 GC gc;
104 XWMHints wm_hints;
105 XClassHint class_hints;
106 XTextProperty windowName;
107 XTextProperty iconName;
108 unsigned long valuemask;
109 XGCValues values;
110 unsigned int line_width;
111 unsigned int line_style;
112 unsigned int cap_style;
113 unsigned int join_style;
114 unsigned int foreground;
115 } toplevelWindow;
116
117
118 typedef struct button_window {
119 Window win;
120 unsigned int width;
121 unsigned int height;
122 int x;
123 int y;
124 } buttonWindow;
125
126
127