]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/tabctrl.cpp
applied Otto Wyss' patch to extend wxHelpController::KeywordSearch with mode argument...
[wxWidgets.git] / src / mac / carbon / tabctrl.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: tabctrl.cpp
3// Purpose: wxTabCtrl
a31a5f85 4// Author: Stefan Csomor
e9576ca5 5// Modified by:
a31a5f85 6// Created: 1998-01-01
e9576ca5 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
e40298d5 9// Licence: wxWindows licence
e9576ca5
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "tabctrl.h"
14#endif
15
d8c736e5
GD
16#include "wx/defs.h"
17
e9576ca5
SC
18#include "wx/control.h"
19#include "wx/tabctrl.h"
519cb848 20#include "wx/mac/uma.h"
e9576ca5 21
2f1ae414 22#if !USE_SHARED_LIBRARY
e9576ca5
SC
23IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
24
25BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)
26END_EVENT_TABLE()
2f1ae414 27#endif
e9576ca5
SC
28
29wxTabCtrl::wxTabCtrl()
30{
31 m_imageList = NULL;
32}
33
34bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
35 long style, const wxString& name)
36{
b45ed7a2
VZ
37 if ( !wxControl::Create(parent, id, pos, size,
38 style, wxDefaultValidator, name) )
39 return false;
40
e40298d5
JS
41 Rect bounds ;
42 Str255 title ;
43
44 m_imageList = NULL;
45
427ff662 46 MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
e40298d5
JS
47
48 m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
49 kControlTabSmallProc , (long) this ) ;
50
51 MacPostControlCreate() ;
52 return TRUE ;
e9576ca5
SC
53}
54
55wxTabCtrl::~wxTabCtrl()
56{
57}
58
59void wxTabCtrl::Command(wxCommandEvent& event)
60{
61}
62
63// Delete all items
64bool wxTabCtrl::DeleteAllItems()
65{
66 // TODO
67 return FALSE;
68}
69
70// Delete an item
71bool wxTabCtrl::DeleteItem(int item)
72{
73 // TODO
74 return FALSE;
75}
76
77// Get the selection
78int wxTabCtrl::GetSelection() const
79{
80 // TODO
81 return 0;
82}
83
84// Get the tab with the current keyboard focus
85int wxTabCtrl::GetCurFocus() const
86{
87 // TODO
88 return 0;
89}
90
91// Get the associated image list
92wxImageList* wxTabCtrl::GetImageList() const
93{
94 return m_imageList;
95}
96
97// Get the number of items
98int wxTabCtrl::GetItemCount() const
99{
100 // TODO
101 return 0;
102}
103
104// Get the rect corresponding to the tab
105bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const
106{
107 // TODO
108 return FALSE;
109}
110
111// Get the number of rows
112int wxTabCtrl::GetRowCount() const
113{
114 // TODO
115 return 0;
116}
117
118// Get the item text
119wxString wxTabCtrl::GetItemText(int item) const
120{
121 // TODO
427ff662 122 return wxEmptyString;
e9576ca5
SC
123}
124
125// Get the item image
126int wxTabCtrl::GetItemImage(int item) const
127{
128 // TODO
129 return 0;
130}
131
132// Get the item data
133void* wxTabCtrl::GetItemData(int item) const
134{
135 // TODO
136 return NULL;
137}
138
139// Hit test
140int wxTabCtrl::HitTest(const wxPoint& pt, long& flags)
141{
142 // TODO
143 return 0;
144}
145
146// Insert an item
147bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data)
148{
149 // TODO
150 return FALSE;
151}
152
153// Set the selection
154int wxTabCtrl::SetSelection(int item)
155{
156 // TODO
157 return 0;
158}
159
160// Set the image list
161void wxTabCtrl::SetImageList(wxImageList* imageList)
162{
163 // TODO
164}
165
166// Set the text for an item
167bool wxTabCtrl::SetItemText(int item, const wxString& text)
168{
169 // TODO
170 return FALSE;
171}
172
173// Set the image for an item
174bool wxTabCtrl::SetItemImage(int item, int image)
175{
176 // TODO
177 return FALSE;
178}
179
180// Set the data for an item
181bool wxTabCtrl::SetItemData(int item, void* data)
182{
183 // TODO
184 return FALSE;
185}
186
187// Set the size for a fixed-width tab control
188void wxTabCtrl::SetItemSize(const wxSize& size)
189{
190 // TODO
191}
192
193// Set the padding between tabs
194void wxTabCtrl::SetPadding(const wxSize& padding)
195{
196 // TODO
197}
198
199// Tab event
200IMPLEMENT_DYNAMIC_CLASS(wxTabEvent, wxCommandEvent)
201
202wxTabEvent::wxTabEvent(wxEventType commandType, int id):
203 wxCommandEvent(commandType, id)
204{
205}
206