home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 613b.lha / PrLabel_v1.1 / src.LZH / src / PrLabel.h < prev    next >
C/C++ Source or Header  |  1992-01-31  |  8KB  |  222 lines

  1. /***************************************************************************
  2.  
  3.    Program:    PrLabel
  4.    File:       PrLabel.h
  5.    
  6.    Version:    V1.1
  7.    Date:       28.10.91
  8.    Function:   Main include file
  9.    
  10.    Copyright:  SciTech Software 1991
  11.    Author:     Andrew C. R. Martin
  12.    Address:    SciTech Software
  13.                23, Stag Leys,
  14.                Ashtead,
  15.                Surrey,
  16.                KT21 2TD.
  17.    Phone:      +44 (0372) 275775
  18.    EMail:      UUCP: cbmuk!cbmuka!scitec!amartin
  19.                JANET: andrew@uk.ac.ox.biop
  20.                
  21. ****************************************************************************
  22.  
  23.    This program is not in the public domain, but it may be freely copied
  24.    and distributed for no charge providing this header is included.
  25.    The code may be modified as required, but any modifications must be
  26.    documented so that the person responsible can be identified. If someone
  27.    else breaks this code, I don't want to be blamed for code that does not
  28.    work! The code may not be sold commercially without prior permission from
  29.    the author, although it may be given away free with commercial products,
  30.    providing it is made clear that this program is free and that the source
  31.    code is provided with the program.
  32.  
  33. ****************************************************************************
  34.  
  35.    Description:
  36.    ============
  37.  
  38. ****************************************************************************
  39.  
  40.    Usage:
  41.    ======
  42.    PrLabel is a program to print text for laser labels.
  43.  
  44. ****************************************************************************
  45.  
  46.    Revision History:
  47.    =================
  48.    V1.1     17.01.92
  49.    Placed includes in this file.
  50.  
  51. ***************************************************************************/
  52. /* Includes
  53. */
  54. #include <exec/types.h>
  55. #include <workbench/startup.h>
  56. #include <proto/intuition.h>
  57. #include <proto/icon.h>
  58. #include "protos.h"
  59.  
  60. /**************************************************************************/
  61. /* Defines
  62. */
  63. #define SMALLBUFF 101
  64. #define LARGEBUFF 255
  65. #define MAXGROUPS 40
  66. #define MAXLINK   5
  67.  
  68. #define GRAPHICS_REV 29
  69. #define INTUITION_REV 29
  70. #define ASL_REV 36
  71.  
  72. #define LINELENGTH 77
  73. #define PAGELENGTH 63
  74. #define NLABLIN    7
  75.  
  76. #define THREE_EIGHT 1
  77. #define TWO_EIGHT   2
  78. #define TWO_SEVEN   3
  79.  
  80. /**************************************************************************/
  81. /* Structure definitions 
  82. */
  83. typedef struct
  84. {
  85.    int print,
  86.        x,
  87.        y;
  88. } LABEL;
  89.  
  90. typedef struct addr_entry
  91. {
  92.    char line[7][80];
  93.    struct addr_entry *prev;
  94.    struct addr_entry *next;
  95. } ADDR;
  96.  
  97.  
  98. /**************************************************************************/
  99. /* Externals
  100. */
  101. #ifdef MAIN
  102.  
  103. struct Window        *Window        = NULL;
  104. struct GfxBase       *GfxBase       = NULL;
  105. struct IntuitionBase *IntuitionBase = NULL;
  106. struct Library       *AslBase       = NULL;
  107. LABEL                label[3][8];
  108. int                  NLabel         = 1;
  109. int                  CurLabel       = 0;
  110. ADDR                 *address       = NULL;
  111. int                  SheetType      = THREE_EIGHT;
  112. int                  mb             = 10;          /* Menu bar height */
  113. struct Gadget        *Line1         = NULL,
  114.                      *Line2         = NULL,
  115.                      *Line3         = NULL,
  116.                      *Line4         = NULL,
  117.                      *Line5         = NULL,
  118.                      *Line6         = NULL,
  119.                      *Line7         = NULL,
  120.                      *pos11         = NULL,
  121.                      *pos12         = NULL,
  122.                      *pos13         = NULL,
  123.                      *pos14         = NULL,
  124.                      *pos15         = NULL,
  125.                      *pos16         = NULL,
  126.                      *pos17         = NULL,
  127.                      *pos18         = NULL,
  128.                      *pos21         = NULL,
  129.                      *pos22         = NULL,
  130.                      *pos23         = NULL,
  131.                      *pos24         = NULL,
  132.                      *pos25         = NULL,
  133.                      *pos26         = NULL,
  134.                      *pos27         = NULL,
  135.                      *pos28         = NULL,
  136.                      *pos31         = NULL,
  137.                      *pos32         = NULL,
  138.                      *pos33         = NULL,
  139.                      *pos34         = NULL,
  140.                      *pos35         = NULL,
  141.                      *pos36         = NULL,
  142.                      *pos37         = NULL,
  143.                      *pos38         = NULL,
  144.                      *Kill          = NULL,
  145.                      *Next          = NULL,
  146.                      *Prev          = NULL,
  147.                      *Print         = NULL;
  148. struct Menu          *Menu1         = NULL;
  149. struct MenuItem      *MenuItem1     = NULL,
  150.                      *MenuItem2     = NULL,
  151.                      *MenuItem3     = NULL,
  152.                      *MenuItem4     = NULL;
  153. char                 Line1SIBuff[80],
  154.                      Line2SIBuff[80],
  155.                      Line3SIBuff[80],
  156.                      Line4SIBuff[80],
  157.                      Line5SIBuff[80],
  158.                      Line6SIBuff[80],
  159.                      Line7SIBuff[80];
  160.  
  161. #else /*--------------------------------------------------------------------*/
  162.  
  163. extern struct Window          *Window;
  164. extern struct GfxBase         *GfxBase;
  165. extern struct IntuitionBase   *IntuitionBase;
  166. extern struct Library         *AslBase;
  167. extern LABEL                  label[3][8];
  168. extern int                    NLabel;
  169. extern int                    CurLabel;
  170. extern ADDR                   *address;
  171. extern int                    SheetType;
  172. extern int                    mb;            /* Menu bar height */
  173. extern struct Gadget          *Line1,
  174.                               *Line2,
  175.                               *Line3,
  176.                               *Line4,
  177.                               *Line5,
  178.                               *Line6,
  179.                               *Line7,
  180.                               *pos11,
  181.                               *pos12,
  182.                               *pos13,
  183.                               *pos14,
  184.                               *pos15,
  185.                               *pos16,
  186.                               *pos17,
  187.                               *pos18,
  188.                               *pos21,
  189.                               *pos22,
  190.                               *pos23,
  191.                               *pos24,
  192.                               *pos25,
  193.                               *pos26,
  194.                               *pos27,
  195.                               *pos28,
  196.                               *pos31,
  197.                               *pos32,
  198.                               *pos33,
  199.                               *pos34,
  200.                               *pos35,
  201.                               *pos36,
  202.                               *pos37,
  203.                               *pos38,
  204.                               *Kill,
  205.                               *Next,
  206.                               *Prev,
  207.                               *Print;
  208. extern struct Menu            *Menu1;
  209. extern struct MenuItem        *MenuItem1,
  210.                               *MenuItem2,
  211.                               *MenuItem3,
  212.                               *MenuItem4;
  213. extern char                   Line1SIBuff[80],
  214.                               Line2SIBuff[80],
  215.                               Line3SIBuff[80],
  216.                               Line4SIBuff[80],
  217.                               Line5SIBuff[80],
  218.                               Line6SIBuff[80],
  219.                               Line7SIBuff[80];
  220.  
  221. #endif
  222.