#define VERSION "1.2a" #define BUFLEN 512 #define DOUBLECLICKTHRES 250 #define DEFTEXTW 8 #define DEFTEXTH 10 #define MAXPOINTS 20 #define MAXBUTTONS 40 #define MAXMAPS 60 #define MAXHISTORY 50 #define MAXCHILDREN 30 #define MAXOBJTYPES 30 #define MAXOBJECTS 512 #define MAXLINKS 512 #define MAXLETTERVECTS 95 #define MAXTEXT 512 #define CURSORWIDTH 6 #define FIRSTLET 33 #define LASTLET 122 #define MINLETTERWIDTH 6 #define MINLETTERHEIGHT 6 #define MAXLETTERWIDTH 100 #define MAXLETTERHEIGHT 100 #define MAXOBJWIDTH 300 #define MAXOBJHEIGHT 300 #define MINOBJWIDTH 20 #define MINOBJHEIGHT 20 #define MAPBOXTEXTHEIGHT 10 #define MAXFILLSTACK 500000 #define OLDMAXVECTORSPERIMAGE (60) #define MAXVECTORSPERIMAGE (120) #define LINESELTHRESHOLD (4) #define LINESELHANDLESIZE (5) #define OBJSELHANDLEPCT (15) /* used as a NULL value for colours */ #define NOCOLOUR (99) #define USECOLOUR (100) #define GRIDBRIGHTNESS 100 #define T_EMPTY (0) #define T_OBJECT (1) #define T_LINK (2) #define T_TEXT (3) #define T_LINKPOINT (4) #define T_MAP (5) #define O_ROUTER (0) #define O_SWITCH (1) #define O_FIREWALL (2) #define O_SERVER (3) #define O_PC (4) #define VT_LINE (0) #define VT_BOX (1) #define VT_DOT (2) #define VT_FILL (3) #define VT_ELLIPSE (4) #define VT_FILLBOX (5) #define TRUE (-1) #define FALSE (0) #define S_NONE (0) #define S_OBJMOVING (1) #define S_RESIZING (2) #define S_DRAWLINK (3) #define S_ADDOBJ (4) #define S_LINKMOVING (5) #define S_LINKSRCMOVE (6) #define S_LINKDSTMOVE (7) #define S_ADDTEXT (8) #define S_TYPETEXT (9) #define S_TEXTMOVING (10) #define S_TEXTRESIZING (11) #define S_SAVING (12) #define S_LOADING (13) #define S_LINKPOINTMOVE (14) #define S_FGCOL (15) #define S_MAPNAMING (16) #define S_MATCHSIZE (17) #define S_MATCHX (18) #define S_MATCHY (19) #define S_CREATETELE (20) #define S_REALLYQUIT (21) #define S_FILLCOL (22) #define S_EDITTEXT (23) #define S_CHANGEOBJECT (24) #define TB_POINTER (0) #define TB_ADDOBJ (1) #define TB_ADDTEXT (2) #define TB_FGCOL (3) #define TB_FILLCOL (4) #define TB_LINESTYLE (5) #define TB_MATCHSIZE (6) #define TB_MATCHX (7) #define TB_MATCHY (8) #define TB_DRILLDOWN (9) #define TB_CREATETELE (10) #define TB_DELETEMAP (11) #define TB_NEW (12) #define TB_LOAD (13) #define TB_SAVE (14) #define SIDEBARW 100 #define NUMSTYLES (7) #define YES (1) #define NO (0) #define MAYBE (-1) /* line styles etc */ /* * Unused Arrow Style Thickness (max 5?) * 00000000 00000000 00000000 00000000 */ #define LS_SOLID (0) #define LS_DOTTED (1) #define LS_BIGDASH (2) #define LS_DASHDOT (3) #define MAXLINESTYLE (4) #define LINESTYLESIZE (10) /* arrow positions */ #define AP_NONE (0) #define AP_START (1) #define AP_END (2) #define AP_BOTH (3) #define C_NONE (-1) #define C_SCROLLUP (-2) #define C_SCROLLDOWN (-3) /* mouse positions */ #define MP_NONE (0) #define MP_TOOLBOX (1) #define MP_MAPBOXNAME (2) #define MP_MAPBOXCHILDREN (3) #define MP_OBJECTBOX (4)