]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/stubs/radiobut.h
Changes related to stream includes
[wxWidgets.git] / include / wx / stubs / radiobut.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobut.h
3// Purpose: wxRadioButton class
4// Author: AUTHOR
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_RADIOBUT_H_
13#define _WX_RADIOBUT_H_
14
15#ifdef __GNUG__
16#pragma interface "radiobut.h"
17#endif
18
19#include "wx/control.h"
20
21WXDLLEXPORT_DATA(extern const char*) wxRadioButtonNameStr;
22
23class WXDLLEXPORT wxRadioButton: public wxControl
24{
25 DECLARE_DYNAMIC_CLASS(wxRadioButton)
26 protected:
27 public:
28 inline wxRadioButton() {}
29 inline wxRadioButton(wxWindow *parent, wxWindowID id,
30 const wxString& label,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize, long style = 0,
33 const wxValidator& validator = wxDefaultValidator,
34 const wxString& name = wxRadioButtonNameStr)
35 {
36 Create(parent, id, label, pos, size, style, validator, name);
37 }
38
39 bool Create(wxWindow *parent, wxWindowID id,
40 const wxString& label,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize, long style = 0,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxRadioButtonNameStr);
45
46 virtual void SetLabel(const wxString& label);
47 virtual void SetValue(bool val);
48 virtual bool GetValue() const ;
49
50 void Command(wxCommandEvent& event);
51};
52
53// Not implemented
54#if 0
55class WXDLLEXPORT wxBitmap ;
56
57WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
58
59class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
60{
61 DECLARE_DYNAMIC_CLASS(wxBitmapRadioButton)
62 protected:
63 wxBitmap *theButtonBitmap;
64 public:
65 inline wxBitmapRadioButton() { theButtonBitmap = NULL; }
66 inline wxBitmapRadioButton(wxWindow *parent, wxWindowID id,
67 const wxBitmap *label,
68 const wxPoint& pos = wxDefaultPosition,
69 const wxSize& size = wxDefaultSize, long style = 0,
70 const wxValidator& validator = wxDefaultValidator,
71 const wxString& name = wxBitmapRadioButtonNameStr)
72 {
73 Create(parent, id, label, pos, size, style, validator, name);
74 }
75
76 bool Create(wxWindow *parent, wxWindowID id,
77 const wxBitmap *label,
78 const wxPoint& pos = wxDefaultPosition,
79 const wxSize& size = wxDefaultSize, long style = 0,
80 const wxValidator& validator = wxDefaultValidator,
81 const wxString& name = wxBitmapRadioButtonNameStr);
82
83 virtual void SetLabel(const wxBitmap *label);
84 virtual void SetValue(bool val) ;
85 virtual bool GetValue() const ;
86};
87#endif
88
89#endif
90 // _WX_RADIOBUT_H_