]> git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/checklst.cpp
corrected access to NULL parameters in wxGetOsVersion
[wxWidgets.git] / src / mac / carbon / checklst.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: checklst.cpp
3 // Purpose: implementation of wxCheckListBox class
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // headers & declarations
14 // ============================================================================
15
16 #ifdef __GNUG__
17 #pragma implementation "checklst.h"
18 #endif
19
20 #include "wx/defs.h"
21
22 #if wxUSE_CHECKLISTBOX
23
24 #include "wx/checklst.h"
25
26 // ============================================================================
27 // implementation
28 // ============================================================================
29
30 #if !USE_SHARED_LIBRARY
31 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
32 #endif
33
34 // ----------------------------------------------------------------------------
35 // implementation of wxCheckListBox class
36 // ----------------------------------------------------------------------------
37
38 // define event table
39 // ------------------
40 BEGIN_EVENT_TABLE(wxCheckListBox, wxListBox)
41 END_EVENT_TABLE()
42
43 // control creation
44 // ----------------
45
46 // def ctor: use Create() to really create the control
47 wxCheckListBox::wxCheckListBox() : wxCheckListBoxBase()
48 {
49 }
50
51 // ctor which creates the associated control
52 wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id,
53 const wxPoint& pos, const wxSize& size,
54 int nStrings, const wxString choices[],
55 long style, const wxValidator& val,
56 const wxString& name)
57 : wxCheckListBoxBase()
58 {
59 // TODO: you'll probably need a separate Create instead of using
60 // the wxListBox one as here.
61 Create(parent, id, pos, size, nStrings, choices, style|wxLB_OWNERDRAW, val, name);
62 }
63
64 // check items
65 // -----------
66
67 bool wxCheckListBox::IsChecked(size_t uiIndex) const
68 {
69 // TODO
70 return FALSE;
71 }
72
73 void wxCheckListBox::Check(size_t uiIndex, bool bCheck)
74 {
75 // TODO
76 }
77
78 #endif // wxUSE_CHECKLISTBOX
79