X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..a9e8bf2dd9bccb38eb39fba955125aaf23d6f500:/include/wx/generic/notebook.h diff --git a/include/wx/generic/notebook.h b/include/wx/generic/notebook.h index bbaa7444f3..f95ca0e394 100644 --- a/include/wx/generic/notebook.h +++ b/include/wx/generic/notebook.h @@ -5,16 +5,12 @@ // Modified by: // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_NOTEBOOK_H_ #define _WX_NOTEBOOK_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "notebook.h" -#endif - // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- @@ -34,7 +30,7 @@ class WXDLLEXPORT wxTabView; // wxNotebook // ---------------------------------------------------------------------------- -class wxNotebook : public wxNotebookBase +class WXDLLIMPEXP_CORE wxNotebook : public wxNotebookBase { public: // ctors @@ -47,14 +43,14 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = wxT("notebook")); + const wxString& name = wxNotebookNameStr); // Create() function bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = wxT("notebook")); + const wxString& name = wxNotebookNameStr); // dtor ~wxNotebook(); @@ -68,7 +64,7 @@ public: // NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events int SetSelection(size_t nPage); // cycle thru the tabs - // void AdvanceSelection(bool bForward = TRUE); + // void AdvanceSelection(bool bForward = true); // get the currently selected page int GetSelection() const { return m_nSelection; } @@ -109,7 +105,7 @@ public: bool InsertPage(size_t nPage, wxNotebookPage *pPage, const wxString& strText, - bool bSelect = FALSE, + bool bSelect = false, int imageId = -1); // callbacks @@ -123,9 +119,11 @@ public: // base class virtuals // ------------------- virtual void Command(wxCommandEvent& event); - virtual void SetConstraintSizes(bool recurse = TRUE); + virtual void SetConstraintSizes(bool recurse = true); virtual bool DoPhase(int nPhase); + virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const; + // Implementation // wxNotebook on Motif uses a generic wxTabView to implement itself. @@ -139,7 +137,7 @@ public: // Implementation: calculate the layout of the view rect // and resize the children if required - bool RefreshLayout(bool force = TRUE); + bool RefreshLayout(bool force = true); protected: // common part of all ctors