home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 594b.lha / Precognition_rel1 / ListEditor.h < prev    next >
C/C++ Source or Header  |  1991-12-12  |  1KB  |  46 lines

  1. /* ==========================================================================
  2. **
  3. **                            ListEditor.h
  4. **
  5. ** ©1991 WILLISoft
  6. **
  7. ** ==========================================================================
  8. */
  9.  
  10. #ifndef LISTEDITOR_H
  11. #define LISTEDITOR_H
  12.  
  13. #include "StringLister.h"
  14. #include "ScrollingList.h"
  15. #include "StringGadget.h"
  16. #include "BoolGadget.h"
  17.  
  18.  
  19. typedef struct ListEditor
  20. {
  21.    StringLister   slist;   /* Required object info.      */
  22.    USHORT         state;   /* PRIVATE!                   */
  23.    USHORT         s;       /* PRIVATE!                   */
  24.    USHORT         nchars;  /* max # of chars in string.  */
  25.    ScrollingList  browse;  /* list of strings.           */
  26.    StringGadget   edit;    /* gadget to edit strings.    */
  27.    BoolGadget     add,     /* Button to add a new string */
  28.                   delete;  /* Button to delete a string. */
  29. }  ListEditor;
  30.  
  31. /*
  32. ** NOTE: All strings are dynamically allocated!
  33. */
  34.  
  35. void ListEditor_Init( ListEditor *self,
  36.                       PIXELS      LeftEdge,
  37.                       PIXELS      TopEdge,
  38.                       PIXELS      Width,
  39.                       PIXELS      Height,
  40.                       pcg_3DPens  pens,
  41.                       char       *label,
  42.                       USHORT      nchars );
  43.  
  44. #endif
  45.  
  46.