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

  1. #ifndef _ISETBUT_
  2.   #define _ISETBUT_
  3. /*******************************************************************************
  4. * FILE NAME: isetbut.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     ISetttingButtton                                                         *
  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 <ibutton.hpp>
  19.  
  20. class ISettingButtonData;
  21.  
  22. #pragma pack(4)
  23.  
  24. class ISettingButton : public IButton  {
  25. typedef IButton
  26.   Inherited;
  27. public:
  28. /*------------------------------- Constructors -------------------------------*/
  29.   ISettingButton ( );
  30. virtual
  31.  ~ISettingButton ( );
  32.  
  33. /*-------------------------------- Selection ---------------------------------*/
  34. Boolean
  35.   isSelected     ( ) const;
  36. virtual ISettingButton
  37.  &select         ( Boolean select = true ),
  38.  &deselect       ( );
  39.  
  40. /*------------------------------- Auto Select --------------------------------*/
  41. virtual ISettingButton&
  42.   enableAutoSelect  ( Boolean enable ) = 0;
  43. virtual ISettingButton&
  44.   disableAutoSelect ( )                = 0;
  45. virtual Boolean
  46.   isAutoSelect      ( ) const          = 0;
  47.  
  48. /*--------------------- Notification Event Descriptions ----------------------*/
  49. static INotificationId const
  50.   IC_IMPORTU selectId;
  51.  
  52. /*-------------------------- Observer Notification ---------------------------*/
  53. virtual ISettingButton
  54.  &enableNotification ( Boolean enable = true );
  55.  
  56. protected:
  57. /*---------------------- Event Handling Implementation -----------------------*/
  58.  
  59. private:
  60. /*--------------------------------- Private ----------------------------------*/
  61. ISettingButtonData
  62.  *fSettingButtonData;
  63.  
  64. /*----------------------------- Hidden Functions -----------------------------*/
  65.   ISettingButton     ( const ISettingButton& );
  66. ISettingButton
  67.  &operator=          ( const ISettingButton& );
  68. };  // class ISettingButton
  69.  
  70. #pragma pack()
  71.  
  72. #endif  /* _ISETBUT_ */
  73.