home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Idling / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.4 KB  |  44 lines  |  [TEXT/CWIE]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. //=======================================================================
  14. class CIdlingPart;
  15.  
  16. //=======================================================================
  17. class CIdlingFrame : public FW_CFrame {
  18. public:
  19.     FW_DECLARE_AUTO(CIdlingFrame)
  20.                         CIdlingFrame(Environment* ev, 
  21.                                     ODFrame* odFrame, 
  22.                                     FW_CPresentation* presentation, 
  23.                                     CIdlingPart* idlingPart);
  24.     virtual             ~CIdlingFrame();
  25. // overrides
  26.     virtual void        Draw(Environment *ev, 
  27.                              ODFacet* odFacet, 
  28.                              ODShape* invalidShape);
  29.     virtual FW_Boolean    DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  30.     virtual ODShape*     AdjustUsedShape(Environment* ev, ODShape* suggestedUsedShape);
  31.     virtual ODShape*     AdjustActiveShape(Environment* ev, ODFacet* facet, ODShape* suggestedActiveShape);
  32. // new members
  33.     virtual void        MyToggleColor(); 
  34. protected:
  35.     virtual FW_CRegionShape*     MyCreateRegionShape(Environment* ev);
  36. private:
  37.     CIdlingPart*         fIdlingPart;
  38.     FW_CRegionShape*    fRegionShape;
  39.     FW_Boolean            fDrawRed;
  40. };
  41.  
  42. //=======================================================================
  43. #endif
  44.