home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / HToggleRadioButton 1.2 / HToggleRadioButton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-22  |  2.0 KB  |  69 lines  |  [TEXT/CWIE]

  1. /*******************************************************************************\
  2. |                                                                                |
  3. |    HToggleRadioButton.h ©1996-1997 John C. Daub. All rights reserved.            |
  4. |    See the file "HToggleRadioButton README" for full details, instructions,    |
  5. |    changes, licensing agreement, etc.  Due to the important information        |
  6. |    included in that file, if you did not receive a copy of it, please contact    |
  7. |    the author for a copy.                                                        |
  8. |                                                                                |
  9. |    John C. Daub <mailto:hsoi@eden.com>                                            |
  10. |    <http://www.eden.com/~hsoi/>  <http://www.eden.com/~hsoi/prog.html>            |
  11. |                                                                                |
  12. \*******************************************************************************/
  13.  
  14. #ifndef _H_HToggleRadioButton
  15. #define _H_HToggleRadioButton
  16. #pragma once
  17.  
  18. #if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
  19.     #pragma import on
  20. #endif
  21.  
  22. #include <PP_Prefix.h>
  23. #include <LToggleButton.h>
  24.  
  25. class HToggleRadioButton : public LToggleButton {
  26.  
  27. public:
  28.     
  29.         enum { class_ID = 'Htgb' };
  30.  
  31.     #if ( __PowerPlant__ < 0x01608000 ) // version 1.6/CW11        
  32.         static HToggleRadioButton*        CreateFromStream( LStream *inStream );
  33.     #endif
  34.         
  35.                                 HToggleRadioButton();
  36.                                 HToggleRadioButton(
  37.                                     const SPaneInfo    &inPaneInfo,
  38.                                     MessageT        inClickedMessage,
  39.                                     OSType            inGraphicsType,
  40.                                     ResIDT            inOnID,
  41.                                     ResIDT            inOnClickID,
  42.                                     ResIDT            inOffID,
  43.                                     ResIDT            inOffClickID,
  44.                                     ResIDT            inTransitionID);
  45.                                 HToggleRadioButton( LStream *inStream );
  46.  
  47.         virtual                    ~HToggleRadioButton();
  48.         
  49.         virtual    void            SetValue( Int32 inValue );
  50.  
  51. protected:
  52.     
  53.         virtual void            HotSpotResult( Int16 inHotSpotResult );
  54.  
  55. private:
  56.  
  57.             // defensive programming. LToggleButton has no copy ctor, so we'll
  58.             // protect against it.
  59.                                 HToggleRadioButton( const HToggleRadioButton &inOriginal );
  60.         HToggleRadioButton&        operator=(const HToggleRadioButton &inOriginal);
  61.                                     
  62.  
  63. };
  64.  
  65. #if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
  66.     #pragma import reset
  67. #endif
  68.  
  69. #endif // #ifndef _H_HToggleRadioButton