Applied [ 745533 ] implemented wxNotebook::DoGetBestSize

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-06-01 13:13:03 +00:00
parent 4611305399
commit 2ce7af354a
9 changed files with 59 additions and 30 deletions

View File

@@ -85,7 +85,7 @@ public:
virtual void SetTabSize(const wxSize& sz);
// calculate size for wxNotebookSizer
wxSize CalcSizeFromPage(const wxSize& sizePage);
wxSize CalcSizeFromPage(const wxSize& sizePage) const;
/*
// get number of pages in the dialog

View File

@@ -103,6 +103,9 @@ public:
// style.
void SetTabSize(const wxSize& sz);
// calculate the size of the notebook from the size of its page
virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
// callbacks
// ---------
void OnSize(wxSizeEvent& event);

View File

@@ -107,7 +107,7 @@ public:
virtual void SetTabSize(const wxSize& sz) = 0;
// calculate the size of the notebook from the size of its page
virtual wxSize CalcSizeFromPage(const wxSize& sizePage);
virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
// operations
// ----------
@@ -155,6 +155,8 @@ public:
protected:
// remove the page and return a pointer to it
virtual wxNotebookPage *DoRemovePage(int page);
// return the minimum size large enough to display the largest page entirely
virtual wxSize DoGetBestSize() const;
// common part of all ctors
void Init();

View File

@@ -78,7 +78,7 @@ public:
virtual void SetPadding(const wxSize& padding);
virtual void SetTabSize(const wxSize& sz);
virtual wxSize CalcSizeFromPage(const wxSize& sizePage);
virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
virtual bool DeleteAllPages();