home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Windoid / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.7 KB  |  57 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  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 CWindoidPart;
  15.  
  16. //===========================================================================
  17. class CMainFrame : public FW_CFrame {
  18. public:
  19.     FW_DECLARE_AUTO(CMainFrame)
  20.                         CMainFrame(Environment* ev, ODFrame* odFrame, 
  21.                                     FW_CPresentation* presentation, 
  22.                                     CWindoidPart* windoidPart);
  23.     virtual             ~CMainFrame();
  24. protected:
  25.     // overrides
  26.     virtual void        Draw(Environment *ev, ODFacet* odFacet, 
  27.                                          ODShape* invalidShape);
  28. };
  29.  
  30. //===========================================================================
  31. class CPaletteFrame : public FW_CFrame {
  32. public:
  33.     FW_DECLARE_AUTO(CPaletteFrame)
  34.                         CPaletteFrame(Environment* ev, ODFrame* odFrame, 
  35.                                         FW_CPresentation* presentation, 
  36.                                         CWindoidPart* windoidPart);
  37.     virtual             ~CPaletteFrame();
  38. protected:
  39. // overrides
  40.     virtual void        Draw(Environment *ev, ODFacet* odFacet, 
  41.                                 ODShape* invalidShape);
  42.     virtual FW_Handled     DoMouseDown(Environment* ev, 
  43.                                 const FW_CMouseEvent& theMouseEvent);
  44.     FW_Boolean            FindCell(const FW_CPoint& where, unsigned short& row, 
  45.                                             unsigned short& column) const;
  46.     void                GetCellRectangle(unsigned short row, 
  47.                             unsigned short column, FW_CRect& rect) const;
  48. // new members
  49. private:
  50.     CWindoidPart*         fWindoidPart;
  51.     ODSShort             fSelectedRow;
  52.     ODSShort              fSelectedCol;
  53. };
  54.  
  55. //=======================================================================
  56. #endif
  57.