]> git.saurik.com Git - wxWidgets.git/blame - include/wx/qt/radiobut.h
EVT_TEXT_UPDATED bug fixed, text ctrl callbacks simplified
[wxWidgets.git] / include / wx / qt / radiobut.h
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobut.h
01b2eeec
KB
3// Purpose: wxRadioButton class
4// Author: AUTHOR
5// Modified by:
7c78e7c7 6// Created: 01/02/97
01b2eeec
KB
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
01b2eeec
KB
12#ifndef _WX_RADIOBUT_H_
13#define _WX_RADIOBUT_H_
7c78e7c7
RR
14
15#ifdef __GNUG__
01b2eeec 16#pragma interface "radiobut.h"
7c78e7c7
RR
17#endif
18
7c78e7c7
RR
19#include "wx/control.h"
20
01b2eeec
KB
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 virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
52 WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
53};
7c78e7c7 54
01b2eeec
KB
55// Not implemented
56#if 0
57class WXDLLEXPORT wxBitmap ;
7c78e7c7 58
01b2eeec 59WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
7c78e7c7 60
01b2eeec
KB
61class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
62{
63 DECLARE_DYNAMIC_CLASS(wxBitmapRadioButton)
64 protected:
65 wxBitmap *theButtonBitmap;
66 public:
67 inline wxBitmapRadioButton() { theButtonBitmap = NULL; }
68 inline wxBitmapRadioButton(wxWindow *parent, wxWindowID id,
69 const wxBitmap *label,
70 const wxPoint& pos = wxDefaultPosition,
71 const wxSize& size = wxDefaultSize, long style = 0,
72 const wxValidator& validator = wxDefaultValidator,
73 const wxString& name = wxBitmapRadioButtonNameStr)
74 {
75 Create(parent, id, label, pos, size, style, validator, name);
76 }
77
78 bool Create(wxWindow *parent, wxWindowID id,
79 const wxBitmap *label,
80 const wxPoint& pos = wxDefaultPosition,
81 const wxSize& size = wxDefaultSize, long style = 0,
82 const wxValidator& validator = wxDefaultValidator,
83 const wxString& name = wxBitmapRadioButtonNameStr);
84
85 virtual void SetLabel(const wxBitmap *label);
86 virtual void SetValue(bool val) ;
87 virtual bool GetValue() const ;
88};
89#endif
90
91#endif
92 // _WX_RADIOBUT_H_