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