X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/630ad6c6b620b4c24cd5b720b610b539e2770d60..43ff861df48f0837dac98005dd397c5f127ca136:/include/wx/cocoa/notebook.h diff --git a/include/wx/cocoa/notebook.h b/include/wx/cocoa/notebook.h index 5ba76c2d38..6cc8161ff0 100644 --- a/include/wx/cocoa/notebook.h +++ b/include/wx/cocoa/notebook.h @@ -17,7 +17,7 @@ // ======================================================================== // wxNotebook // ======================================================================== -class WXDLLEXPORT wxNotebook: public wxNotebookBase, protected wxCocoaNSTabView +class WXDLLIMPEXP_CORE wxNotebook: public wxNotebookBase, protected wxCocoaNSTabView { DECLARE_DYNAMIC_CLASS(wxNotebook) DECLARE_EVENT_TABLE() @@ -48,7 +48,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 +56,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;