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