]> git.saurik.com Git - wxWidgets.git/blame - src/mac/classic/tabctrl.cpp
Build fix after wxColourBase introduction.
[wxWidgets.git] / src / mac / classic / tabctrl.cpp
CommitLineData
2646f485 1/////////////////////////////////////////////////////////////////////////////
18f3decb 2// Name: src/mac/classic/tabctrl.cpp
2646f485
SC
3// Purpose: wxTabCtrl
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
18f3decb 9// Licence: wxWindows licence
2646f485
SC
10/////////////////////////////////////////////////////////////////////////////
11
18f3decb
WS
12#include "wx/wxprec.h"
13
14#ifdef __BORLANDC__
15 #pragma hdrstop
16#endif
2646f485 17
db6d3918
VZ
18#if wxUSE_TAB_DIALOG
19
2646f485
SC
20#include "wx/control.h"
21#include "wx/tabctrl.h"
22#include "wx/mac/uma.h"
23
2646f485
SC
24IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
25
26BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)
27END_EVENT_TABLE()
2646f485
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{
37 if ( !wxControl::Create(parent, id, pos, size,
38 style, wxDefaultValidator, name) )
39 return false;
40
41 Rect bounds ;
42 Str255 title ;
18f3decb 43
2646f485 44 m_imageList = NULL;
18f3decb 45
2646f485 46 MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
18f3decb
WS
47
48 m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
2646f485 49 kControlTabSmallProc , (long) this ) ;
18f3decb 50
2646f485 51 MacPostControlCreate() ;
18f3decb 52 return true ;
2646f485
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
18f3decb 67 return false;
2646f485
SC
68}
69
70// Delete an item
71bool wxTabCtrl::DeleteItem(int item)
72{
73 // TODO
18f3decb 74 return false;
2646f485
SC
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
18f3decb 108 return false;
2646f485
SC
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
122 return wxEmptyString;
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
18f3decb 150 return false;
2646f485
SC
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
18f3decb 170 return false;
2646f485
SC
171}
172
173// Set the image for an item
174bool wxTabCtrl::SetItemImage(int item, int image)
175{
176 // TODO
18f3decb 177 return false;
2646f485
SC
178}
179
180// Set the data for an item
181bool wxTabCtrl::SetItemData(int item, void* data)
182{
183 // TODO
18f3decb 184 return false;
2646f485
SC
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
db6d3918 207#endif // wxUSE_TAB_DIALOG