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