]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/choice.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/choice.h
3 // Purpose: wxChoice class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_CHOICE_H__
13 #define __WX_COCOA_CHOICE_H__
15 //#include "wx/cocoa/NSTableView.h"
17 // ========================================================================
19 // ========================================================================
20 class WXDLLEXPORT wxChoice
: public wxChoiceBase
//, protected wxCocoaNSTableView
22 DECLARE_DYNAMIC_CLASS(wxChoice
)
24 // WX_DECLARE_COCOA_OWNER(NSTableView,NSControl,NSView)
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 wxChoice(wxWindow
*parent
, wxWindowID winid
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 int n
= 0, const wxString choices
[] = NULL
,
35 const wxValidator
& validator
= wxDefaultValidator
,
36 const wxString
& name
= wxChoiceNameStr
)
38 Create(parent
, winid
, pos
, size
, n
, choices
, style
, validator
, name
);
41 bool Create(wxWindow
*parent
, wxWindowID winid
,
42 const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
,
44 int n
= 0, const wxString choices
[] = NULL
,
46 const wxValidator
& validator
= wxDefaultValidator
,
47 const wxString
& name
= wxChoiceNameStr
);
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
54 // ------------------------------------------------------------------------
56 // ------------------------------------------------------------------------
59 virtual void Delete(int);
60 virtual int GetCount() const;
61 virtual wxString
GetString(int) const;
62 virtual void SetString(int, const wxString
&);
63 virtual int FindString(const wxString
&) const;
64 virtual int GetSelection() const;
65 virtual int DoAppend(const wxString
&);
66 virtual int DoInsert(const wxString
&, int);
67 virtual void DoSetItemClientData(int, void*);
68 virtual void* DoGetItemClientData(int) const;
69 virtual void DoSetItemClientObject(int, wxClientData
*);
70 virtual wxClientData
* DoGetItemClientObject(int) const;
71 virtual void SetSelection(int);
74 #endif // __WX_COCOA_CHOICE_H__