]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/choice.h
removed OnIdle() which didn't compile any longer
[wxWidgets.git] / include / wx / cocoa / choice.h
CommitLineData
da0634c1
DE
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// ========================================================================
20class 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// ------------------------------------------------------------------------
28public:
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// ------------------------------------------------------------------------
53protected:
54// ------------------------------------------------------------------------
55// Implementation
56// ------------------------------------------------------------------------
57public:
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&);
be657756 66 virtual int DoInsert(const wxString&, int);
da0634c1
DE
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);
72};
73
74#endif // __WX_COCOA_CHOICE_H__