X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/028003016290b62becb31873c38a202d6e61eec4..99c67c777b7d7a6f0ea74823bff7b9c40379b5fa:/include/wx/motif/notebook.h diff --git a/include/wx/motif/notebook.h b/include/wx/motif/notebook.h index 734d17fc05..279084b9d8 100644 --- a/include/wx/motif/notebook.h +++ b/include/wx/motif/notebook.h @@ -109,6 +109,9 @@ public: // get number of pages in the dialog int GetPageCount() const; + // Find the position of the wxNotebookPage, -1 if not found. + int FindPagePosition(wxNotebookPage* page) const; + // set the currently selected page, return the index of the previously // selected one (or -1 on error) // NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events @@ -148,8 +151,12 @@ public: // operations // ---------- - // remove one page from the notebook + // remove one page from the notebook, and delete the page. bool DeletePage(int nPage); + bool DeletePage(wxNotebookPage* page); + // remove one page from the notebook, without deleting the page. + bool RemovePage(int nPage); + bool RemovePage(wxNotebookPage* page); // remove all pages bool DeleteAllPages(); // adds a new page to the notebook (it will be deleted ny the notebook, @@ -170,6 +177,7 @@ public: // callbacks // --------- void OnSize(wxSizeEvent& event); + void OnIdle(wxIdleEvent& event); void OnSelChange(wxNotebookEvent& event); void OnSetFocus(wxFocusEvent& event); void OnNavigationKey(wxNavigationKeyEvent& event); @@ -194,6 +202,10 @@ public: virtual void ChangeForegroundColour(); virtual wxRect GetAvailableClientSize(); + // Implementation: calculate the layout of the view rect + // and resize the children if required + bool RefreshLayout(bool force = TRUE); + protected: // common part of all ctors void Init();