home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / ODF / Form / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-06-03  |  4.0 KB  |  151 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FRAME_H
  11. #define FRAME_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWFRAME_H
  16. #include "FWFrame.h"
  17. #endif
  18.  
  19. #ifndef FWDRGDRP_H
  20. #include "FWDrgDrp.h"
  21. #endif
  22.  
  23. // ----- Foundation Layer -----
  24.  
  25. #ifndef FWRECEVR_H
  26. #include "FWRecevr.h"
  27. #endif
  28.  
  29. // ----- shapes -----
  30.  
  31. //========================================================================================
  32. // Forward Declarations
  33. //========================================================================================
  34.  
  35. class FW_CMenuEvent;
  36.  
  37. class CFormPart;
  38. class CFormContent;
  39.  
  40. class CRectView;
  41. class CPictView;
  42. class FW_CEditView;
  43. class FW_CEditView;
  44. class FW_CEditView;
  45. class FW_CEditView;
  46. class FW_CEditView;
  47. class FW_CButton;
  48. class FW_CRadioCluster;
  49. class FW_CGroupBox;
  50. class FW_CButton;
  51. class FW_CListBox;
  52. class FW_CButton;
  53. class FW_CButton;
  54. class FW_CPopupMenu;
  55. class FW_CPopupMenu;
  56. class FW_CRadioCluster;
  57. class FW_CGroupBox;
  58. class FW_CButton;
  59. class FW_CRadioCluster;
  60. class FW_CGroupBox;
  61. class FW_CButton;
  62. class FW_CButton;
  63. class FW_CScrollBar;
  64. class FW_CScrollBar;
  65.  
  66. //========================================================================================
  67. // CFormFrame
  68. //========================================================================================
  69.  
  70. class CFormFrame : public FW_CFrame, public FW_MReceiver, public FW_MDraggableFrame, public FW_MDroppableFrame
  71. {
  72. //----------------------------------------------------------------------------------------
  73. //    Initialization/Destruction
  74. //
  75.   public:
  76.       FW_DECLARE_CLASS
  77.     FW_DECLARE_AUTO(CFormFrame)
  78.  
  79.     CFormFrame(Environment* ev, 
  80.                 ODFrame* odFrame, 
  81.                 FW_CPresentation* presentation, 
  82.                 CFormContent* content);
  83.  
  84.     virtual ~CFormFrame();
  85.  
  86. //----------------------------------------------------------------------------------------
  87. //    Inherited API
  88. //
  89.     virtual ODDragResult CanAcceptDrop(Environment* ev, ODDragItemIterator* dragInfo);
  90.  
  91.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  92.                                       FW_CMenuBar* menuBar, 
  93.                                       FW_Boolean hasMenuFocus,
  94.                                       FW_Boolean isRoot);
  95.  
  96.     virtual FW_Boolean    DoMenu(Environment* ev,
  97.                                const FW_CMenuEvent& theMenuEvent);
  98.  
  99.     virtual FW_Boolean    DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  100.  
  101.     virtual void        Draw(Environment *ev, 
  102.                              ODFacet* odFacet, 
  103.                              ODShape* invalidShape);
  104.  
  105.     virtual void        FrameShapeChanged(Environment* ev);
  106.     virtual void        CreateSubViews(Environment* ev);
  107.  
  108.     virtual FW_CDragCommand* NewDragCommand(Environment *ev,
  109.                                             FW_CFrame* theFrame,
  110.                                             const FW_CMouseEvent& theMouseEvent);
  111.     virtual FW_CDropCommand* NewDropCommand(Environment *ev,
  112.                                             FW_CFrame* frame,
  113.                                             ODDragItemIterator* dropInfo, 
  114.                                             ODFacet* odFacet, 
  115.                                             const FW_CPoint& dropPoint);
  116.  
  117.     virtual FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  118.  
  119.     // ----- FW_MReceiver overrides ----- 
  120.     virtual void         HandleNotification(Environment* ev, const FW_CNotification& notification);
  121.  
  122. //----------------------------------------------------------------------------------------
  123. //    Data Members
  124. //
  125.   private:
  126.     CFormContent*         fFormContent;
  127.  
  128.     // subviews
  129.     CRectView*        fScrollerRect;
  130.     CPictView*        fFormPictPict;
  131.     FW_CEditView*     fFirstNameField;
  132.     FW_CEditView*     fLastNameField;
  133.     FW_CEditView*     fMemberNameField;
  134.     FW_CEditView*     fEMailAddressField;
  135.     FW_CEditView*     fCommentsField;
  136.     FW_CButton*     fSubscribeToODFFlashCheck;
  137.     FW_CRadioCluster*    fModemSpeedUsedGroup;
  138.     FW_CListBox*     fPlatformList;
  139.     FW_CButton*     fAddButton;
  140.     FW_CButton*     fRemoveButton;
  141.     FW_CPopupMenu*     fBrowseTimePopup;
  142.     FW_CPopupMenu*     fOtherTimePopup;
  143.     FW_CRadioCluster*    fHowDidYouDiscoverODFWiredGroup;
  144.     FW_CRadioCluster*    fYesNoGroup;
  145.     FW_CButton*     fJoinODFWiredButton;
  146.     FW_CScrollBar*     fHorzScrollBar;
  147.     FW_CScrollBar*     fVertScrollBar;
  148. };
  149.  
  150. #endif
  151.