Added more original works and stubs
[wxWidgets.git] / src / cocoa / radiobox.mm
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
15 IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
16 BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
17 END_EVENT_TABLE()
18 // WX_IMPLEMENT_COCOA_OWNER(wxRadioBox,NSTextField,NSControl,NSView)
19
20 bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
21             const wxString& title,
22             const wxPoint& pos,
23             const wxSize& size,
24             int n, const wxString choices[],
25             int majorDim,
26             long style, const wxValidator& validator,
27             const wxString& name)
28 {
29     if(!CreateControl(parent,winid,pos,size,style,validator,name))
30         return false;
31     m_cocoaNSView = NULL;
32     if(m_parent)
33         m_parent->CocoaAddChild(this);
34     return true;
35 }
36
37 wxRadioBox::~wxRadioBox()
38 {
39     CocoaRemoveFromParent();
40 }
41
42     // selection
43 void wxRadioBox::SetSelection(int n)
44 {
45 }
46
47 int wxRadioBox::GetSelection() const
48 {
49     return 0;
50 }
51
52     // string access
53 int wxRadioBox::GetCount() const
54 {
55     return 0;
56 }
57
58 wxString wxRadioBox::GetString(int n) const
59 {
60     return wxEmptyString;
61 }
62
63 void wxRadioBox::SetString(int n, const wxString& label)
64 {
65 }
66
67     // change the individual radio button state
68 void wxRadioBox::Enable(int n, bool enable)
69 {
70 }
71
72 void wxRadioBox::Show(int n, bool show)
73 {
74 }
75
76     // layout parameters
77 int wxRadioBox::GetColumnCount() const
78 {
79     return 0;
80 }
81
82 int wxRadioBox::GetRowCount() const
83 {
84     return 0;
85 }
86