home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / netnwscd.sit / CListWind.h < prev    next >
Text File  |  1990-10-16  |  1KB  |  58 lines

  1. /*
  2.  * CListWind - director and pane
  3.  *
  4.  *     SUPERCLASS = CDirector
  5.  *
  6.  */
  7.  
  8. #define _H_CListWind
  9.  
  10. #include <CDirector.h>                    /* Interface for its superclass        */
  11. #include <CPane.h>
  12. #include "bits.h"
  13.  
  14. struct CLList : CPane {
  15.     ListHandle listH;
  16.     int            nrows;
  17.  
  18.     void        ILList(CView *anEnclosure, CBureaucrat *aSupervisor,
  19.                             short aWidth, short aHeight,
  20.                             short aHEncl, short aVEncl,
  21.                             SizingOption aHSizing, SizingOption aVSizing);
  22.     void        Dispose(void);
  23.  
  24.     void        Activate(void);
  25.     void        Deactivate(void);
  26.  
  27.                                     /** Drawing **/
  28.     void        Draw(Rect *area);
  29.  
  30.                                     /** Mouse **/
  31.     void        DoClick(Point hitPt, short modifierKeys, long when);
  32.     void         DoKeyDown(char theChar,Byte keyCode, EventRecord *macEvent);
  33.  
  34.     bitmap_t *     GetSelect(long len);
  35.  
  36.     void        ChangeSize(Rect *delta, Boolean redraw);
  37.     
  38.     void        AddLine(char *line);
  39.     void        DelLine(int line, int count);
  40.     void        SetLine(int line, char *txt);
  41.     void        SelectLine(int line);
  42. };
  43.  
  44. struct CListWind : CDirector {            /* Class Declaration                */
  45.                                 /** Instance Variables **/
  46.     CLList        *itsPane;                /* Pane for displaying contents        */
  47.     
  48.     void        IListWind(int windresid, char *title, int width, int length);
  49.     void        Dispose(void);
  50.  
  51.     void        DoCommand(long theCommand);
  52.     void        UpdateMenus(void);
  53.     
  54.     void        ClickLine(int line);
  55.     void        Enab(Boolean enab);
  56.     void        TmpMsg(char *msg);
  57. };
  58.