]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/choice.h
Catch and forward the following mouse related events:
[wxWidgets.git] / include / wx / cocoa / choice.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/choice.h
3 // Purpose: wxChoice class
4 // Author: David Elliott
5 // Modified by:
6 // Created: 2003/03/16
7 // RCS-ID: $Id:
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __WX_COCOA_CHOICE_H__
13 #define __WX_COCOA_CHOICE_H__
14
15 //#include "wx/cocoa/NSTableView.h"
16
17 // ========================================================================
18 // wxChoice
19 // ========================================================================
20 class WXDLLEXPORT wxChoice: public wxChoiceBase //, protected wxCocoaNSTableView
21 {
22 DECLARE_DYNAMIC_CLASS(wxChoice)
23 DECLARE_EVENT_TABLE()
24 // WX_DECLARE_COCOA_OWNER(NSTableView,NSControl,NSView)
25 // ------------------------------------------------------------------------
26 // initialization
27 // ------------------------------------------------------------------------
28 public:
29 wxChoice() { }
30 wxChoice(wxWindow *parent, wxWindowID winid,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 int n = 0, const wxString choices[] = NULL,
34 long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxChoiceNameStr)
37 {
38 Create(parent, winid, pos, size, n, choices, style, validator, name);
39 }
40
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,
45 long style = 0,
46 const wxValidator& validator = wxDefaultValidator,
47 const wxString& name = wxChoiceNameStr);
48 virtual ~wxChoice();
49
50 // ------------------------------------------------------------------------
51 // Cocoa callbacks
52 // ------------------------------------------------------------------------
53 protected:
54 // ------------------------------------------------------------------------
55 // Implementation
56 // ------------------------------------------------------------------------
57 public:
58 virtual void Clear();
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 void DoSetItemClientData(int, void*);
67 virtual void* DoGetItemClientData(int) const;
68 virtual void DoSetItemClientObject(int, wxClientData*);
69 virtual wxClientData* DoGetItemClientObject(int) const;
70 virtual void SetSelection(int);
71 };
72
73 #endif // __WX_COCOA_CHOICE_H__