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

  1. #ifndef _ICMDEVT_
  2. #define _ICMDEVT_
  3. /*******************************************************************************
  4. * FILE NAME: icmdevt.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class:                                                  *
  8. *     ICommandEvent                                                            *
  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 <ievent.hpp>
  19.  
  20. #pragma pack(4)
  21.  
  22. class ICommandEvent : public IEvent {
  23. typedef IEvent
  24.   Inherited;
  25. public:
  26. /*------------------------------- Constructors -------------------------------*/
  27.   ICommandEvent ( const IEvent& event );
  28. virtual
  29.  ~ICommandEvent ( );
  30.  
  31. /*--------------------------- Command Information ----------------------------*/
  32. enum Source {
  33.   pushButton,
  34.   menu,
  35.   accelerator,
  36.   unknown
  37. };
  38.  
  39. Source
  40.   source      ( ) const;
  41. unsigned long
  42.   commandId   ( ) const;
  43.  
  44. Boolean
  45.   isFromFrame ( ) const;
  46. }; // ICommandEvent
  47.  
  48. #pragma pack()
  49.  
  50.   #include <icmdevt.inl>
  51.  
  52. #endif /* _ICMDEVT_ */
  53.