]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/radiobut.h
char handling fixed again
[wxWidgets.git] / include / wx / gtk / radiobut.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobut.h
3// Purpose:
4// Author: Robert Roebling
f96aa4d9
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
c801d85f
KB
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKRADIOBUTTONH__
12#define __GTKRADIOBUTTONH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/list.h"
21#include "wx/control.h"
22
23//-----------------------------------------------------------------------------
24// classes
25//-----------------------------------------------------------------------------
26
27class wxRadioButton;
28
6de97a3b
RR
29//-----------------------------------------------------------------------------
30// data
31//-----------------------------------------------------------------------------
32
33extern const char* wxRadioButtonNameStr;
34
35//-----------------------------------------------------------------------------
36// wxRadioButton
37//-----------------------------------------------------------------------------
38
39class wxRadioButton: public wxControl
40{
41 DECLARE_DYNAMIC_CLASS(wxRadioButton)
42
43 public:
44 inline wxRadioButton(void) {}
45 inline wxRadioButton( wxWindow *parent, wxWindowID id,
46 const wxString& label,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize, long style = 0,
49 const wxValidator& validator = wxDefaultValidator,
50 const wxString& name = wxRadioButtonNameStr )
51 {
52 Create( parent, id, label, pos, size, style, validator, name );
53 }
54 bool Create(wxWindow *parent, wxWindowID id,
55 const wxString& label,
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& size = wxDefaultSize, long style = 0,
58 const wxValidator& validator = wxDefaultValidator,
59 const wxString& name = wxRadioButtonNameStr );
60 virtual void SetLabel(const wxString& label);
61 virtual void SetValue(bool val);
62 virtual bool GetValue(void) const;
d3904ceb 63 void Enable( bool enable );
58614078
RR
64
65 // implementation
66
67 void ApplyWidgetStyle();
bb4549de 68
f5d29b39
RR
69 bool m_blockFirstEvent;
70 GtkWidget* m_theOtherRadioButtton;
6de97a3b 71};
c801d85f
KB
72
73#endif // __GTKRADIOBUTTONH__