/////////////////////////////////////////////////////////////////////////////
-// Name: notebook.h
+// Name: wx/os2/notebook.h
// Purpose: MSW/GTK compatible notebook (a.k.a. property sheet)
// Author: David Webster
// Modified by:
// wxNotebook
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxNotebook : public wxNotebookBase
+class WXDLLIMPEXP_CORE wxNotebook : public wxNotebookBase
{
public:
//
//
// Set the currently selected page, return the index of the previously
- // selected one (or -1 on error)
+ // selected one (or wxNOT_FOUND on error)
// NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events
//
int SetSelection(size_t nPage);
- //
- // Get the currently selected page
- //
- inline int GetSelection(void) const { return m_nSelection; }
+ // changes selected page without sending events
+ int ChangeSelection(size_t nPage);
//
// Set/Get the title of a page
// ---------
//
void OnSize(wxSizeEvent& rEvent);
- void OnSelChange(wxNotebookEvent& rEvent);
+ void OnSelChange(wxBookCtrlEvent& rEvent);
void OnSetFocus(wxFocusEvent& rEvent);
void OnNavigationKey(wxNavigationKeyEvent& rEvent);
// Helper functions
//
- int m_nSelection; // The current selection (-1 if none)
-
private:
wxArrayLong m_alPageId;
int m_nTabSize; // holds the largest tab size