]>
Commit | Line | Data |
---|---|---|
da0634c1 DE |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: cocoa/radiobox.mm | |
3 | // Purpose: wxRadioBox | |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2003/02/15 | |
7 | // RCS-ID: $Id: | |
8 | // Copyright: (c) 2003 David Elliott | |
9 | // Licence: wxWindows license | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #include "wx/app.h" | |
13 | #include "wx/radiobox.h" | |
14 | ||
548dd93d DE |
15 | #import <AppKit/NSView.h> |
16 | ||
da0634c1 DE |
17 | IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl) |
18 | BEGIN_EVENT_TABLE(wxRadioBox, wxControl) | |
19 | END_EVENT_TABLE() | |
20 | // WX_IMPLEMENT_COCOA_OWNER(wxRadioBox,NSTextField,NSControl,NSView) | |
21 | ||
22 | bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid, | |
23 | const wxString& title, | |
24 | const wxPoint& pos, | |
25 | const wxSize& size, | |
26 | int n, const wxString choices[], | |
27 | int majorDim, | |
28 | long style, const wxValidator& validator, | |
29 | const wxString& name) | |
30 | { | |
31 | if(!CreateControl(parent,winid,pos,size,style,validator,name)) | |
32 | return false; | |
548dd93d DE |
33 | SetNSView([[NSView alloc] initWithFrame: NSMakeRect(10,10,20,20)]); |
34 | [m_cocoaNSView release]; | |
da0634c1 DE |
35 | if(m_parent) |
36 | m_parent->CocoaAddChild(this); | |
37 | return true; | |
38 | } | |
39 | ||
40 | wxRadioBox::~wxRadioBox() | |
41 | { | |
42 | CocoaRemoveFromParent(); | |
548dd93d | 43 | SetNSView(NULL); |
da0634c1 DE |
44 | } |
45 | ||
46 | // selection | |
47 | void wxRadioBox::SetSelection(int n) | |
48 | { | |
49 | } | |
50 | ||
51 | int wxRadioBox::GetSelection() const | |
52 | { | |
53 | return 0; | |
54 | } | |
55 | ||
56 | // string access | |
57 | int wxRadioBox::GetCount() const | |
58 | { | |
59 | return 0; | |
60 | } | |
61 | ||
62 | wxString wxRadioBox::GetString(int n) const | |
63 | { | |
64 | return wxEmptyString; | |
65 | } | |
66 | ||
67 | void wxRadioBox::SetString(int n, const wxString& label) | |
68 | { | |
69 | } | |
70 | ||
71 | // change the individual radio button state | |
72 | void wxRadioBox::Enable(int n, bool enable) | |
73 | { | |
74 | } | |
75 | ||
76 | void wxRadioBox::Show(int n, bool show) | |
77 | { | |
78 | } | |
79 | ||
80 | // layout parameters | |
81 | int wxRadioBox::GetColumnCount() const | |
82 | { | |
83 | return 0; | |
84 | } | |
85 | ||
86 | int wxRadioBox::GetRowCount() const | |
87 | { | |
88 | return 0; | |
89 | } | |
90 |