]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/checkbox.h
build fixes
[wxWidgets.git] / include / wx / cocoa / checkbox.h
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/checkbox.h
3// Purpose: wxCheckBox class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/16
8d8d3633 7// RCS-ID: $Id$
da0634c1 8// Copyright: (c) 2003 David Elliott
8d8d3633 9// Licence: wxWindows licence
da0634c1
DE
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WX_COCOA_CHECKBOX_H__
13#define __WX_COCOA_CHECKBOX_H__
14
15#include "wx/cocoa/NSButton.h"
16
17// ========================================================================
18// wxCheckBox
19// ========================================================================
20class WXDLLEXPORT wxCheckBox: public wxCheckBoxBase , protected wxCocoaNSButton
21{
22 DECLARE_DYNAMIC_CLASS(wxCheckBox)
23 DECLARE_EVENT_TABLE()
24 WX_DECLARE_COCOA_OWNER(NSButton,NSControl,NSView)
25// ------------------------------------------------------------------------
26// initialization
27// ------------------------------------------------------------------------
28public:
29 wxCheckBox() { }
30 wxCheckBox(wxWindow *parent, wxWindowID winid,
31 const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxCheckBoxNameStr)
37 {
38 Create(parent, winid, label, pos, size, style, validator, name);
39 }
40
41 bool Create(wxWindow *parent, wxWindowID winid,
42 const wxString& label,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = 0,
46 const wxValidator& validator = wxDefaultValidator,
47 const wxString& name = wxCheckBoxNameStr);
48 virtual ~wxCheckBox();
49
50// ------------------------------------------------------------------------
51// Cocoa callbacks
52// ------------------------------------------------------------------------
53protected:
54 virtual void Cocoa_wxNSButtonAction(void);
55// ------------------------------------------------------------------------
56// Implementation
57// ------------------------------------------------------------------------
58public:
59 virtual void SetValue(bool);
60 virtual bool GetValue() const;
d803176a 61 virtual void SetLabel(const wxString& label);
d174f457
VZ
62 virtual wxString GetLabel() const;
63
7f7b69e2
DE
64protected:
65 virtual void DoSet3StateValue(wxCheckBoxState state);
66 virtual wxCheckBoxState DoGet3StateValue() const;
da0634c1
DE
67};
68
69#endif // __WX_COCOA_CHECKBOX_H__