Old API clearly deprecated.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-01-07 20:03:22 +00:00
parent fa9666fbe6
commit 2d67974d24
10 changed files with 53 additions and 13 deletions

View File

@@ -156,4 +156,13 @@ wxControlWithItems::~wxControlWithItems()
// this destructor is required for Darwin
}
#if WXWIN_COMPATIBILITY_2_2
int wxItemContainer::Number() const
{
return GetCount();
}
#endif // WXWIN_COMPATIBILITY_2_2
#endif // wxUSE_CONTROLS

View File

@@ -47,6 +47,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent, wxEvent)
// wxProcess creation
// ----------------------------------------------------------------------------
#if WXWIN_COMPATIBILITY_2_2
wxProcess::wxProcess(wxEvtHandler *parent, bool redirect)
{
Init(parent, wxID_ANY, redirect ? wxPROCESS_REDIRECT : wxPROCESS_DEFAULT);
}
#endif // WXWIN_COMPATIBILITY_2_2
void wxProcess::Init(wxEvtHandler *parent, int id, int flags)
{
if ( parent )

View File

@@ -673,6 +673,20 @@ wxFileOffset wxStreamBase::OnSysTell() const
return wxInvalidOffset;
}
#if WXWIN_COMPATIBILITY_2_2
wxStreamError wxStreamBase::LastError() const
{
return m_lasterror;
}
size_t wxStreamBase::StreamSize() const
{
return GetSize();
}
#endif // WXWIN_COMPATIBILITY_2_2
// ----------------------------------------------------------------------------
// wxInputStream
// ----------------------------------------------------------------------------

View File

@@ -902,6 +902,15 @@ void wxScrollHelper::GetViewStart (int *x, int *y) const
*y = m_yScrollPosition;
}
#if WXWIN_COMPATIBILITY_2_2
void wxScrollHelper::ViewStart(int *x, int *y) const
{
GetViewStart( x, y );
}
#endif // WXWIN_COMPATIBILITY_2_2
void wxScrollHelper::DoCalcScrolledPosition(int x, int y, int *xx, int *yy) const
{
if ( xx )