home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / CKPM5X_S.ZIP / CKOTEK.H < prev    next >
Text File  |  1990-05-04  |  3KB  |  85 lines

  1. /******************************************************************************
  2. Header name:  ckotek.h    Rev: 01  Date: 02-Mar-90 Programmer: C.P.Armstrong
  3.  
  4. Header title:   Definitions used for Tektronix emulation
  5.  
  6. Description:    
  7.  
  8. Modification History:
  9.     01  02-Mar-90   C.P.Armstrong   created
  10.  
  11. ******************************************************************************/
  12. #define HI_X_Y   0x20
  13. #define LO_X     0x40
  14. #define LO_Y_EX  0x60
  15.  
  16. /* Input processing modes */
  17. #define ALPHANUM    0       /* Lines of text */
  18. #define ESCMODE     1
  19. #define VECTMODE    2       /* Line draw mode */
  20. #define ALPHAGRA    3       /* Text at graphics position */
  21. #define GINMODE     4
  22. #define PVECTMODE   5       /* Point plot mode */
  23. #define INCREMODE   6       /* Incremental point plotting mode */
  24. #define BYPASS      7
  25.  
  26. /* ESC command types */
  27. #define SQBRA  1
  28. #define QUOTE  2
  29.  
  30. /* Nominal maximum plot resolution */       /* These are also in ckopm.h */
  31. #define MAXXRES             1024
  32. #define MAXYRES              780
  33. #define MAXCHARHEIGHT         15
  34. #define MAXCHARWIDTH          14
  35.  
  36. /* Buffer sizes */
  37. #define PROCBUFSIZE 10
  38.  
  39. /* Plot dump file formats */
  40. #define NODMP   0       /* No dump file */
  41. #define HPGL    1       /* HPGL format dump file */
  42. #define WPG     2       /* WordPerfect format dump file */
  43. #define TEK     3       /* Tektronix format dump file */
  44.  
  45. /* Plot dump output commands */
  46. #define HPGL_COM "print hpgl.plt"
  47.  
  48.  
  49.  
  50. int  Tek_scrinit(int);     /* Initialises the system for Tektronix input */
  51. void Tek_finish(void);
  52. void Tek_process(unsigned); /* Tektronix input processing */
  53. int  Tek_gsprocess(char);   /* Processes the GS and FS commands */
  54. int  Tek_escprocess(char);  /* Processes TEK escape commands */
  55. void Tek_vectdecode(int*,int*);  /* Converts TEK position string into coords */
  56. void Tek_gmove(int,int);         /* Does a move in TEK coords */
  57. void Tek_gdraw(int,int);         /* Does a draw in TEK coords */
  58. void Tek_gplot(int,int);         /* Plots a point in TEK coords */
  59. void Tek_write(char);            /* Puts a string on the TEK display */
  60. void Tek_page(void);             /* Clears the TEK display */
  61. void Tek_ginend(void);           /* Ends GIN input */
  62. void Tek_ginini(void);           /* Starts GIN input */
  63. void Tek_endesc(void);           /* Exits escape processing mode */
  64. void Tek_ginencode(int,int,char,char,char*); /* TEK coords to TEK string */
  65. void Tek_setlinetype(char);      /* Sets the line style */
  66. int  Tek_incmode(char);          /* Processes TEK incremental mode */
  67. void Tek_status(void);           /* Not implimented */
  68. void Tek_termid(void);           /* Not implimented */
  69. void Tek_poly(int);              /* Controls use of polyline buffer */
  70. void Tek_changemode(char);       /* Switches processing modes */
  71.  
  72. int   gfile_dump(void);
  73. void  gfile_move(int, int);
  74. void  gfile_draw(int,int);
  75. void  gfile_plot(int,int);
  76. void  gfile_rewind(void);
  77. void  gfile_mover(int,int);
  78. void  gfile_drawr(int,int);
  79. void  gfile_plotr(int,int);
  80. void  gfile_print(char *);
  81. int   gfile_open(void);
  82. void  gfile_close(void);
  83. void  gfile_init(void);
  84. int   fileopen(char *);
  85.