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