Deprecated and obsolete parts marked up for backward compatibility.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-04-14 17:01:16 +00:00
parent 006591def7
commit 40ff126ac4
35 changed files with 167 additions and 95 deletions

View File

@@ -103,12 +103,14 @@ public:
// event.GetExtraLong())
void Command(wxCommandEvent& event);
#if WXWIN_COMPATIBILITY_2_6
// compatibility - these functions are deprecated, use the new ones
// instead
bool Selected(int n) const { return IsSelected(n); }
wxDEPRECATED( bool Selected(int n) const );
// returns the item number at a point or wxNOT_FOUND
int HitTest(const wxPoint& point) const { return DoListHitTest(point); }
wxDEPRECATED( int HitTest(const wxPoint& point) const );
#endif // WXWIN_COMPATIBILITY_2_6
protected:
// NB: due to wxGTK implementation details, DoInsert() is implemented
@@ -132,6 +134,11 @@ protected:
DECLARE_NO_COPY_CLASS(wxListBoxBase)
};
#if WXWIN_COMPATIBILITY_2_6
inline bool wxListBoxBase::Selected(int n) const { return IsSelected(n); }
inline int wxListBoxBase::HitTest(const wxPoint& point) const { return DoListHitTest(point); }
#endif // WXWIN_COMPATIBILITY_2_6
// ----------------------------------------------------------------------------
// include the platform-specific class declaration
// ----------------------------------------------------------------------------