home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / icnrmhdr.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.7 KB  |  76 lines

  1. #ifndef _ICNRMHDR_
  2. #define _ICNRMHDR_
  3. /*******************************************************************************
  4. * FILE NAME: icnrmhdr.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     ICnrMenuHandler                                                          *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #include <imenuhdr.hpp>
  19. #include <ievent.hpp>
  20.  
  21. class IContainerObject;
  22. class IContainerControl;
  23.  
  24. #pragma pack(4)
  25.  
  26.  
  27. class ICnrMenuHandler : public IMenuHandler {
  28. typedef IMenuHandler
  29.   Inherited;
  30.  
  31. public:
  32. /*-------------------------- Constructors ------------------------------------*/
  33. virtual
  34.  ~ICnrMenuHandler      ( );
  35.  
  36.  
  37. /*---------------------------- Event Information -----------------------------*/
  38. IContainerObject
  39.  *popupMenuObject     ( );
  40.  
  41. /*--------------------------- Event Dispatching ------------------------------*/
  42. virtual ICnrMenuHandler
  43.  &handleEventsFor       ( IContainerControl* container ),
  44.  &stopHandlingEventsFor ( IContainerControl* container );
  45.  
  46. protected:
  47. /*---------------------------- Constructors ----------------------------------*/
  48.   ICnrMenuHandler      ( );
  49.  
  50.  
  51. /*--------------------------- Event Dispatching ------------------------------*/
  52. virtual Boolean
  53.   dispatchHandlerEvent ( IEvent& event);
  54.  
  55. virtual void
  56.   addSourceEmphasis( const IMenuEvent& menuEvent ),
  57.   removeSourceEmphasis( const IMenuEvent& menuEvent );
  58.  
  59. virtual Boolean
  60.   menuEnded     ( IMenuEvent& menuEvent );
  61.  
  62. private:
  63. /*-------------------------------- Private -----------------------------------*/
  64. /*----------------------------- Hidden Members -------------------------------*/
  65. virtual IHandler
  66.  &handleEventsFor       ( IWindow* window  ),
  67.  &stopHandlingEventsFor ( IWindow* window  );
  68.  
  69. IContainerObject
  70.  *pcnrobjClMenu;
  71. };
  72.  
  73. #pragma pack()
  74.  
  75. #endif
  76.