]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/radiobut.h
Removed unnecessary code from utilsunx.cpp
[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"
dcf924a3
RR
19
20#if wxUSE_RADIOBOX
21
c801d85f
KB
22#include "wx/object.h"
23#include "wx/list.h"
24#include "wx/control.h"
25
26//-----------------------------------------------------------------------------
27// classes
28//-----------------------------------------------------------------------------
29
30class wxRadioButton;
31
6de97a3b
RR
32//-----------------------------------------------------------------------------
33// data
34//-----------------------------------------------------------------------------
35
36extern const char* wxRadioButtonNameStr;
37
38//-----------------------------------------------------------------------------
39// wxRadioButton
40//-----------------------------------------------------------------------------
41
42class wxRadioButton: public wxControl
43{
953704c1 44public:
2f073eb2
RR
45 inline wxRadioButton() {}
46 inline wxRadioButton( wxWindow *parent, wxWindowID id,
6de97a3b
RR
47 const wxString& label,
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize, long style = 0,
50 const wxValidator& validator = wxDefaultValidator,
51 const wxString& name = wxRadioButtonNameStr )
2f073eb2
RR
52 {
53 Create( parent, id, label, pos, size, style, validator, name );
54 }
55 bool Create(wxWindow *parent, wxWindowID id,
6de97a3b
RR
56 const wxString& label,
57 const wxPoint& pos = wxDefaultPosition,
58 const wxSize& size = wxDefaultSize, long style = 0,
59 const wxValidator& validator = wxDefaultValidator,
60 const wxString& name = wxRadioButtonNameStr );
2f073eb2
RR
61 virtual void SetLabel(const wxString& label);
62 virtual void SetValue(bool val);
63 virtual bool GetValue() const;
64 bool Enable( bool enable );
58614078
RR
65
66 // implementation
67
2f073eb2
RR
68 GSList *m_radioButtonGroup;
69 void ApplyWidgetStyle();
70 bool IsOwnGtkWindow( GdkWindow *window );
71 void OnInternalIdle();
72
db434467
RR
73protected:
74 virtual wxSize DoGetBestSize() const;
75
2f073eb2
RR
76private:
77 DECLARE_DYNAMIC_CLASS(wxRadioButton)
6de97a3b 78};
c801d85f 79
dcf924a3
RR
80#endif
81
c801d85f 82#endif // __GTKRADIOBUTTONH__