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:
@@ -99,7 +99,7 @@ public:
|
|||||||
#if WXWIN_COMPATIBILITY_2_2
|
#if WXWIN_COMPATIBILITY_2_2
|
||||||
// compatibility - these functions are deprecated, use the new ones
|
// compatibility - these functions are deprecated, use the new ones
|
||||||
// instead
|
// instead
|
||||||
int Number() const { return GetCount(); }
|
wxDEPRECATED( int Number() const );
|
||||||
#endif // WXWIN_COMPATIBILITY_2_2
|
#endif // WXWIN_COMPATIBILITY_2_2
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -116,7 +116,7 @@ public:
|
|||||||
// macro because it's of arguable use outside of that.
|
// macro because it's of arguable use outside of that.
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_2
|
#if WXWIN_COMPATIBILITY_2_2
|
||||||
static wxPluginLibrary *GetObjectFromHandle(wxDllType handle);
|
wxDEPRECATED( static wxPluginLibrary *GetObjectFromHandle(wxDllType handle) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Instance methods.
|
// Instance methods.
|
||||||
|
@@ -107,8 +107,7 @@ public:
|
|||||||
|
|
||||||
// for backwards compatibility only, don't use
|
// for backwards compatibility only, don't use
|
||||||
#if WXWIN_COMPATIBILITY_2_2
|
#if WXWIN_COMPATIBILITY_2_2
|
||||||
wxProcess(wxEvtHandler *parent, bool redirect)
|
wxDEPRECATED( wxProcess(wxEvtHandler *parent, bool redirect) );
|
||||||
{ Init(parent, wxID_ANY, redirect ? wxPROCESS_REDIRECT : wxPROCESS_DEFAULT); }
|
|
||||||
#endif // WXWIN_COMPATIBILITY_2_2
|
#endif // WXWIN_COMPATIBILITY_2_2
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -142,7 +142,7 @@ public:
|
|||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_2
|
#if WXWIN_COMPATIBILITY_2_2
|
||||||
// Compatibility only, don't use
|
// Compatibility only, don't use
|
||||||
void ViewStart(int *x, int *y) const { GetViewStart( x, y ); }
|
wxDEPRECATED( void ViewStart(int *x, int *y) const );
|
||||||
#endif // WXWIN_COMPATIBILITY_2_2
|
#endif // WXWIN_COMPATIBILITY_2_2
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -87,8 +87,8 @@ public:
|
|||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_2
|
#if WXWIN_COMPATIBILITY_2_2
|
||||||
// deprecated, for compatibility only
|
// deprecated, for compatibility only
|
||||||
wxStreamError LastError() const { return m_lasterror; }
|
wxDEPRECATED( wxStreamError LastError() const );
|
||||||
size_t StreamSize() const { return GetSize(); }
|
wxDEPRECATED( size_t StreamSize() const );
|
||||||
#endif // WXWIN_COMPATIBILITY_2_2
|
#endif // WXWIN_COMPATIBILITY_2_2
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -221,12 +221,12 @@ public:
|
|||||||
|
|
||||||
// wxWizard should be created using "new wxWizard" now, not with Create()
|
// wxWizard should be created using "new wxWizard" now, not with Create()
|
||||||
#if WXWIN_COMPATIBILITY_2_2
|
#if WXWIN_COMPATIBILITY_2_2
|
||||||
static wxWizard *Create(wxWindow *parent,
|
wxDEPRECATED( static wxWizard *Create(wxWindow *parent,
|
||||||
int id = wxID_ANY,
|
int id = wxID_ANY,
|
||||||
const wxString& title = wxEmptyString,
|
const wxString& title = wxEmptyString,
|
||||||
const wxBitmap& bitmap = wxNullBitmap,
|
const wxBitmap& bitmap = wxNullBitmap,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize);
|
const wxSize& size = wxDefaultSize) );
|
||||||
#endif // WXWIN_COMPATIBILITY_2_2
|
#endif // WXWIN_COMPATIBILITY_2_2
|
||||||
|
|
||||||
// the methods below may be overridden by the derived classes to provide
|
// the methods below may be overridden by the derived classes to provide
|
||||||
|
@@ -156,4 +156,13 @@ wxControlWithItems::~wxControlWithItems()
|
|||||||
// this destructor is required for Darwin
|
// 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
|
#endif // wxUSE_CONTROLS
|
||||||
|
@@ -47,6 +47,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent, wxEvent)
|
|||||||
// wxProcess creation
|
// 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)
|
void wxProcess::Init(wxEvtHandler *parent, int id, int flags)
|
||||||
{
|
{
|
||||||
if ( parent )
|
if ( parent )
|
||||||
|
@@ -673,6 +673,20 @@ wxFileOffset wxStreamBase::OnSysTell() const
|
|||||||
return wxInvalidOffset;
|
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
|
// wxInputStream
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -902,6 +902,15 @@ void wxScrollHelper::GetViewStart (int *x, int *y) const
|
|||||||
*y = m_yScrollPosition;
|
*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
|
void wxScrollHelper::DoCalcScrolledPosition(int x, int y, int *xx, int *yy) const
|
||||||
{
|
{
|
||||||
if ( xx )
|
if ( xx )
|
||||||
|
Reference in New Issue
Block a user