1
/////////////////////////////////////////////////////////////////////////////
2
// Name: wx/osx/radiobut.h
3
// Purpose: wxRadioButton class
4
// Author: Stefan Csomor
7
// Copyright: (c) Stefan Csomor
8
// Licence: wxWindows licence
9
/////////////////////////////////////////////////////////////////////////////
11
#ifndef _WX_RADIOBUT_H_
12
#define _WX_RADIOBUT_H_
14
class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
16
DECLARE_DYNAMIC_CLASS(wxRadioButton)
19
inline wxRadioButton() {}
20
inline wxRadioButton(wxWindow *parent, wxWindowID id,
21
const wxString& label,
22
const wxPoint& pos = wxDefaultPosition,
23
const wxSize& size = wxDefaultSize, long style = 0,
24
const wxValidator& validator = wxDefaultValidator,
25
const wxString& name = wxRadioButtonNameStr)
27
Create(parent, id, label, pos, size, style, validator, name);
29
virtual ~wxRadioButton();
31
bool Create(wxWindow *parent, wxWindowID id,
32
const wxString& label,
33
const wxPoint& pos = wxDefaultPosition,
34
const wxSize& size = wxDefaultSize, long style = 0,
35
const wxValidator& validator = wxDefaultValidator,
36
const wxString& name = wxRadioButtonNameStr);
38
virtual void SetValue(bool val);
39
virtual bool GetValue() const ;
43
void Command(wxCommandEvent& event);
44
wxRadioButton *AddInCycle(wxRadioButton *cycle);
45
void RemoveFromCycle();
46
inline wxRadioButton *NextInCycle() {return m_cycle;}
48
// osx specific event handling common for all osx-ports
50
virtual bool OSXHandleClicked( double timestampsec );
53
wxRadioButton *m_cycle;
58
class WXDLLIMPEXP_FWD_CORE wxBitmap ;
60
WXDLLIMPEXP_DATA_CORE(extern const wxChar) wxBitmapRadioButtonNameStr[];
62
class WXDLLIMPEXP_CORE wxBitmapRadioButton: public wxRadioButton
64
DECLARE_DYNAMIC_CLASS(wxBitmapRadioButton)
66
wxBitmap *theButtonBitmap;
68
inline wxBitmapRadioButton() { theButtonBitmap = NULL; }
69
inline wxBitmapRadioButton(wxWindow *parent, wxWindowID id,
70
const wxBitmap *label,
71
const wxPoint& pos = wxDefaultPosition,
72
const wxSize& size = wxDefaultSize, long style = 0,
73
const wxValidator& validator = wxDefaultValidator,
74
const wxString& name = wxBitmapRadioButtonNameStr)
76
Create(parent, id, label, pos, size, style, validator, name);
79
bool Create(wxWindow *parent, wxWindowID id,
80
const wxBitmap *label,
81
const wxPoint& pos = wxDefaultPosition,
82
const wxSize& size = wxDefaultSize, long style = 0,
83
const wxValidator& validator = wxDefaultValidator,
84
const wxString& name = wxBitmapRadioButtonNameStr);
86
virtual void SetLabel(const wxBitmap *label);
87
virtual void SetValue(bool val) ;
88
virtual bool GetValue() const ;