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