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