]> git.saurik.com Git - wxWidgets.git/blob - src/mac/checkbox.cpp
added a rule about DoXXX() functions
[wxWidgets.git] / src / mac / checkbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        checkbox.cpp
3 // Purpose:     wxCheckBox
4 // Author:      AUTHOR
5 // Modified by:
6 // Created:     04/01/98
7 // RCS-ID:      $Id$
8 // Copyright:   (c) AUTHOR
9 // Licence:     wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "checkbox.h"
14 #endif
15
16 #include "wx/checkbox.h"
17
18 #if !USE_SHARED_LIBRARY
19 IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
20 IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
21 #endif
22
23 // Single check box item
24 bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label,
25            const wxPoint& pos,
26            const wxSize& size, long style,
27            const wxValidator& validator,
28            const wxString& name)
29 {
30     SetName(name);
31     SetValidator(validator);
32     m_windowStyle = style;
33
34     if (parent) parent->AddChild(this);
35
36     if ( id == -1 )
37         m_windowId = NewControlId();
38     else
39         m_windowId = id;
40
41     // TODO: create checkbox
42
43     return FALSE;
44 }
45
46 void wxCheckBox::SetLabel(const wxString& label)
47 {
48     // TODO
49 }
50
51 void wxCheckBox::SetSize(int x, int y, int width, int height, int sizeFlags)
52 {
53     // TODO
54 }
55
56 void wxCheckBox::SetValue(bool val)
57 {
58     // TODO
59 }
60
61 bool wxCheckBox::GetValue() const
62 {
63     // TODO
64     return FALSE;
65 }
66
67 void wxCheckBox::Command (wxCommandEvent & event)
68 {
69     SetValue ((event.GetInt() != 0));
70     ProcessCommand (event);
71 }
72
73 // Bitmap checkbox
74 bool wxBitmapCheckBox::Create(wxWindow *parent, wxWindowID id, const wxBitmap *label,
75            const wxPoint& pos,
76            const wxSize& size, long style,
77            const wxValidator& validator,
78            const wxString& name)
79 {
80     SetName(name);
81     SetValidator(validator);
82     m_windowStyle = style;
83
84     if (parent) parent->AddChild(this);
85
86     if ( id == -1 )
87         m_windowId = NewControlId();
88     else
89         m_windowId = id;
90
91     // TODO: Create the bitmap checkbox
92
93     return FALSE;
94 }
95
96 void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap)
97 {
98     // TODO
99 }
100
101 void wxBitmapCheckBox::SetSize(int x, int y, int width, int height, int sizeFlags)
102 {
103     // TODO
104 }
105
106 void wxBitmapCheckBox::SetValue(bool val)
107 {
108     // TODO
109 }
110
111 bool wxBitmapCheckBox::GetValue() const
112 {
113     // TODOD
114     return FALSE;
115 }
116
117