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