]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/palmos/radiobut.h
check that the conversion to wxDateTime was really successful
[wxWidgets.git] / include / wx / palmos / radiobut.h
index 87e1d25d00c09128a8260e038885c784300e69fd..7c6f4f201ce61236e453801d8737da3fc123748d 100644 (file)
@@ -1,22 +1,18 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        radiobut.h
+// Name:        wx/palmos/radiobut.h
 // Purpose:     wxRadioButton class
-// Author:      William Osborne
-// Modified by:
+// Author:      William Osborne - minimal working wxPalmOS port
+// Modified by: Wlodzimierz ABX Skiba - native wxRadioButton implementation
 // Created:     10/13/04
-// RCS-ID:      $Id
-// Copyright:   (c) William Osborne
+// RCS-ID:      $Id$
+// 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
+class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
 {
 public:
     // ctors and creation functions
@@ -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)
 };