home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / yacl-012.zip / ui / xrtglbtn.h < prev   
C/C++ Source or Header  |  1995-04-08  |  2KB  |  97 lines

  1.  
  2.  
  3. #ifndef _xrtglbtn_h_ /* Fri Mar 11 08:38:02 1994 */
  4. #define _xrtglbtn_h_
  5.  
  6.  
  7.  
  8.  
  9.  
  10. /*
  11.  *
  12.  *          Copyright (C) 1994, M. A. Sridhar
  13.  *  
  14.  *
  15.  *     This software is Copyright M. A. Sridhar, 1994. You are free
  16.  *     to copy, modify or distribute this software  as you see fit,
  17.  *     and to use  it  for  any  purpose, provided   this copyright
  18.  *     notice and the following   disclaimer are included  with all
  19.  *     copies.
  20.  *
  21.  *                        DISCLAIMER
  22.  *
  23.  *     The author makes no warranties, either expressed or implied,
  24.  *     with respect  to  this  software, its  quality, performance,
  25.  *     merchantability, or fitness for any particular purpose. This
  26.  *     software is distributed  AS IS.  The  user of this  software
  27.  *     assumes all risks  as to its quality  and performance. In no
  28.  *     event shall the author be liable for any direct, indirect or
  29.  *     consequential damages, even if the  author has been  advised
  30.  *     as to the possibility of such damages.
  31.  *
  32.  */
  33.  
  34.  
  35.  
  36.  
  37.  
  38. // ExOrToggleButton: an ``exclusive-or'' version of the toggle button, also
  39. // called a radio button.
  40.  
  41.  
  42. #if defined(__GNUC__)
  43. #pragma interface
  44. #endif
  45.  
  46.  
  47. #include "base/integer.h"
  48. #include "ui/simple.h"
  49.  
  50. class CL_EXPORT UI_ExOrButtonGroup;
  51. class CL_EXPORT UI_CompositeVObject;
  52.  
  53. class CL_EXPORT UI_ExOrToggleButton: public UI_SimpleVObject {
  54.  
  55. public:
  56.  
  57.     UI_ExOrToggleButton (UI_VObjCollection* parent,
  58.                          const UI_Rectangle& shape,
  59.                          UI_ViewID id = -1);
  60.  
  61. #if defined(__MS_WINDOWS__)
  62.     UI_ExOrToggleButton (UI_CompositeVObject* parent,
  63.                          UI_ViewID id, UI_ViewHandle h);
  64.     // [MS-Windows-specific] For resource-based construction.
  65.  
  66. #endif
  67.  
  68.     CL_Object& Model ();
  69.  
  70.     virtual UI_WindowClass WindowClass () const;
  71.     
  72.     const char* ClassName () const {return "UI_ExOrToggleButton";};
  73.  
  74.  
  75. protected:
  76.  
  77.     bool MakeVisualElement ();
  78.     
  79.     void _PrivateInitialize ();
  80.  
  81.     bool _ModelChanged (CL_Object&, long);
  82.  
  83.     ~UI_ExOrToggleButton(){;};
  84.      
  85.     
  86. #if defined (__X_MOTIF__)
  87.     static void SelectionCallback (struct _WidgetRec*, void *, void *);
  88.  
  89. #endif
  90.     
  91. };
  92.  
  93.  
  94.  
  95.  
  96. #endif /* _xrtglbtn_h_ */
  97.