]>
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 | { | |
da0634c1 DE |
42 | } |
43 | ||
44 | // selection | |
45 | void wxRadioBox::SetSelection(int n) | |
46 | { | |
47 | } | |
48 | ||
49 | int wxRadioBox::GetSelection() const | |
50 | { | |
51 | return 0; | |
52 | } | |
53 | ||
54 | // string access | |
55 | int wxRadioBox::GetCount() const | |
56 | { | |
57 | return 0; | |
58 | } | |
59 | ||
60 | wxString wxRadioBox::GetString(int n) const | |
61 | { | |
62 | return wxEmptyString; | |
63 | } | |
64 | ||
65 | void wxRadioBox::SetString(int n, const wxString& label) | |
66 | { | |
67 | } | |
68 | ||
69 | // change the individual radio button state | |
70 | void wxRadioBox::Enable(int n, bool enable) | |
71 | { | |
72 | } | |
73 | ||
74 | void wxRadioBox::Show(int n, bool show) | |
75 | { | |
76 | } | |
77 | ||
78 | // layout parameters | |
79 | int wxRadioBox::GetColumnCount() const | |
80 | { | |
81 | return 0; | |
82 | } | |
83 | ||
84 | int wxRadioBox::GetRowCount() const | |
85 | { | |
86 | return 0; | |
87 | } | |
88 |