| 1 |
root |
1.1 |
|
| 2 |
|
|
#ifndef _Defines_h_ |
| 3 |
|
|
#define _Defines_h_ |
| 4 |
|
|
|
| 5 |
|
|
#include <Posix.h> |
| 6 |
|
|
#include <X11/Intrinsic.h> |
| 7 |
|
|
#include <global.h> |
| 8 |
|
|
|
| 9 |
|
|
#ifndef CrossEdit |
| 10 |
|
|
#define CrossEdit |
| 11 |
|
|
#endif |
| 12 |
|
|
|
| 13 |
|
|
extern int FontSize; |
| 14 |
|
|
|
| 15 |
|
|
#define WIZARD_MODE |
| 16 |
|
|
|
| 17 |
|
|
#define STACK_SIZE 40 |
| 18 |
|
|
#define STACK_MIN 4 |
| 19 |
|
|
#define STACK_MAX 12 |
| 20 |
|
|
#define MAPLIST_SIZE 10 |
| 21 |
|
|
#define STYPELIST_SIZE 10 |
| 22 |
|
|
#define FILENAME_SIZE PATH_MAX |
| 23 |
|
|
|
| 24 |
|
|
#ifndef NeXT |
| 25 |
|
|
#define EXIT_FAILURE 1 |
| 26 |
|
|
#endif |
| 27 |
|
|
|
| 28 |
|
|
/* |
| 29 |
|
|
* Map size limits |
| 30 |
|
|
*/ |
| 31 |
|
|
#define MapMinWidth 1 |
| 32 |
|
|
#define MapMinHeight 1 |
| 33 |
|
|
#define MapMaxWidth 100 |
| 34 |
|
|
#define MapMaxHeight 100 |
| 35 |
|
|
|
| 36 |
|
|
#define AppClass "Crossedit" |
| 37 |
|
|
|
| 38 |
|
|
typedef struct _Edit *Edit; |
| 39 |
|
|
typedef struct _App *App; |
| 40 |
|
|
typedef struct _Attr *Attr; |
| 41 |
|
|
typedef struct _MapAttr *MapAttr; |
| 42 |
|
|
|
| 43 |
|
|
typedef struct mapdef *Map; |
| 44 |
|
|
|
| 45 |
|
|
extern enum DisplayMode displaymode; |
| 46 |
|
|
|
| 47 |
|
|
/*typedef struct obj *Object;*/ |
| 48 |
|
|
|
| 49 |
|
|
/* temporary kludge */ |
| 50 |
|
|
|
| 51 |
|
|
extern XColor discolor[]; |
| 52 |
|
|
|
| 53 |
|
|
void CrEditSelect(Widget w,XRectangle rect); |
| 54 |
|
|
|
| 55 |
|
|
enum DisplayMode {Dm_Png}; |
| 56 |
|
|
|
| 57 |
|
|
/* Useful macro */ |
| 58 |
|
|
#define HAS_COLOUR(widg) (PlanesOfScreen(XtScreen(widg)) > 1) |
| 59 |
|
|
|
| 60 |
|
|
#endif |
| 61 |
|
|
|
| 62 |
|
|
|
| 63 |
|
|
/*** end of Defines.h ***/ |
| 64 |
|
|
|