]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/checkbox.h
added wxUSE_ABOUTDLG
[wxWidgets.git] / include / wx / mac / carbon / checkbox.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: checkbox.h
3// Purpose: wxCheckBox class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CHECKBOX_H_
13#define _WX_CHECKBOX_H_
14
8cf73271
SC
15// Checkbox item (single checkbox)
16class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase
17{
18public:
19 wxCheckBox() { }
20 wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
21 const wxPoint& pos = wxDefaultPosition,
22 const wxSize& size = wxDefaultSize, long style = 0,
23 const wxValidator& validator = wxDefaultValidator,
24 const wxString& name = wxCheckBoxNameStr)
25 {
26 Create(parent, id, label, pos, size, style, validator, name);
27 }
28
29 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize, long style = 0,
32 const wxValidator& validator = wxDefaultValidator,
33 const wxString& name = wxCheckBoxNameStr);
34 virtual void SetValue(bool);
35 virtual bool GetValue() const;
36
336a6aba 37 virtual wxInt32 MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
8cf73271
SC
38 virtual void Command(wxCommandEvent& event);
39
6f02a879
VZ
40protected:
41 void DoSet3StateValue(wxCheckBoxState val);
42 virtual wxCheckBoxState DoGet3StateValue() const;
43
8cf73271
SC
44 DECLARE_DYNAMIC_CLASS(wxCheckBox)
45};
46
47class WXDLLEXPORT wxBitmap;
48class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox
49{
50public:
51 int checkWidth;
52 int checkHeight;
53
54 wxBitmapCheckBox()
55 : checkWidth(-1), checkHeight(-1)
56 { }
57
58 wxBitmapCheckBox(wxWindow *parent, wxWindowID id, const wxBitmap *label,
59 const wxPoint& pos = wxDefaultPosition,
60 const wxSize& size = wxDefaultSize, long style = 0,
61 const wxValidator& validator = wxDefaultValidator,
62 const wxString& name = wxCheckBoxNameStr)
63 {
64 Create(parent, id, label, pos, size, style, validator, name);
65 }
66
67 bool Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap,
68 const wxPoint& pos = wxDefaultPosition,
69 const wxSize& size = wxDefaultSize, long style = 0,
70 const wxValidator& validator = wxDefaultValidator,
71 const wxString& name = wxCheckBoxNameStr);
72 virtual void SetValue(bool);
73 virtual bool GetValue() const;
74 virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
75 virtual void SetLabel(const wxBitmap *bitmap);
76 virtual void SetLabel( const wxString & WXUNUSED(name) ) {}
77
78 DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox)
79};
80#endif
81 // _WX_CHECKBOX_H_