]> git.saurik.com Git - wxWidgets.git/blob - src/mac/checklst.cpp
added more stuff to wxBase: zipstrm, zstream, fs_*, mstream
[wxWidgets.git] / src / mac / 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/checklst.h"
21
22 // ============================================================================
23 // implementation
24 // ============================================================================
25
26 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
27
28 // ----------------------------------------------------------------------------
29 // implementation of wxCheckListBox class
30 // ----------------------------------------------------------------------------
31
32 // define event table
33 // ------------------
34 BEGIN_EVENT_TABLE(wxCheckListBox, wxListBox)
35 END_EVENT_TABLE()
36
37 // control creation
38 // ----------------
39
40 // def ctor: use Create() to really create the control
41 wxCheckListBox::wxCheckListBox() : wxListBox()
42 {
43 }
44
45 // ctor which creates the associated control
46 wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id,
47 const wxPoint& pos, const wxSize& size,
48 int nStrings, const wxString choices[],
49 long style, const wxValidator& val,
50 const wxString& name)
51 : wxListBox()
52 {
53 // TODO: you'll probably need a separate Create instead of using
54 // the wxListBox one as here.
55 Create(parent, id, pos, size, nStrings, choices, style|wxLB_OWNERDRAW, val, name);
56 }
57
58 // check items
59 // -----------
60
61 bool wxCheckListBox::IsChecked(size_t uiIndex) const
62 {
63 // TODO
64 return FALSE;
65 }
66
67 void wxCheckListBox::Check(size_t uiIndex, bool bCheck)
68 {
69 // TODO
70 }
71
72