]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/notebook.h
disabled wxMBConv(wxFONTENCODING_UTF7) test -- it doesn't work under Unix with iconv()
[wxWidgets.git] / include / wx / cocoa / notebook.h
index fb2a8153e111235fcfa040bdad9f33656ea2c343..9ff89def2885294564ff4e85c3448cc8f7a255fb 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2004/04/08
 // RCS-ID:      $Id$
 // Copyright:   (c) 2004 David Elliott
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_COCOA_NOTEBOOK_H__
@@ -31,7 +31,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 +40,7 @@ public:
             const wxPoint& pos = wxDefaultPosition,
             const wxSize& size = wxDefaultSize,
             long style = 0,
-            const wxString& name = wxNOTEBOOK_NAME);
+            const wxString& name = wxNotebookNameStr);
     virtual ~wxNotebook();
 
 // ------------------------------------------------------------------------
@@ -57,11 +57,13 @@ 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
     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,7 +96,7 @@ public:
     bool InsertPage( size_t position,
                      wxNotebookPage *win,
                      const wxString& strText,
-                     bool bSelect = FALSE,
+                     bool bSelect = false,
                      int imageId = -1 );
 
 protected: