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

  1. #ifndef _ICNREVT_
  2. #define _ICNREVT_
  3. /*******************************************************************************
  4. * FILE NAME: icnrevt.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     ICnrEvent                                                                *
  9. *     ICnrEnterEvent                                                           *
  10. *     ICnrEmphasisEvent                                                        *
  11. *     ICnrHelpEvent                                                            *
  12. *     ICnrQueryDeltaEvent                                                      *
  13. *     ICnrScrollEvent                                                          *
  14. *     ICnrPaintBackground                                                      *
  15. *                                                                              *
  16. * COPYRIGHT:                                                                   *
  17. *   IBM Open Class Library                                                     *
  18. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  19. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  20. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  21. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  22. *                                                                              *
  23. *******************************************************************************/
  24.  
  25. #include <ictlevt.hpp>
  26. #include <icnrobj.hpp>
  27.  
  28. class ICnrEnterEvent;
  29. class ICnrEvent;
  30. class ICnrHelpEvent;
  31. class ICnrQueryDeltaEvent;
  32. class IContainerObject;
  33. class IContainerControl;
  34. class IContainerColumn;
  35.  
  36. #pragma pack(4)
  37.  
  38. class ICnrEvent : public IControlEvent {
  39. typedef IControlEvent
  40.    Inherited;
  41.  
  42. public:
  43. /*------------------------ Constructors --------------------------------------*/
  44.   ICnrEvent      ( const IControlEvent& event);
  45.  
  46. virtual
  47.  ~ICnrEvent      ( );
  48.  
  49.    protected:
  50. /*--------------------------- Event Information ------------------------------*/
  51. unsigned long
  52.   containerId    ( ) const;
  53.  
  54. };
  55.  
  56.  
  57. class ICnrEnterEvent : public ICnrEvent {
  58. typedef ICnrEvent
  59.    Inherited;
  60.  
  61. public:
  62. /*------------------------ Constructors --------------------------------------*/
  63.   ICnrEnterEvent  ( const IControlEvent& event);
  64.  
  65. virtual
  66.  ~ICnrEnterEvent ();
  67.  
  68. /*----------------------------- Event Information ----------------------------*/
  69. IContainerObject
  70.  *object          ( ) const;
  71.  
  72. Boolean
  73.   enterPressed    ( ) const,
  74.   validObject     ( ) const;
  75. };
  76.  
  77.  
  78. class ICnrEmphasisEvent : public ICnrEvent {
  79. typedef ICnrEvent
  80.    Inherited;
  81.  
  82. public:
  83. /*------------------------ Constructors --------------------------------------*/
  84.   ICnrEmphasisEvent  ( const IControlEvent& event);
  85.  
  86. virtual
  87.  ~ICnrEmphasisEvent  ( );
  88.  
  89. /*----------------------------- Event Information ----------------------------*/
  90. Boolean
  91.   changed          ( IContainerObject::Emphasis  emphasis) const;
  92.  
  93. IContainerObject
  94.  *object           ( )  const;
  95.  
  96. };
  97.  
  98.  
  99. class ICnrQueryDeltaEvent : public ICnrEvent {
  100. typedef ICnrEvent
  101.    Inherited;
  102.  
  103. public:
  104. /*------------------------ Constructors --------------------------------------*/
  105.   ICnrQueryDeltaEvent ( const IControlEvent& event);
  106.  
  107. virtual
  108.  ~ICnrQueryDeltaEvent ( );
  109.  
  110. /*------------------------------ Event Information ---------------------------*/
  111. Boolean
  112.   atTopDelta       ( ) const,
  113.   atBottomDelta    ( ) const,
  114.   atFirstObject    ( ) const,
  115.   atLastObject     ( ) const;
  116. };
  117.  
  118.  
  119. class ICnrScrollEvent : public ICnrEvent {
  120. typedef ICnrEvent
  121.    Inherited;
  122.  
  123. public:
  124.  
  125. /*------------------------ Constructors --------------------------------------*/
  126.   ICnrScrollEvent ( const IControlEvent& event );
  127.  
  128. virtual
  129.  ~ICnrScrollEvent ( );
  130.  
  131. /*------------------------------- Event Information --------------------------*/
  132. long
  133.   amount            ( ) const;
  134. Boolean
  135.   isLeftDetails     ( ) const,
  136.   isRightDetails    ( ) const,
  137.   isHorizontal      ( ) const,
  138.   isVertical        ( ) const;
  139. };
  140.  
  141.  
  142. class ICnrHelpEvent : public ICnrEvent {
  143. typedef ICnrEvent
  144.    Inherited;
  145.  
  146. public:
  147.  
  148. /*------------------------ Constructors --------------------------------------*/
  149.   ICnrHelpEvent ( const IControlEvent& event );
  150.  
  151. virtual
  152.  ~ICnrHelpEvent ( );
  153.  
  154. /*------------------------------- Event Information --------------------------*/
  155. IContainerObject
  156.  *object       ( ) const;
  157. IContainerColumn
  158.  *column       ( ) const;
  159.  
  160. };
  161.  
  162. #pragma pack()
  163.  
  164. #endif /* _ICNREVT_ */
  165.