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

  1. #ifndef _IPAGEEVT_
  2. #define _IPAGEEVT_
  3. /*******************************************************************************
  4. * FILE NAME: ipageevt.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IPageEvent                                                               *
  9. *     IPageRemoveEvent                                                         *
  10. *     IPageHelpEvent                                                           *
  11. *     IPageSelectEvent                                                         *
  12. *                                                                              *
  13. * COPYRIGHT:                                                                   *
  14. *   IBM Open Class Library                                                     *
  15. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  16. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  17. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  18. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  19. *                                                                              *
  20. *******************************************************************************/
  21. #include <ictlevt.hpp>
  22.  
  23. class IBitmapHandle;
  24. class IHelpWindow;
  25. class INotebook;
  26. class IWindow;
  27. class IPageHandle;
  28.  
  29. #pragma pack(4)
  30.  
  31.  
  32. class IPageEvent : public IControlEvent {
  33. typedef IControlEvent
  34.   Inherited;
  35. public:
  36. /*------------------------------- Constructors -------------------------------*/
  37.   IPageEvent ( const IEvent&        event        );
  38.   IPageEvent ( const IControlEvent& controlEvent );
  39.   IPageEvent ( const IPageEvent&    pageEvent );
  40.  
  41. virtual
  42.   ~IPageEvent ( );
  43.  
  44. /*------------------------------ Page Information ----------------------------*/
  45. virtual IPageHandle
  46.   pageHandle ( ) const;
  47.  
  48. virtual INotebook
  49.  *notebook   ( ) const;
  50. }; // IPageEvent
  51.  
  52.  
  53. class IPageRemoveEvent : public IPageEvent {
  54. typedef IPageEvent
  55.   Inherited;
  56. public:
  57. /*------------------------------- Constructors -------------------------------*/
  58.   IPageRemoveEvent ( const IEvent&        event        );
  59.   IPageRemoveEvent ( const IControlEvent& controlEvent );
  60.   IPageRemoveEvent ( const IPageEvent&    pageEvent    );
  61.  
  62. virtual
  63.   ~IPageRemoveEvent ( );
  64.  
  65. /*------------------------------ Page Information ----------------------------*/
  66. IWindow
  67.  *pageWindow ( ) const;
  68.  
  69. IBitmapHandle
  70.   tabBitmap  ( ) const;
  71.  
  72. virtual INotebook
  73.  *notebook   ( ) const;
  74.  
  75. private:
  76. /*----------------------------- Hidden Members -------------------------------*/
  77. virtual IPageHandle
  78.   pageHandle ( ) const;
  79. }; // IPageRemoveEvent
  80.  
  81.  
  82. class IPageHelpEvent : public IPageEvent {
  83. typedef IPageEvent
  84.   Inherited;
  85. public:
  86. /*------------------------------- Constructors -------------------------------*/
  87.   IPageHelpEvent ( const IEvent&        event        );
  88.   IPageHelpEvent ( const IControlEvent& controlEvent );
  89.   IPageHelpEvent ( const IPageEvent&    pageEvent    );
  90.  
  91. virtual
  92.   ~IPageHelpEvent ( );
  93.  
  94. /*------------------------------ Help Information ----------------------------*/
  95. IHelpWindow
  96.  *helpWindow ( ) const;
  97.  
  98. /*------------------------------ Page Information ----------------------------*/
  99. virtual IPageHandle
  100.   pageHandle ( ) const;
  101.  
  102. virtual INotebook
  103.  *notebook   ( ) const;
  104. }; // IPageHelpEvent
  105.  
  106.  
  107. class IPageSelectEvent : public IPageEvent {
  108. typedef IPageEvent
  109.   Inherited;
  110. public:
  111. /*------------------------------- Constructors -------------------------------*/
  112.   IPageSelectEvent ( const IEvent&        event        );
  113.   IPageSelectEvent ( const IControlEvent& controlEvent );
  114.   IPageSelectEvent ( const IPageEvent&    pageEvent    );
  115.  
  116. virtual
  117.   ~IPageSelectEvent ( );
  118.  
  119. /*------------------------------ Page Information ----------------------------*/
  120. virtual IPageHandle
  121.   pageHandle                 ( ) const;
  122.  
  123. virtual INotebook
  124.  *notebook                   ( ) const;
  125.  
  126. IPageHandle
  127.   previousSelectedPageHandle ( ) const;
  128. }; // IPageSelectEvent
  129.  
  130. #pragma pack()
  131.  
  132. #endif /* _IPAGEEVT_ */
  133.