]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/listbox.mm
Regenerated by tmake: added all the cocoa source files
[wxWidgets.git] / src / cocoa / listbox.mm
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/listbox.mm
3 // Purpose: wxListBox
4 // Author: David Elliott
5 // Modified by:
6 // Created: 2003/03/18
7 // RCS-ID: $Id:
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/app.h"
13 #include "wx/listbox.h"
14 #include "wx/log.h"
15
16 IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
17 BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase)
18 END_EVENT_TABLE()
19 // WX_IMPLEMENT_COCOA_OWNER(wxListBox,NSButton,NSControl,NSView)
20
21 bool wxListBox::Create(wxWindow *parent, wxWindowID winid,
22 const wxPoint& pos,
23 const wxSize& size,
24 int n, const wxString choices[],
25 long style,
26 const wxValidator& validator,
27 const wxString& name)
28 {
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
30 return false;
31
32 if(m_parent)
33 m_parent->CocoaAddChild(this);
34 return true;
35 }
36
37 wxListBox::~wxListBox()
38 {
39 CocoaRemoveFromParent();
40 }
41
42 // pure virtuals from wxListBoxBase
43 bool wxListBox::IsSelected(int n) const
44 {
45 return false;
46 }
47
48 void wxListBox::SetSelection(int n, bool select)
49 {
50 }
51
52 int wxListBox::GetSelections(wxArrayInt& aSelections) const
53 {
54 return 0;
55 }
56
57 void wxListBox::DoInsertItems(const wxArrayString& items, int pos)
58 {
59 }
60
61 void wxListBox::DoSetItems(const wxArrayString& items, void **clientData)
62 {
63 }
64
65 void wxListBox::DoSetFirstItem(int n)
66 {
67 }
68
69
70 // pure virtuals from wxItemContainer
71 // deleting items
72 void wxListBox::Clear()
73 {
74 }
75
76 void wxListBox::Delete(int n)
77 {
78 }
79
80 // accessing strings
81 int wxListBox::GetCount() const
82 {
83 return 0;
84 }
85
86 wxString wxListBox::GetString(int n) const
87 {
88 return wxEmptyString;
89 }
90
91 void wxListBox::SetString(int n, const wxString& s)
92 {
93 }
94
95 int wxListBox::FindString(const wxString& s) const
96 {
97 return 0;
98 }
99
100 // selection
101 void wxListBox::Select(int n)
102 {
103 }
104
105 int wxListBox::GetSelection() const
106 {
107 return 0;
108 }
109
110 int wxListBox::DoAppend(const wxString& item)
111 {
112 return 0;
113 }
114
115 void wxListBox::DoSetItemClientData(int n, void* clientData)
116 {
117 }
118
119 void* wxListBox::DoGetItemClientData(int n) const
120 {
121 return NULL;
122 }
123
124 void wxListBox::DoSetItemClientObject(int n, wxClientData* clientData)
125 {
126 }
127
128 wxClientData* wxListBox::DoGetItemClientObject(int n) const
129 {
130 return NULL;
131 }
132