1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        wx/palmos/radiobut.h 
   3 // Purpose:     wxRadioButton class 
   4 // Author:      William Osborne - minimal working wxPalmOS port 
   5 // Modified by: Wlodzimierz ABX Skiba - native wxRadioButton implementation 
   8 // Copyright:   (c) William Osborne, Wlodzimierz Skiba 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  12 #ifndef _WX_RADIOBUT_H_ 
  13 #define _WX_RADIOBUT_H_ 
  15 class WXDLLIMPEXP_CORE wxRadioButton
: public wxControl
 
  18     // ctors and creation functions 
  19     wxRadioButton() { Init(); } 
  21     wxRadioButton(wxWindow 
*parent
, 
  23                   const wxString
& label
, 
  24                   const wxPoint
& pos 
= wxDefaultPosition
, 
  25                   const wxSize
& size 
= wxDefaultSize
, 
  27                   const wxValidator
& validator 
= wxDefaultValidator
, 
  28                   const wxString
& name 
= wxRadioButtonNameStr
) 
  32         Create(parent
, id
, label
, pos
, size
, style
, validator
, name
); 
  35     bool Create(wxWindow 
*parent
, 
  37                 const wxString
& label
, 
  38                 const wxPoint
& pos 
= wxDefaultPosition
, 
  39                 const wxSize
& size 
= wxDefaultSize
, 
  41                 const wxValidator
& validator 
= wxDefaultValidator
, 
  42                 const wxString
& name 
= wxRadioButtonNameStr
); 
  44     // implement the radio button interface 
  45     virtual void SetValue(bool value
); 
  46     virtual bool GetValue() const; 
  48     // implementation only from now on 
  49     virtual void Command(wxCommandEvent
& event
); 
  50     void SetGroup(uint8_t group
); 
  52     // send a notification event, return true if processed 
  53     bool SendClickEvent(); 
  56     virtual wxSize 
DoGetBestSize() const; 
  59     // common part of all ctors 
  64     // pushButtonCtl or checkboxCtl 
  66     DECLARE_DYNAMIC_CLASS_NO_COPY(wxRadioButton
)