]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/radiobut.h
removed libxpm dependencies from makefiles
[wxWidgets.git] / include / wx / mac / radiobut.h
CommitLineData
0dbd6262
SC
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{
0a67a93b
SC
25 DECLARE_DYNAMIC_CLASS(wxRadioButton)
26 protected:
079c842c
RR
27public:
28 inline wxRadioButton() {}
29 inline wxRadioButton(wxWindow *parent, wxWindowID id,
0dbd6262
SC
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)
079c842c
RR
35 {
36 Create(parent, id, label, pos, size, style, validator, name);
37 }
0dbd6262 38
079c842c 39 bool Create(wxWindow *parent, wxWindowID id,
0dbd6262
SC
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
079c842c
RR
46 virtual void SetValue(bool val);
47 virtual bool GetValue() const ;
0dbd6262 48
079c842c
RR
49 // implementation
50
1dd52151 51 virtual void MacHandleControlClick( ControlHandle control , SInt16 controlpart );
079c842c
RR
52 void Command(wxCommandEvent& event);
53 wxRadioButton *AddInCycle(wxRadioButton *cycle);
54 inline wxRadioButton *NextInCycle() {return m_cycle;}
55
0a67a93b
SC
56 protected:
57
079c842c 58 wxRadioButton *m_cycle;
0dbd6262
SC
59};
60
61// Not implemented
62#if 0
63class WXDLLEXPORT wxBitmap ;
64
65WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
66
67class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
68{
69 DECLARE_DYNAMIC_CLASS(wxBitmapRadioButton)
70 protected:
71 wxBitmap *theButtonBitmap;
72 public:
73 inline wxBitmapRadioButton() { theButtonBitmap = NULL; }
74 inline wxBitmapRadioButton(wxWindow *parent, wxWindowID id,
75 const wxBitmap *label,
76 const wxPoint& pos = wxDefaultPosition,
77 const wxSize& size = wxDefaultSize, long style = 0,
78 const wxValidator& validator = wxDefaultValidator,
79 const wxString& name = wxBitmapRadioButtonNameStr)
80 {
81 Create(parent, id, label, pos, size, style, validator, name);
82 }
83
84 bool Create(wxWindow *parent, wxWindowID id,
85 const wxBitmap *label,
86 const wxPoint& pos = wxDefaultPosition,
87 const wxSize& size = wxDefaultSize, long style = 0,
88 const wxValidator& validator = wxDefaultValidator,
89 const wxString& name = wxBitmapRadioButtonNameStr);
90
91 virtual void SetLabel(const wxBitmap *label);
92 virtual void SetValue(bool val) ;
93 virtual bool GetValue() const ;
94};
95#endif
96
97#endif
98 // _WX_RADIOBUT_H_