]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/radiobut.h
calling insert("") would provoke an assert - now it's just ignored
[wxWidgets.git] / include / wx / gtk / radiobut.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobut.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKRADIOBUTTONH__
13#define __GTKRADIOBUTTONH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/list.h"
22#include "wx/control.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class wxRadioButton;
29
6de97a3b
RR
30//-----------------------------------------------------------------------------
31// data
32//-----------------------------------------------------------------------------
33
34extern const char* wxRadioButtonNameStr;
35
36//-----------------------------------------------------------------------------
37// wxRadioButton
38//-----------------------------------------------------------------------------
39
40class wxRadioButton: public wxControl
41{
42 DECLARE_DYNAMIC_CLASS(wxRadioButton)
43
44 public:
45 inline wxRadioButton(void) {}
46 inline wxRadioButton( wxWindow *parent, wxWindowID id,
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 )
52 {
53 Create( parent, id, label, pos, size, style, validator, name );
54 }
55 bool Create(wxWindow *parent, wxWindowID id,
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 );
61 virtual void SetLabel(const wxString& label);
62 virtual void SetValue(bool val);
63 virtual bool GetValue(void) const;
64};
c801d85f
KB
65
66#endif // __GTKRADIOBUTTONH__