]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/radiobut.h
Remove the unused code instead of commenting it out.
[wxWidgets.git] / include / wx / cocoa / radiobut.h
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/radiobut.h
3// Purpose: wxRadioButton class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/18
1c4e8f38 7// RCS-ID: $Id$
da0634c1 8// Copyright: (c) 2003 David Elliott
1c4e8f38 9// Licence: wxWindows licence
da0634c1
DE
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WX_COCOA_RADIOBUT_H__
13#define __WX_COCOA_RADIOBUT_H__
14
15#include "wx/cocoa/NSButton.h"
16
b5dbe15d 17class WXDLLIMPEXP_FWD_CORE wxRadioButton;
d0a5e34a 18
8da116cf 19WX_DECLARE_EXPORTED_LIST(wxRadioButton, wxRadioButtonList);
d0a5e34a 20
da0634c1
DE
21// ========================================================================
22// wxRadioButton
23// ========================================================================
53a2db12 24class WXDLLIMPEXP_CORE wxRadioButton: public wxControl, protected wxCocoaNSButton
da0634c1
DE
25{
26 DECLARE_DYNAMIC_CLASS(wxRadioButton)
27 DECLARE_EVENT_TABLE()
28 WX_DECLARE_COCOA_OWNER(NSButton,NSControl,NSView)
29// ------------------------------------------------------------------------
30// initialization
31// ------------------------------------------------------------------------
32public:
d0a5e34a 33 wxRadioButton() { m_radioMaster = NULL; }
da0634c1
DE
34 wxRadioButton(wxWindow *parent, wxWindowID winid,
35 const wxString& label,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = 0,
39 const wxValidator& validator = wxDefaultValidator,
40 const wxString& name = wxRadioButtonNameStr)
41 {
42 Create(parent, winid, label, pos, size, style, validator, name);
43 }
44
45 bool Create(wxWindow *parent, wxWindowID winid,
46 const wxString& label,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize,
49 long style = 0,
50 const wxValidator& validator = wxDefaultValidator,
51 const wxString& name = wxRadioButtonNameStr);
52 virtual ~wxRadioButton();
53
54// ------------------------------------------------------------------------
55// Cocoa callbacks
56// ------------------------------------------------------------------------
57protected:
58 virtual void Cocoa_wxNSButtonAction(void);
18359b19
DE
59private:
60 void Cocoa_DeselectOtherButtonsInTheGroup(void);
da0634c1
DE
61// ------------------------------------------------------------------------
62// Implementation
63// ------------------------------------------------------------------------
64public:
65 virtual void SetValue(bool);
66 virtual bool GetValue() const;
3c0f8ed2
DE
67 virtual void SetLabel(const wxString& label);
68 virtual wxString GetLabel() const;
d0a5e34a
DE
69protected:
70 wxRadioButtonList m_radioSlaves;
71 wxRadioButton *m_radioMaster;
da0634c1
DE
72};
73
74#endif // __WX_COCOA_RADIOBUT_H__