]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/checkbox.h
fix DLL export declaration (adv, not core)
[wxWidgets.git] / include / wx / palmos / checkbox.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/checkbox.h
3// Purpose: wxCheckBox class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
bdb54365 5// Modified by: Wlodzimierz ABX Skiba - native implementation
ffecfa5a 6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
bdb54365 8// Copyright: (c) William Osborne, Wlodzimierz Skiba
ffecfa5a
JS
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CHECKBOX_H_
13#define _WX_CHECKBOX_H_
14
ffecfa5a
JS
15// Checkbox item (single checkbox)
16class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase
17{
18public:
19 wxCheckBox() { }
20 wxCheckBox(wxWindow *parent,
21 wxWindowID id,
22 const wxString& label,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 long style = 0,
26 const wxValidator& validator = wxDefaultValidator,
27 const wxString& name = wxCheckBoxNameStr)
28 {
29 Create(parent, id, label, pos, size, style, validator, name);
30 }
31
32 bool Create(wxWindow *parent,
33 wxWindowID id,
34 const wxString& label,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = 0,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxCheckBoxNameStr);
40
41 virtual void SetValue(bool value);
42 virtual bool GetValue() const;
43
ffecfa5a
JS
44 virtual void Command(wxCommandEvent& event);
45
a152561c
WS
46 // send a notification event, return true if processed
47 bool SendClickEvent();
48
ffecfa5a
JS
49protected:
50 virtual wxSize DoGetBestSize() const;
51
52 virtual void DoSet3StateValue(wxCheckBoxState value);
53
54 virtual wxCheckBoxState DoGet3StateValue() const;
55
56private:
57 DECLARE_DYNAMIC_CLASS_NO_COPY(wxCheckBox)
58};
59
60#endif
61 // _WX_CHECKBOX_H_