X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..9869c26285dc51d13607cddaa04f65ce983653a5:/include/wx/cocoa/notebook.h?ds=sidebyside diff --git a/include/wx/cocoa/notebook.h b/include/wx/cocoa/notebook.h index a252aa8e7c..0fe99e91a1 100644 --- a/include/wx/cocoa/notebook.h +++ b/include/wx/cocoa/notebook.h @@ -4,9 +4,8 @@ // Author: David Elliott // Modified by: // Created: 2004/04/08 -// RCS-ID: $Id$ // Copyright: (c) 2004 David Elliott -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_COCOA_NOTEBOOK_H__ @@ -17,7 +16,7 @@ // ======================================================================== // wxNotebook // ======================================================================== -class WXDLLEXPORT wxNotebook: public wxNotebookBase, protected wxCocoaNSTabView +class WXDLLIMPEXP_CORE wxNotebook: public wxNotebookBase, protected wxCocoaNSTabView { DECLARE_DYNAMIC_CLASS(wxNotebook) DECLARE_EVENT_TABLE() @@ -31,7 +30,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = wxNOTEBOOK_NAME) + const wxString& name = wxNotebookNameStr) { Create(parent, winid, pos, size, style, name); } @@ -40,7 +39,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = wxNOTEBOOK_NAME); + const wxString& name = wxNotebookNameStr); virtual ~wxNotebook(); // ------------------------------------------------------------------------ @@ -48,7 +47,7 @@ public: // ------------------------------------------------------------------------ protected: // Notebooks cannot be enabled/disabled - virtual void CocoaSetEnabled(bool enable) { } + virtual void CocoaSetEnabled(bool WXUNUSED(enable)) { } virtual void CocoaDelegate_tabView_didSelectTabViewItem(WX_NSTabViewItem tabviewItem); virtual bool CocoaDelegate_tabView_shouldSelectTabViewItem(WX_NSTabViewItem tabviewItem); // ------------------------------------------------------------------------ @@ -56,12 +55,14 @@ protected: // ------------------------------------------------------------------------ public: // 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 + // selected one (or wxNOT_FOUND on error) int SetSelection(size_t nPage); // get the currently selected page int GetSelection() const; + // changes selected page without sending events + int ChangeSelection(size_t nPage); + // set/get the title of a page bool SetPageText(size_t nPage, const wxString& strText); wxString GetPageText(size_t nPage) const; @@ -94,8 +95,8 @@ public: bool InsertPage( size_t position, wxNotebookPage *win, const wxString& strText, - bool bSelect = FALSE, - int imageId = -1 ); + bool bSelect = false, + int imageId = NO_IMAGE ); protected: };