X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34138703c3997ce676a1e713d9ff9eb020640da7..db8db70a19a52f14f284a99cafbf2f18c66372ea:/src/stubs/notebook.cpp diff --git a/src/stubs/notebook.cpp b/src/stubs/notebook.cpp index cd85a27ad7..f7ee49cd5d 100644 --- a/src/stubs/notebook.cpp +++ b/src/stubs/notebook.cpp @@ -202,6 +202,16 @@ bool wxNotebook::DeletePage(int nPage) return TRUE; } +// remove one page from the notebook, without deleting the window +bool wxNotebook::RemovePage(int nPage) +{ + wxCHECK( IS_VALID_PAGE(nPage), FALSE ); + + m_aPages.Remove(nPage); + + return TRUE; +} + // remove all pages bool wxNotebook::DeleteAllPages() { @@ -277,8 +287,8 @@ void wxNotebook::OnSize(wxSizeEvent& event) int w, h; GetSize(&w, &h); - uint nCount = m_aPages.Count(); - for ( uint nPage = 0; nPage < nCount; nPage++ ) { + unsigned int nCount = m_aPages.Count(); + for ( unsigned int nPage = 0; nPage < nCount; nPage++ ) { wxNotebookPage *pPage = m_aPages[nPage]; pPage->SetSize(0, 0, w, h); if ( pPage->GetAutoLayout() ) @@ -365,3 +375,8 @@ void wxNotebook::ChangePage(int nOldSel, int nSel) m_nSelection = nSel; } +void wxNotebook::SetTabSize(const wxSize& sz) +{ + // TODO +} +