]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/tabctrl.cpp
implement date events here if wxDatePickerCtrl is not used (as we need them too)
[wxWidgets.git] / src / palmos / tabctrl.cpp
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: tabctrl.cpp
3// Purpose: wxTabCtrl
4// Author: William Osborne
5// Modified by:
6// Created: 10/13/04
7// RCS-ID: $Id:
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13#pragma implementation "tabctrl.h"
14#endif
15
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#ifdef __BORLANDC__
20#pragma hdrstop
21#endif
22
23#ifndef WX_PRECOMP
24#include "wx/wx.h"
25#endif
26
27#if defined(__WIN95__)
28
29#include "wx/tabctrl.h"
30#include "wx/app.h"
31#include "wx/palmos/imaglist.h"
32
33IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
34IMPLEMENT_DYNAMIC_CLASS(wxTabEvent, wxNotifyEvent)
35
36DEFINE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGED)
37DEFINE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGING)
38
39BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)
40 EVT_SYS_COLOUR_CHANGED(wxTabCtrl::OnSysColourChanged)
41END_EVENT_TABLE()
42
43wxTabCtrl::wxTabCtrl()
44{
45}
46
47bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
48 long style, const wxString& name)
49{
50 return false;
51}
52
53wxTabCtrl::~wxTabCtrl()
54{
55}
56
57bool wxTabCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
58{
59 return false;
60}
61
62// Responds to colour changes, and passes event on to children.
63void wxTabCtrl::OnSysColourChanged(wxSysColourChangedEvent& event)
64{
65}
66
67// Delete all items
68bool wxTabCtrl::DeleteAllItems()
69{
70 return false;
71}
72
73// Delete an item
74bool wxTabCtrl::DeleteItem(int item)
75{
76 return false;
77}
78
79// Get the selection
80int wxTabCtrl::GetSelection() const
81{
82 return 0;
83}
84
85// Get the tab with the current keyboard focus
86int wxTabCtrl::GetCurFocus() const
87{
88 return 0;
89}
90
91// Get the associated image list
92wxImageList* wxTabCtrl::GetImageList() const
93{
94 return NULL;
95}
96
97// Get the number of items
98int wxTabCtrl::GetItemCount() const
99{
100 return 0;
101}
102
103// Get the rect corresponding to the tab
104bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const
105{
106 return false;
107}
108
109// Get the number of rows
110int wxTabCtrl::GetRowCount() const
111{
112 return 0;
113}
114
115// Get the item text
116wxString wxTabCtrl::GetItemText(int item) const
117{
118 wxString str(wxEmptyString);
119
120 return str;
121}
122
123// Get the item image
124int wxTabCtrl::GetItemImage(int item) const
125{
126 return -1;
127}
128
129// Get the item data
130void* wxTabCtrl::GetItemData(int item) const
131{
132 return 0;
133}
134
135// Hit test
136int wxTabCtrl::HitTest(const wxPoint& pt, long& flags)
137{
138 return 0;
139}
140
141// Insert an item
142bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data)
143{
144 return false;
145}
146
147// Set the selection
148int wxTabCtrl::SetSelection(int item)
149{
150 return 0;
151}
152
153// Set the image list
154void wxTabCtrl::SetImageList(wxImageList* imageList)
155{
156}
157
158// Set the text for an item
159bool wxTabCtrl::SetItemText(int item, const wxString& text)
160{
161 return false;
162}
163
164// Set the image for an item
165bool wxTabCtrl::SetItemImage(int item, int image)
166{
167 return false;
168}
169
170// Set the data for an item
171bool wxTabCtrl::SetItemData(int item, void* data)
172{
173 return false;
174}
175
176// Set the size for a fixed-width tab control
177void wxTabCtrl::SetItemSize(const wxSize& size)
178{
179}
180
181// Set the padding between tabs
182void wxTabCtrl::SetPadding(const wxSize& padding)
183{
184}
185
186
187#endif
188 // __WIN95__
189