home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / luschsrc.sit / gnosis.h < prev    next >
Text File  |  1990-05-23  |  1KB  |  66 lines

  1. /********************************************************************************
  2.  *    gnosis.h
  3.  *
  4.  *    Prognosis Management Header
  5.  *
  6.  *    Written by Paco Xander Nathan
  7.  *    ⌐1990, Motorola Inc.  Public domain source code.
  8.  ********************************************************************************/
  9.  
  10. #define _H_gnosis
  11.  
  12.  
  13. #define MAXPAD        8
  14.  
  15.  
  16. typedef enum {
  17.     gnosNew = 1, gnosDelete, gnosSpace1,
  18.     gnosAnalyze, gnosLearn, gnosRecall
  19. } GnosMenuItems;
  20.  
  21.  
  22. typedef struct GnosData {
  23.     unsigned char color[2][MAXPAD];
  24.     unsigned char pair[2][MAXPAD];
  25.     unsigned char mark[2][MAXPAD];
  26.     unsigned char anxiety[2][MAXPAD];
  27.     unsigned char stress[2][MAXPAD];
  28.     short total[2];
  29.     Str255 title;
  30.     Handle textHdl;
  31.     struct GnosData *next;
  32. } GnosData, *GnosPtr;
  33.  
  34.  
  35. typedef struct {
  36.     WORD count;
  37.     GnosPtr head;
  38.     GnosPtr open;
  39. } GnosList;
  40.  
  41.  
  42. /* External Data Structures
  43.  */
  44. extern GnosList
  45.     gnosList;
  46.  
  47.  
  48. /* External Function Prototypes
  49.  */
  50. #ifdef PROTOTYPES
  51. GnosPtr GnosNew (void);
  52. void GnosDelete (void);
  53. void GnosRefresh (void);
  54. void GnosOpenAnal (WORD theGnos);
  55. void GnosOpenText (WORD theGnos);
  56. void GnosSave (void);
  57. void GnosClose (void);
  58. void GnosClick (Cell theCell, Boolean dblClick);
  59.  
  60. void GnosStuffBits (GnosPtr gnosPtr, Boolean *gnosBits);
  61. void GnosLearn (void);
  62. void GnosRecall (void);
  63.  
  64. void GnosMenu (short theItem);
  65. #endif
  66.