Better backward compatibility and deprecation markup for interface deprecated in comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -229,9 +229,11 @@ public:
|
||||
bool IsSizer() const { return m_kind == Item_Sizer; }
|
||||
bool IsSpacer() const { return m_kind == Item_Spacer; }
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// Deprecated in 2.6, use {G,S}etProportion instead.
|
||||
wxDEPRECATED( void SetOption( int option ) );
|
||||
wxDEPRECATED( int GetOption() const );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
void SetProportion( int proportion )
|
||||
{ m_proportion = proportion; }
|
||||
@@ -409,9 +411,12 @@ public:
|
||||
inline wxSizerItem* PrependStretchSpacer(int prop = 1);
|
||||
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// Deprecated in 2.6 since historically it does not delete the window,
|
||||
// use Detach instead.
|
||||
wxDEPRECATED( virtual bool Remove( wxWindow *window ) );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
virtual bool Remove( wxSizer *sizer );
|
||||
virtual bool Remove( int index );
|
||||
|
||||
@@ -765,7 +770,9 @@ class WXDLLEXPORT wxBookCtrlBase;
|
||||
class WXDLLEXPORT wxBookCtrlSizer : public wxSizer
|
||||
{
|
||||
public:
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
wxDEPRECATED( wxBookCtrlSizer(wxBookCtrlBase *bookctrl) );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
wxBookCtrlBase *GetControl() const { return m_bookctrl; }
|
||||
|
||||
@@ -794,7 +801,9 @@ class WXDLLEXPORT wxNotebook;
|
||||
class WXDLLEXPORT wxNotebookSizer : public wxBookCtrlSizer
|
||||
{
|
||||
public:
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
wxDEPRECATED( wxNotebookSizer(wxNotebook *nb) );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
wxNotebook *GetNotebook() const { return (wxNotebook *)m_bookctrl; }
|
||||
|
||||
|
Reference in New Issue
Block a user