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