radiobut.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/radiobut.h
  3. // Purpose: wxRadioButton declaration
  4. // Author: Vadim Zeitlin
  5. // Modified by:
  6. // Created: 07.09.00
  7. // Copyright: (c) Vadim Zeitlin
  8. // Licence: wxWindows licence
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_RADIOBUT_H_BASE_
  11. #define _WX_RADIOBUT_H_BASE_
  12. #include "wx/defs.h"
  13. #if wxUSE_RADIOBTN
  14. /*
  15. There is no wxRadioButtonBase class as wxRadioButton interface is the same
  16. as wxCheckBox(Base), but under some platforms wxRadioButton really
  17. derives from wxCheckBox and on the others it doesn't.
  18. The pseudo-declaration of wxRadioButtonBase would look like this:
  19. class wxRadioButtonBase : public ...
  20. {
  21. public:
  22. virtual void SetValue(bool value);
  23. virtual bool GetValue() const;
  24. };
  25. */
  26. #include "wx/control.h"
  27. extern WXDLLIMPEXP_DATA_CORE(const char) wxRadioButtonNameStr[];
  28. #if defined(__WXUNIVERSAL__)
  29. #include "wx/univ/radiobut.h"
  30. #elif defined(__WXMSW__)
  31. #include "wx/msw/radiobut.h"
  32. #elif defined(__WXMOTIF__)
  33. #include "wx/motif/radiobut.h"
  34. #elif defined(__WXGTK20__)
  35. #include "wx/gtk/radiobut.h"
  36. #elif defined(__WXGTK__)
  37. #include "wx/gtk1/radiobut.h"
  38. #elif defined(__WXMAC__)
  39. #include "wx/osx/radiobut.h"
  40. #elif defined(__WXCOCOA__)
  41. #include "wx/cocoa/radiobut.h"
  42. #elif defined(__WXPM__)
  43. #include "wx/os2/radiobut.h"
  44. #endif
  45. #endif // wxUSE_RADIOBTN
  46. #endif
  47. // _WX_RADIOBUT_H_BASE_