/***************************************************************************

   Program:    
   File:       GadgetLib.h
   
   Version:    V1.0
   Date:       29.11.91
   Function:   GadgetLib include file
   
   Copyright:  SciTech Software 1991
   Author:     Andrew C. R. Martin
   Address:    SciTech Software
               23, Stag Leys,
               Ashtead,
               Surrey,
               KT21 2TD.
   Phone:      +44 (0372) 275775
   EMail:      UUCP: cbmuk!cbmuka!scitec!amartin
               JANET: andrew@uk.ac.ox.biop
               
****************************************************************************

   This program is copyright. Any copying without the permission of
   SciTech Software is illegal.

****************************************************************************

   Description:
   ============

****************************************************************************

   Usage:
   ======

****************************************************************************

   Revision History:
   =================

***************************************************************************/
#define STS_CHECKYSTEP 13
#define STS_CYCLEYSTEP 14
#define STS_GADGET 0x8000 /* Use this in .GadgetID to show this is ours   */
#define STS_MXGADG 0x4000 /* Use this in .GadgetID to show an MX gadget   */
#define STS_CYCLE  0x2000 /* Use this in .GadgetID to show a cycle gadget */
#define STS_DUMMY  0x1000 /* Use this in .GadgetID to show a dummy gadget */
#define STS_IDMASK 0x0FFF /* Screens out the parts of .GadgetID used by
                             the STS gadget library                       */
#define STS_MAXUNDO  200  /* Size of the string gadget undo buffer        */

/**************************************************************************/
/* Structures */
struct STS_Cycle          /* Used internally for cycle gadgets            */
{
   int  current,
        ntext;
   char **text;
};

/**************************************************************************/
/* Macros */
#define isSTS(x)   ((x)->GadgetID&STS_GADGET)
#define isCYCLE(x) (((x)->GadgetID & STS_GADGET)&&((x)->GadgetID & STS_CYCLE))
#define isMX(c)    (((c)->GadgetID & STS_GADGET)&&((c)->GadgetID & STS_MXGADG))
#define isDUMMY(c) (((c)->GadgetID & STS_GADGET)&&((c)->GadgetID & STS_DUMMY))

/**************************************************************************/
/* Prototypes */
#include "gadgetlib_protos.h"
