home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / ibmcli / icmdevt.hp_ / ICMDEVT.HPP
Encoding:
C/C++ Source or Header  |  1992-10-26  |  3.5 KB  |  71 lines

  1. #ifndef _ICMDEVT_
  2. #define _ICMDEVT_
  3. /*******************************************************************************
  4. * FILE NAME: icmdevt.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     ICommandEvent - the command event class                                  *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   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. *$Log:   R:/IBMCLASS/IBASEAPP/VCS/ICMDEVT.HPV  $                                                                         *
  18. // 
  19. //    Rev 1.3   25 Oct 1992 17:59:12   nunn
  20. // Brad Broyles changes for external beta
  21.  
  22.       Rev 1.1   01 Jan 1989 12:00:00   LM & KKL
  23.    Initiate code
  24.       Rev 1.2   17 Sep 1992 12:00:00   KKL
  25.    Make individual file
  26.       Rev 1.3   22 Oct 1992 12:00:00   WBB
  27.    Amend to match skeleton.hpp
  28. *******************************************************************************/
  29.  
  30. // Forward declarations for other classes:
  31. class ICommandEvent;
  32. class ISize;
  33. #if !defined( _IEVENT_ ) && !defined( I_NO_RELATED_HPP )
  34.   #include <ievent.hpp>
  35. #endif
  36.  
  37. class ICommandEvent  : public IEvent {
  38. /*******************************************************************************
  39. * The ICommandEvent class is the command event class                           *
  40. *******************************************************************************/
  41. typedef IEvent Inherited;
  42. public:
  43. /*------------------------ CONSTRUCTORS/DESTRUCTORS ----------------------------
  44. | There is one way to construct instances of this class:                       |
  45. |   1. from an instance of IEvent                                              |
  46. |     The event class instance is used to create the ICommandEvent instance    |
  47. ------------------------------------------------------------------------------*/
  48.    ICommandEvent(IEvent& evt);
  49.  
  50. /*-------------------------------- ACCESSORS -----------------------------------
  51. | These function provide means of getting and setting the accessible           |
  52. | attributes of instances of this class:                                       |
  53. |   sourceId - return an ID that identifies the source of the command event    |
  54. |   commandId - return the pushbutton ID, menu item ID, etc.                   |
  55. ------------------------------------------------------------------------------*/
  56.    enum {unknownCmd=0, pushButtonCmd=1, menuCmd=2,
  57.          accelCmd=3, fontDialogCmd=4, fileDialogCmd=5,
  58.          printDialogCmd=6, colorDialogCmd=7};
  59.  
  60. unsigned long
  61.   sourceId() const,
  62.   commandId() const;
  63. }; // ICommandEvent
  64.  
  65. /*--------------------------------- INLINES ----------------------------------*/
  66. #ifndef I_NO_INLINES
  67.   #include <icmdevt.inl>
  68. #endif
  69.  
  70. #endif /* ICMDEVT */
  71.