]> git.saurik.com Git - wxWidgets.git/blame - src/osx/tabctrl_osx.cpp
Update OpenVMS compile support
[wxWidgets.git] / src / osx / tabctrl_osx.cpp
CommitLineData
e53b3d16
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/osx/tabctrl_osx.cpp
3// Purpose: wxTabCtrl
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id: tabctrl.cpp 54129 2008-06-11 19:30:52Z SC $
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/wxprec.h"
13
14#if wxUSE_TAB_DIALOG
15
16#include "wx/tabctrl.h"
17
18#ifndef WX_PRECOMP
19 #include "wx/control.h"
20#endif
21
22#include "wx/osx/private.h"
23
24IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
25IMPLEMENT_DYNAMIC_CLASS(wxTabEvent, wxNotifyEvent)
26
27// this control has been superseeded by the native wxNotebook implementation, but
28// we leave the skeleton here, just in case it might become useful ...
29
30DEFINE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGED)
31DEFINE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGING)
32
33
34BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)
35END_EVENT_TABLE()
36
37
38wxTabCtrl::wxTabCtrl()
39{
40 m_macIsUserPane = false;
41 m_imageList = NULL;
42}
43
44bool wxTabCtrl::Create( wxWindow *parent,
45 wxWindowID id, const wxPoint& pos, const wxSize& size,
46 long style, const wxString& name )
47{
48 m_macIsUserPane = false;
49 m_imageList = NULL;
50
51 if ( !wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ) )
52 return false;
53
54 m_peer = wxWidgetImpl::CreateTabView( this, parent, id, pos, size, style, GetExtraStyle );
55
56 MacPostControlCreate( pos, size );
57
58 return true;
59}
60
61wxTabCtrl::~wxTabCtrl()
62{
63}
64
65void wxTabCtrl::Command(wxCommandEvent& event)
66{
67}
68
69bool wxTabCtrl::DeleteAllItems()
70{
71 // TODO:
72 return false;
73}
74
75bool wxTabCtrl::DeleteItem(int item)
76{
77 // TODO:
78 return false;
79}
80
81int wxTabCtrl::GetSelection() const
82{
83 // TODO:
84 return 0;
85}
86
87// Get the tab with the current keyboard focus
88//
89int wxTabCtrl::GetCurFocus() const
90{
91 // TODO:
92 return 0;
93}
94
95wxImageList * wxTabCtrl::GetImageList() const
96{
97 return m_imageList;
98}
99
100int wxTabCtrl::GetItemCount() const
101{
102 // TODO:
103 return 0;
104}
105
106// Get the rect corresponding to the tab
107bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const
108{
109 // TODO:
110 return false;
111}
112
113int wxTabCtrl::GetRowCount() const
114{
115 // TODO:
116 return 0;
117}
118
119wxString wxTabCtrl::GetItemText(int item) const
120{
121 // TODO:
122 return wxEmptyString;
123}
124
125int wxTabCtrl::GetItemImage(int item) const
126{
127 // TODO:
128 return 0;
129}
130
131void* wxTabCtrl::GetItemData(int item) const
132{
133 // TODO:
134 return NULL;
135}
136
137int wxTabCtrl::HitTest(const wxPoint& pt, long& flags)
138{
139 // TODO:
140 return 0;
141}
142
143bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data)
144{
145 // TODO:
146 return false;
147}
148
149int wxTabCtrl::SetSelection(int item)
150{
151 // TODO:
152 return 0;
153}
154
155void wxTabCtrl::SetImageList(wxImageList* imageList)
156{
157 // TODO:
158}
159
160bool wxTabCtrl::SetItemText(int item, const wxString& text)
161{
162 // TODO:
163 return false;
164}
165
166bool wxTabCtrl::SetItemImage(int item, int image)
167{
168 // TODO:
169 return false;
170}
171
172bool wxTabCtrl::SetItemData(int item, void* data)
173{
174 // TODO:
175 return false;
176}
177
178// Set the size for a fixed-width tab control
179void wxTabCtrl::SetItemSize(const wxSize& size)
180{
181 // TODO:
182}
183
184// Set the padding between tabs
185void wxTabCtrl::SetPadding(const wxSize& padding)
186{
187 // TODO:
188}
189
190#endif // wxUSE_TAB_DIALOG