X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1d63b79352db5290a9f86428d193bd6a08ef32f..97f3b1e939c502a05f2717e52b44919c8254d61e:/include/wx/palmos/radiobut.h?ds=sidebyside diff --git a/include/wx/palmos/radiobut.h b/include/wx/palmos/radiobut.h index 954295f422..25c36d35e8 100644 --- a/include/wx/palmos/radiobut.h +++ b/include/wx/palmos/radiobut.h @@ -2,20 +2,16 @@ // Name: wx/palmos/radiobut.h // Purpose: wxRadioButton class // Author: William Osborne - minimal working wxPalmOS port -// Modified by: +// Modified by: Wlodzimierz ABX Skiba - native wxRadioButton implementation // Created: 10/13/04 // RCS-ID: $Id$ -// Copyright: (c) William Osborne +// Copyright: (c) William Osborne, Wlodzimierz Skiba // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_RADIOBUT_H_ #define _WX_RADIOBUT_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "radiobut.h" -#endif - class WXDLLEXPORT wxRadioButton: public wxControl { public: @@ -50,11 +46,11 @@ public: virtual bool GetValue() const; // implementation only from now on - virtual bool MSWCommand(WXUINT param, WXWORD id); virtual void Command(wxCommandEvent& event); - virtual void ApplyParentThemeBackground(const wxColour& bg) - { SetBackgroundColour(bg); } + void SetGroup(uint8_t group); + // send a notification event, return true if processed + bool SendClickEvent(); protected: virtual wxSize DoGetBestSize() const; @@ -63,10 +59,10 @@ private: // common part of all ctors void Init(); - // we need to store the state internally as the result of GetValue() - // sometimes gets out of sync in WM_COMMAND handler - bool m_isChecked; + uint8_t m_groupID; + // pushButtonCtl or checkboxCtl + int m_radioStyle; DECLARE_DYNAMIC_CLASS_NO_COPY(wxRadioButton) };