netmapr/constants.h

132 lines
2.4 KiB
C
Raw Normal View History

#define VERSION "0.99b"
2005-10-25 16:35:55 +10:00
#define BUFLEN 512
#define DOUBLECLICKTHRES 250
#define DEFTEXTW 8
#define DEFTEXTH 10
#define MAXPOINTS 20
#define MAXBUTTONS 40
#define MAXMAPS 20
2005-10-25 16:35:55 +10:00
#define MAXHISTORY 50
#define MAXCHILDREN 10
#define MAXOBJTYPES 19
#define MAXOBJECTS 512
#define MAXLINKS 512
#define MAXLETTERVECTS 95
#define MAXTEXT 512
#define CURSORWIDTH 6
2005-10-25 16:35:55 +10:00
#define FIRSTLET 33
#define LASTLET 122
#define MINLETTERWIDTH 6
#define MINLETTERHEIGHT 6
#define MAXLETTERWIDTH 100
#define MAXLETTERHEIGHT 100
#define MAXOBJWIDTH 300
#define MAXOBJHEIGHT 300
2005-10-25 16:35:55 +10:00
#define MINOBJWIDTH 20
#define MINOBJHEIGHT 20
#define MAPBOXTEXTHEIGHT 10
2005-10-25 16:35:55 +10:00
#define MAXFILLSTACK 500000
#define OLDMAXVECTORSPERIMAGE (60)
#define MAXVECTORSPERIMAGE (120)
2005-10-25 16:35:55 +10:00
#define LINESELTHRESHOLD (4)
#define LINESELHANDLESIZE (5)
#define OBJSELHANDLEPCT (15)
/* used as a NULL value for colours */
#define NOCOLOUR (99)
#define USECOLOUR (100)
2005-10-25 16:35:55 +10:00
#define GRIDBRIGHTNESS 100
#define T_EMPTY (0)
#define T_OBJECT (1)
#define T_LINK (2)
#define T_TEXT (3)
#define T_LINKPOINT (4)
#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 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)
2005-10-25 16:35:55 +10:00
#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 LS_NORMAL (0)
#define LS_BOLD1 (1)
#define LS_BOLD2 (2)
#define LS_BOLD3 (3)
#define LS_BOLD4 (4)
#define LS_BOLD5 (5)
#define LS_DOTTED (6)
#define NUMSTYLES (7)
#define YES (1)
#define NO (0)
#define MAYBE (-1)