]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/radiobut.h
Cast for argument to delete[] - VC6 doesn't want to delete a const pointer
[wxWidgets.git] / include / wx / cocoa / radiobut.h
index 0dbf288c90874207eea7b00565c4eb79a1a65e97..9225022b35e7ccfe5249bcf0218237916cc5445d 100644 (file)
@@ -4,9 +4,9 @@
 // Author:      David Elliott
 // Modified by:
 // Created:     2003/03/18
-// RCS-ID:      $Id:
+// RCS-ID:      $Id$
 // Copyright:   (c) 2003 David Elliott
-// Licence:    wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef __WX_COCOA_RADIOBUT_H__
 
 #include "wx/cocoa/NSButton.h"
 
+class WXDLLIMPEXP_FWD_CORE wxRadioButton;
+
+WX_DECLARE_EXPORTED_LIST(wxRadioButton, wxRadioButtonList);
+
 // ========================================================================
 // wxRadioButton
 // ========================================================================
-class WXDLLEXPORT wxRadioButton: public wxControl, protected wxCocoaNSButton
+class WXDLLIMPEXP_CORE wxRadioButton: public wxControl, protected wxCocoaNSButton
 {
     DECLARE_DYNAMIC_CLASS(wxRadioButton)
     DECLARE_EVENT_TABLE()
@@ -26,7 +30,7 @@ class WXDLLEXPORT wxRadioButton: public wxControl, protected wxCocoaNSButton
 // initialization
 // ------------------------------------------------------------------------
 public:
-    wxRadioButton() { }
+    wxRadioButton() { m_radioMaster = NULL; }
     wxRadioButton(wxWindow *parent, wxWindowID winid,
             const wxString& label,
             const wxPoint& pos = wxDefaultPosition,
@@ -52,12 +56,19 @@ public:
 // ------------------------------------------------------------------------
 protected:
     virtual void Cocoa_wxNSButtonAction(void);
+private:
+    void Cocoa_DeselectOtherButtonsInTheGroup(void);
 // ------------------------------------------------------------------------
 // Implementation
 // ------------------------------------------------------------------------
 public:
     virtual void SetValue(bool);
     virtual bool GetValue() const;
+    virtual void SetLabel(const wxString& label);
+    virtual wxString GetLabel() const;
+protected:
+    wxRadioButtonList m_radioSlaves;
+    wxRadioButton *m_radioMaster;
 };
 
 #endif // __WX_COCOA_RADIOBUT_H__