X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e837615b95205297821dc0b85791ad9e0055df6..cba4e486a4f8ab05674bac6ed8c6bfa58ab25131:/include/wx/osx/notebook.h diff --git a/include/wx/osx/notebook.h b/include/wx/osx/notebook.h index 04adb74a1a..1affba34a9 100644 --- a/include/wx/osx/notebook.h +++ b/include/wx/osx/notebook.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: notebook.h +// Name: wx/osx/notebook.h // Purpose: MSW/GTK compatible notebook (a.k.a. property sheet) // Author: Stefan Csomor // Modified by: @@ -34,14 +34,15 @@ public: // ctors // ----- // default for dynamic class - wxNotebook(); + wxNotebook() { } // the same arguments as for wxControl (@@@ any special styles?) wxNotebook(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = wxNotebookNameStr); + const wxString& name = wxNotebookNameStr) + { Create( parent, id, pos, size, style, name ); } // Create() function bool Create(wxWindow *parent, wxWindowID id, @@ -58,8 +59,6 @@ public: // selected one (or wxNOT_FOUND on error) // NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events int SetSelection(size_t nPage) { return DoSetSelection(nPage, SetSelection_SendEvent); } - // get the currently selected page - int GetSelection() const { return m_nSelection; } // changes selected page without sending events int ChangeSelection(size_t nPage) { return DoSetSelection(nPage); } @@ -96,7 +95,7 @@ public: wxNotebookPage *pPage, const wxString& strText, bool bSelect = false, - int imageId = -1); + int imageId = NO_IMAGE); // callbacks // --------- @@ -135,8 +134,6 @@ protected: // the icon indices wxArrayInt m_images; - int m_nSelection; // the current selection (-1 if none) - DECLARE_DYNAMIC_CLASS(wxNotebook) DECLARE_EVENT_TABLE() };