]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/radiobox.mm
Fixed some fields in the file header
[wxWidgets.git] / src / cocoa / radiobox.mm
CommitLineData
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
17IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
18BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
19END_EVENT_TABLE()
20// WX_IMPLEMENT_COCOA_OWNER(wxRadioBox,NSTextField,NSControl,NSView)
21
22bool 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
40wxRadioBox::~wxRadioBox()
41{
42 CocoaRemoveFromParent();
548dd93d 43 SetNSView(NULL);
da0634c1
DE
44}
45
46 // selection
47void wxRadioBox::SetSelection(int n)
48{
49}
50
51int wxRadioBox::GetSelection() const
52{
53 return 0;
54}
55
56 // string access
57int wxRadioBox::GetCount() const
58{
59 return 0;
60}
61
62wxString wxRadioBox::GetString(int n) const
63{
64 return wxEmptyString;
65}
66
67void wxRadioBox::SetString(int n, const wxString& label)
68{
69}
70
71 // change the individual radio button state
72void wxRadioBox::Enable(int n, bool enable)
73{
74}
75
76void wxRadioBox::Show(int n, bool show)
77{
78}
79
80 // layout parameters
81int wxRadioBox::GetColumnCount() const
82{
83 return 0;
84}
85
86int wxRadioBox::GetRowCount() const
87{
88 return 0;
89}
90