home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / lemming / part01 / lemglobal.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-08-05  |  1.5 KB  |  55 lines

  1. /*
  2.  * lemglobal.c -- global variables
  3.  *
  4.  * copyright (c) by Alan W. Paeth, 1987. All rights reserved.
  5.  */
  6.  
  7. #include "lem.h"
  8. #include "lemfont.h"
  9.  
  10. /* global object array */
  11.  
  12. pel objs[MAXOBJS];
  13. int lastobj;
  14.  
  15. /* global font information */
  16.  
  17. fontdir lemfont[RCLEN];
  18. BFont bfont[RCLEN];
  19.  
  20. int rclen;
  21.  
  22. /* command line globals */
  23.  
  24. char *firstfile;    /* name of first input dataset */
  25. int displayon;        /* true if display is running */
  26.  
  27. /* global cursor and screen info */
  28.  
  29. int changes;        /* objects added/deleted since last write */
  30. int tickflag, ticksize;    /* true if ticks turned on, tick size [0..6] */
  31. int tx, ty;        /* tick x,y spacing */
  32. int txoff, tyoff;    /* tick x,y offset */
  33. int tickdot;        /* hwidth of tick dot: 0/1 for DEC/SUN X-windows */
  34. int markx, marky;    /* current mark */
  35. int markon;        /* if any mark is present */
  36. int markobj;        /* object number if mark is present and on an object */
  37. int anysel;        /* if at least one selection */
  38.  
  39. char gtype;        /* default object creation */
  40. char galign;        /* default alignment */
  41. char gemph;        /* default emphasis */
  42. char gsize;        /* default size */
  43.  
  44. /* undo information */
  45.  
  46. char undo;        /* 'T' - transform 'M' - move 'U' - undelete */ 
  47. int unx,uny, unxe,unye; /* translation and affine transformation values */
  48. float un11, un12, un21, un22;
  49.  
  50. int screenw, screenh;            /* maximum screen size */
  51. int cred, cgreen, cwhite, cblack;    /* system colors */
  52. char line[MAXCHAR];            /* input text line */
  53. char msgtext[MAXCHAR];            /* pending warning messages */
  54. char prompttext[MAXCHAR];        /* messages to the user */
  55.