deprecated wxBookCtrlSizer and wxNotebookSizer, they are no longer needed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-06-24 11:58:06 +00:00
parent 19b44116d5
commit adbf2d732f
9 changed files with 45 additions and 31 deletions

View File

@@ -518,6 +518,11 @@ private:
#endif // wxUSE_STATBOX
#if WXWIN_COMPATIBILITY_2_4
// NB: wxBookCtrlSizer and wxNotebookSizer are deprecated, they
// don't do anything. wxBookCtrl::DoGetBestSize does the job now.
// ----------------------------------------------------------------------------
// wxBookCtrlSizer
// ----------------------------------------------------------------------------
@@ -531,14 +536,18 @@ class WXDLLEXPORT wxBookCtrl;
class WXDLLEXPORT wxBookCtrlSizer : public wxSizer
{
public:
wxBookCtrlSizer(wxBookCtrl *bookctrl);
wxDEPRECATED( wxBookCtrlSizer(wxBookCtrl *bookctrl) );
wxBookCtrl *GetControl() const { return m_bookctrl; }
virtual void RecalcSizes();
virtual wxSize CalcMin();
wxBookCtrl *GetControl() const { return m_bookctrl; }
protected:
// this protected ctor lets us mark the real one above as deprecated
// and still has warning-free build of the library itself:
wxBookCtrlSizer() {}
wxBookCtrl *m_bookctrl;
private:
@@ -556,7 +565,7 @@ class WXDLLEXPORT wxNotebook;
class WXDLLEXPORT wxNotebookSizer : public wxBookCtrlSizer
{
public:
wxNotebookSizer(wxNotebook *nb);
wxDEPRECATED( wxNotebookSizer(wxNotebook *nb) );
wxNotebook *GetNotebook() const { return (wxNotebook *)m_bookctrl; }
@@ -569,5 +578,8 @@ private:
#endif // wxUSE_BOOKCTRL
#endif // WXWIN_COMPATIBILITY_2_4
#endif // __WXSIZER_H__