]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/tabctrl.cpp
fixed background colour of the automatically created disabled button bitmaps (makes...
[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 #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
33 IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
34 IMPLEMENT_DYNAMIC_CLASS(wxTabEvent, wxNotifyEvent)
35
36 DEFINE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGED)
37 DEFINE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGING)
38
39 BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)
40 END_EVENT_TABLE()
41
42 wxTabCtrl::wxTabCtrl()
43 {
44 }
45
46 bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
47 long style, const wxString& name)
48 {
49 return false;
50 }
51
52 wxTabCtrl::~wxTabCtrl()
53 {
54 }
55
56 bool wxTabCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
57 {
58 return false;
59 }
60
61 // Delete all items
62 bool wxTabCtrl::DeleteAllItems()
63 {
64 return false;
65 }
66
67 // Delete an item
68 bool wxTabCtrl::DeleteItem(int item)
69 {
70 return false;
71 }
72
73 // Get the selection
74 int wxTabCtrl::GetSelection() const
75 {
76 return 0;
77 }
78
79 // Get the tab with the current keyboard focus
80 int wxTabCtrl::GetCurFocus() const
81 {
82 return 0;
83 }
84
85 // Get the associated image list
86 wxImageList* wxTabCtrl::GetImageList() const
87 {
88 return NULL;
89 }
90
91 // Get the number of items
92 int wxTabCtrl::GetItemCount() const
93 {
94 return 0;
95 }
96
97 // Get the rect corresponding to the tab
98 bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const
99 {
100 return false;
101 }
102
103 // Get the number of rows
104 int wxTabCtrl::GetRowCount() const
105 {
106 return 0;
107 }
108
109 // Get the item text
110 wxString wxTabCtrl::GetItemText(int item) const
111 {
112 wxString str(wxEmptyString);
113
114 return str;
115 }
116
117 // Get the item image
118 int wxTabCtrl::GetItemImage(int item) const
119 {
120 return -1;
121 }
122
123 // Get the item data
124 void* wxTabCtrl::GetItemData(int item) const
125 {
126 return 0;
127 }
128
129 // Hit test
130 int wxTabCtrl::HitTest(const wxPoint& pt, long& flags)
131 {
132 return 0;
133 }
134
135 // Insert an item
136 bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data)
137 {
138 return false;
139 }
140
141 // Set the selection
142 int wxTabCtrl::SetSelection(int item)
143 {
144 return 0;
145 }
146
147 // Set the image list
148 void wxTabCtrl::SetImageList(wxImageList* imageList)
149 {
150 }
151
152 // Set the text for an item
153 bool wxTabCtrl::SetItemText(int item, const wxString& text)
154 {
155 return false;
156 }
157
158 // Set the image for an item
159 bool wxTabCtrl::SetItemImage(int item, int image)
160 {
161 return false;
162 }
163
164 // Set the data for an item
165 bool wxTabCtrl::SetItemData(int item, void* data)
166 {
167 return false;
168 }
169
170 // Set the size for a fixed-width tab control
171 void wxTabCtrl::SetItemSize(const wxSize& size)
172 {
173 }
174
175 // Set the padding between tabs
176 void wxTabCtrl::SetPadding(const wxSize& padding)
177 {
178 }
179
180
181 #endif
182 // __WIN95__
183