]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/listbox.mm
fix Alt-letter navigation with spin controls (bug 672974)
[wxWidgets.git] / src / cocoa / listbox.mm
CommitLineData
812edc25
DE
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
16IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
17BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase)
18END_EVENT_TABLE()
19// WX_IMPLEMENT_COCOA_OWNER(wxListBox,NSButton,NSControl,NSView)
20
21bool 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
37wxListBox::~wxListBox()
38{
39 CocoaRemoveFromParent();
40}
41
42// pure virtuals from wxListBoxBase
43bool wxListBox::IsSelected(int n) const
44{
45 return false;
46}
47
48void wxListBox::SetSelection(int n, bool select)
49{
50}
51
52int wxListBox::GetSelections(wxArrayInt& aSelections) const
53{
54 return 0;
55}
56
57void wxListBox::DoInsertItems(const wxArrayString& items, int pos)
58{
59}
60
61void wxListBox::DoSetItems(const wxArrayString& items, void **clientData)
62{
63}
64
65void wxListBox::DoSetFirstItem(int n)
66{
67}
68
69
70// pure virtuals from wxItemContainer
71 // deleting items
72void wxListBox::Clear()
73{
74}
75
76void wxListBox::Delete(int n)
77{
78}
79
80 // accessing strings
81int wxListBox::GetCount() const
82{
83 return 0;
84}
85
86wxString wxListBox::GetString(int n) const
87{
88 return wxEmptyString;
89}
90
91void wxListBox::SetString(int n, const wxString& s)
92{
93}
94
95int wxListBox::FindString(const wxString& s) const
96{
97 return 0;
98}
99
100 // selection
101void wxListBox::Select(int n)
102{
103}
104
105int wxListBox::GetSelection() const
106{
107 return 0;
108}
109
110int wxListBox::DoAppend(const wxString& item)
111{
112 return 0;
113}
114
115void wxListBox::DoSetItemClientData(int n, void* clientData)
116{
117}
118
119void* wxListBox::DoGetItemClientData(int n) const
120{
121 return NULL;
122}
123
124void wxListBox::DoSetItemClientObject(int n, wxClientData* clientData)
125{
126}
127
128wxClientData* wxListBox::DoGetItemClientObject(int n) const
129{
130 return NULL;
131}
132