]> git.saurik.com Git - wxWidgets.git/blob - src/osx/tabctrl_osx.cpp
Update OpenVMS compile support
[wxWidgets.git] / src / osx / tabctrl_osx.cpp
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
24 IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
25 IMPLEMENT_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
30 DEFINE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGED)
31 DEFINE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGING)
32
33
34 BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)
35 END_EVENT_TABLE()
36
37
38 wxTabCtrl::wxTabCtrl()
39 {
40 m_macIsUserPane = false;
41 m_imageList = NULL;
42 }
43
44 bool 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
61 wxTabCtrl::~wxTabCtrl()
62 {
63 }
64
65 void wxTabCtrl::Command(wxCommandEvent& event)
66 {
67 }
68
69 bool wxTabCtrl::DeleteAllItems()
70 {
71 // TODO:
72 return false;
73 }
74
75 bool wxTabCtrl::DeleteItem(int item)
76 {
77 // TODO:
78 return false;
79 }
80
81 int wxTabCtrl::GetSelection() const
82 {
83 // TODO:
84 return 0;
85 }
86
87 // Get the tab with the current keyboard focus
88 //
89 int wxTabCtrl::GetCurFocus() const
90 {
91 // TODO:
92 return 0;
93 }
94
95 wxImageList * wxTabCtrl::GetImageList() const
96 {
97 return m_imageList;
98 }
99
100 int wxTabCtrl::GetItemCount() const
101 {
102 // TODO:
103 return 0;
104 }
105
106 // Get the rect corresponding to the tab
107 bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const
108 {
109 // TODO:
110 return false;
111 }
112
113 int wxTabCtrl::GetRowCount() const
114 {
115 // TODO:
116 return 0;
117 }
118
119 wxString wxTabCtrl::GetItemText(int item) const
120 {
121 // TODO:
122 return wxEmptyString;
123 }
124
125 int wxTabCtrl::GetItemImage(int item) const
126 {
127 // TODO:
128 return 0;
129 }
130
131 void* wxTabCtrl::GetItemData(int item) const
132 {
133 // TODO:
134 return NULL;
135 }
136
137 int wxTabCtrl::HitTest(const wxPoint& pt, long& flags)
138 {
139 // TODO:
140 return 0;
141 }
142
143 bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data)
144 {
145 // TODO:
146 return false;
147 }
148
149 int wxTabCtrl::SetSelection(int item)
150 {
151 // TODO:
152 return 0;
153 }
154
155 void wxTabCtrl::SetImageList(wxImageList* imageList)
156 {
157 // TODO:
158 }
159
160 bool wxTabCtrl::SetItemText(int item, const wxString& text)
161 {
162 // TODO:
163 return false;
164 }
165
166 bool wxTabCtrl::SetItemImage(int item, int image)
167 {
168 // TODO:
169 return false;
170 }
171
172 bool wxTabCtrl::SetItemData(int item, void* data)
173 {
174 // TODO:
175 return false;
176 }
177
178 // Set the size for a fixed-width tab control
179 void wxTabCtrl::SetItemSize(const wxSize& size)
180 {
181 // TODO:
182 }
183
184 // Set the padding between tabs
185 void wxTabCtrl::SetPadding(const wxSize& padding)
186 {
187 // TODO:
188 }
189
190 #endif // wxUSE_TAB_DIALOG