git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23335
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// ---------
// Get number of pages in the dialog
//
// ---------
// Get number of pages in the dialog
//
- size_t GetPageCount(void) const;
+ virtual size_t GetPageCount(void) const;
//
// 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
//
//
// 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(int nPage);
+ int SetSelection(size_t nPage);
//
// Get the currently selected page
//
// Get the currently selected page
//
// Set/Get the title of a page
//
//
// Set/Get the title of a page
//
- bool SetPageText( int nPage
- ,const wxString& sStrText
- );
- wxString GetPageText(int nPage) const;
+ bool SetPageText( size_t nPage
+ ,const wxString& sStrText
+ );
+ wxString GetPageText(size_t nPage) const;
//
// Image list stuff: each page may have an image associated with it. All
//
// Image list stuff: each page may have an image associated with it. All
//
// Sets/returns item's image index in the current image list
//
//
// Sets/returns item's image index in the current image list
//
- int GetPageImage(int nPage) const;
- bool SetPageImage( int nPage
- ,int nImage
- );
+ int GetPageImage(size_t nPage) const;
+ bool SetPageImage( size_t nPage
+ ,int nImage
+ );
//
// Currently it's always 1 because wxGTK doesn't support multi-row
//
// Currently it's always 1 because wxGTK doesn't support multi-row
//
// The same as AddPage(), but adds it at the specified position
//
//
// The same as AddPage(), but adds it at the specified position
//
- bool InsertPage( int nPage
- ,wxNotebookPage* pPage
- ,const wxString& rsStrText
- ,bool bSelect = FALSE
- ,int nImageId = -1
- );
+ bool InsertPage( size_t nPage
+ ,wxNotebookPage* pPage
+ ,const wxString& rsStrText
+ ,bool bSelect = FALSE
+ ,int nImageId = -1
+ );
//
// Windows-only at present. Also, you must use the wxNB_FIXEDWIDTH
//
// Windows-only at present. Also, you must use the wxNB_FIXEDWIDTH
//
// Remove one page from the notebook, without deleting
//
//
// Remove one page from the notebook, without deleting
//
- virtual wxNotebookPage* DoRemovePage(int nPage);
+ virtual wxNotebookPage* DoRemovePage(size_t nPage);
#endif // wxUSE_NOTEBOOK
#endif // _NOTEBOOK_H
#endif // wxUSE_NOTEBOOK
#endif // _NOTEBOOK_H
// wxWindows
#ifndef WX_PRECOMP
#include "wx/app.h"
// wxWindows
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/dcclient.h"
#include "wx/string.h"
#include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/string.h"
#include "wx/settings.h"
#endif // WX_PRECOMP
} // end of wxNotebook::GetRowCount
int wxNotebook::SetSelection(
} // end of wxNotebook::GetRowCount
int wxNotebook::SetSelection(
)
{
wxCHECK_MSG( IS_VALID_PAGE(nPage), -1, wxT("notebook page out of range") );
)
{
wxCHECK_MSG( IS_VALID_PAGE(nPage), -1, wxT("notebook page out of range") );
} // end of wxNotebook::SetSelection
bool wxNotebook::SetPageText(
} // end of wxNotebook::SetSelection
bool wxNotebook::SetPageText(
, const wxString& rsStrText
)
{
, const wxString& rsStrText
)
{
} // end of wxNotebook::SetPageText
wxString wxNotebook::GetPageText (
} // end of wxNotebook::SetPageText
wxString wxNotebook::GetPageText (
) const
{
BOOKTEXT vBookText;
) const
{
BOOKTEXT vBookText;
} // end of wxNotebook::GetPageText
int wxNotebook::GetPageImage (
} // end of wxNotebook::GetPageText
int wxNotebook::GetPageImage (
) const
{
wxCHECK_MSG( IS_VALID_PAGE(nPage), -1, wxT("notebook page out of range") );
) const
{
wxCHECK_MSG( IS_VALID_PAGE(nPage), -1, wxT("notebook page out of range") );
} // end of wxNotebook::GetPageImage
bool wxNotebook::SetPageImage (
} // end of wxNotebook::GetPageImage
bool wxNotebook::SetPageImage (
// Remove one page from the notebook, without deleting
//
wxNotebookPage* wxNotebook::DoRemovePage (
// Remove one page from the notebook, without deleting
//
wxNotebookPage* wxNotebook::DoRemovePage (
)
{
wxNotebookPage* pPageRemoved = wxNotebookBase::DoRemovePage(nPage);
)
{
wxNotebookPage* pPageRemoved = wxNotebookBase::DoRemovePage(nPage);
// Same as AddPage() but does it at given position
//
bool wxNotebook::InsertPage (
// Same as AddPage() but does it at given position
//
bool wxNotebook::InsertPage (
, wxNotebookPage* pPage
, const wxString& rsStrText
, bool bSelect
, wxNotebookPage* pPage
, const wxString& rsStrText
, bool bSelect