40 |
#include "status.h" |
#include "status.h" |
41 |
#include "util.h" |
#include "util.h" |
42 |
|
|
43 |
|
#if XmVERSION > 1 & XmREVISION > 1 |
44 |
|
#include <Xm/XpmP.h> |
45 |
|
#else |
46 |
|
#include <xpm.h> |
47 |
|
#endif /* XmVERSION > 1 & XmREVISION > 1 */ |
48 |
|
|
49 |
|
#ifdef HAVE_XLT |
50 |
|
#include <Xlt/Xlt.h> |
51 |
|
#include <Xlt/FontChooser.h> |
52 |
|
#endif /* HAVE_XLT */ |
53 |
|
|
54 |
struct antiright_application_structure |
struct antiright_application_structure |
55 |
{ |
{ |
56 |
/* This is the display on which antiright.parent_widget runs. */ |
/* This is the display on which antiright.parent_widget runs. */ |
73 |
Arg arguments[64]; |
Arg arguments[64]; |
74 |
/* This is the argument counter. */ |
/* This is the argument counter. */ |
75 |
int arguments_int; |
int arguments_int; |
76 |
|
/* This, if true, prints status messages containing client_data when |
77 |
|
a button is armed. */ |
78 |
|
Boolean arm_status; |
79 |
}; |
}; |
80 |
|
|
81 |
/* This structure is used in all AntiRight programs. */ |
/* This structure is used in all AntiRight programs. */ |
149 |
abreviation for AntiRight. CL is an abbreviation for CLear. ARG |
abreviation for AntiRight. CL is an abbreviation for CLear. ARG |
150 |
is an abbreviation for ARGuments. */ |
is an abbreviation for ARGuments. */ |
151 |
#define ARCLARG antiright.arguments_int=0 |
#define ARCLARG antiright.arguments_int=0 |
152 |
|
/* This is a shortcut to specifying the variables that hold a widget's |
153 |
|
arguments. */ |
154 |
|
#define ARARGS antiright.arguments, antiright.arguments_int |
155 |
|
/* This is a shortcut for the parameters of an Xt callback. */ |
156 |
|
#define ARCBARG Widget widget, XtPointer client_data, XtPointer call_data |
157 |
/* This is used by the form layout functions in order to set an |
/* This is used by the form layout functions in order to set an |
158 |
unattached widget. */ |
unattached widget. */ |
159 |
enum{ANTIRIGHT_NONE=-1}; |
enum{ANTIRIGHT_NONE=-1}; |
160 |
|
/* This is a debug marking function. */ |
161 |
|
#define ARBUG \ |
162 |
|
{ \ |
163 |
|
printf("%s: %d\n", __FILE__, __LINE__); \ |
164 |
|
fflush(stdout); \ |
165 |
|
} \ |
166 |
|
|
167 |
|
|
168 |
#endif /* AR_LIBRARY_H */ |
#endif /* AR_LIBRARY_H */ |