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