home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / New System Software Extensions / ASLM SDK v1.1.2 / ASLM Examples / Inspector / Sources / RegisteredObjectsWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-21  |  1.5 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        RegisteredObjectsWindow.h
  3.  
  4.     Contains:    TRegisteredObjectsWindow interface.  A window that displays a list
  5.                 of TRegisteredObjects.
  6.  
  7.     Copyright:    © 1991-1993 by Apple Computer, Inc., all rights reserved.
  8.  
  9. */
  10.  
  11.  
  12. #ifndef __REGISTEREDOBJECTSWINDOW__
  13. #define __REGISTEREDOBJECTSWINDOW__
  14.  
  15. #ifndef __DOCUMENT__
  16. #include <Document.h>
  17. #endif
  18.  
  19. class TList;
  20. class TRegisteredObjectsWindow;
  21. class TRegisteredObjects;
  22. struct EventRecord;
  23.  
  24. const int kButtonSpace = 0;    // space in window for the buttons on left side.
  25.                             // keep this at 0 until we add buttons
  26.  
  27.  
  28. /**********************************************************************
  29. ** class TRegisteredObjectsWindow
  30. ***********************************************************************/
  31.  
  32. #define kTRegisteredObjectsWindowID "appl:insp$TRegisteredObjectsWindow,1.1"
  33.  
  34. class TRegisteredObjectsWindow : public TDocument
  35. {
  36. public:
  37.                         TRegisteredObjectsWindow();
  38.                         TRegisteredObjectsWindow(short resID, TRegisteredObjects *);
  39.     virtual                ~TRegisteredObjectsWindow();
  40.     
  41.     virtual void        DoGrow(EventRecord* theEvent);
  42.     virtual    void        DoContent(EventRecord* theEvent);
  43.     virtual    void        DoActivate(Boolean becomingActive);
  44.     virtual    void        DoUpdate();
  45.     virtual    void        DrawWindow();
  46.  
  47.     // New Methods
  48.  
  49.     virtual    void        UpdateList();
  50.     virtual    Rect        GetListRect();
  51.     virtual    void        DrawGrowIcon();
  52.  
  53. private:
  54.             void        InitRegisteredObjectsWindow(TRegisteredObjects *);
  55.  
  56. private:
  57.         TList*                fList;            // the List Manager list
  58.         TRegisteredObjects*    fRegisteredObjects;
  59. };
  60.  
  61. #endif
  62.