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

  1. #ifndef _ISETBUT_
  2.   #define _ISETBUT_
  3. /*******************************************************************************
  4. * FILE NAME: isetbut.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     Isetbut - This is an abstract base class for the I3StateCheckBox,        *
  9. *                ICheckBox, and IRadioButton control window classes.           *
  10. *                                                                              *
  11. * COPYRIGHT:                                                                   *
  12. *   Licensed Materials - Property of IBM                                       *
  13. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  14. *   All Rights Reserved                                                        *
  15. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  16. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  17. *                                                                              *
  18. * $Log:   R:/IBMCLASS/IBASECTL/VCS/ISETBUT.HPV  $
  19. //
  20. //   Rev 1.7   25 Oct 1992 17:06:06   nunn
  21. //changed library name to ICLUI
  22. //
  23. //   Rev 1.6   25 Oct 1992 10:57:10   boezeman
  24. //Add documentation and converted file to skeleton.hpp format.
  25.  
  26.       Rev 1.5   13 Oct 1992 21:22:36   tsuji
  27.    Correct comments around log directive.
  28.  
  29.       Rev 1.4   13 Oct 1992 20:57:50   tsuji
  30.    Correct log directive, remove IBM Confidential classification.
  31.  
  32.       Rev 1.3   13 Oct 1992 19:06:12   tsuji
  33.    Remove no-op virtual destructor, add Inherited typedef.
  34. *******************************************************************************/
  35. #ifndef _IBUTTON_
  36.   #include <ibutton.hpp>
  37. #endif
  38.  
  39. // Forward declarations for other classes:
  40. class ISettingButton;  /* setbut */
  41. class IRectangle;
  42. #ifndef _IBITFLAG_
  43.   #include <ibitflag.hpp>
  44. #endif
  45.  
  46. class ISettingButton : public IButton  {
  47. /*******************************************************************************
  48. * This is an abstract base class for the I3StateCheckBox, ICheckBox, and       *
  49. * IRadioButton control window classes.                                         *
  50. *                                                                              *
  51. * This class should not be constructed directly.                               *
  52. *                                                                              *
  53. * EXAMPLE:                                                                     *
  54. *   <sample code>                                                              *
  55. *******************************************************************************/
  56. typedef IButton
  57.   Inherited;
  58. public:
  59. /*------------------------ CONSTRUCTORS/DESTRUCTORS ----------------------------
  60. | There is 1 way to construct instances of this class:                         |
  61. |   1. default                                                                 |
  62. ------------------------------------------------------------------------------*/
  63.   ISettingButton() {;}
  64.  
  65. /*------------------------ TEST/SELECT BUTTON ----------------------------------
  66. | isSelected   -  Return true if the button is selected.                       |
  67. | select       -  Selects the button.                                          |
  68. | unselect     -  Unselects the button.                                        |
  69. ------------------------------------------------------------------------------*/
  70. Boolean
  71.   isSelected() const;
  72. void
  73.  select(),
  74.  unselect();
  75.  
  76. /*------------------------ TEST/SET AUTO SELECT STATE --------------------------
  77. | enableAutoSelect  - virtual declaration for enabling the auto select style   |
  78. |                     for a button.                                            |
  79. | disableAutoSelect - virtual declaration for disabling the auto select style  |
  80. |                     for a button.                                            |
  81. | isAutoSelect      - virtual declaration for return whether the auto select   |
  82. |                     style is set for a button                                |
  83. ------------------------------------------------------------------------------*/
  84. virtual void
  85.   enableAutoSelect() = 0,
  86.   disableAutoSelect() = 0;
  87. virtual Boolean
  88.   isAutoSelect() const = 0;
  89.  
  90. private:
  91.   ISettingButton(const ISettingButton&);
  92. //ISettingButton& operator=(const ISettingButton&);
  93. };  // class ISettingButton
  94. #endif  /* _ISETBUT_ */
  95.