wxGTK compilation fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-08-21 12:44:52 +00:00
parent 64b090c72a
commit 789d0a3dd9
4 changed files with 22 additions and 22 deletions

View File

@@ -86,7 +86,7 @@ public:
// adds a new page to the notebook (it will be deleted ny the notebook, // adds a new page to the notebook (it will be deleted ny the notebook,
// don't delete it yourself). If bSelect, this page becomes active. // don't delete it yourself). If bSelect, this page becomes active.
// 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 position, bool InsertPage( size_t position,
wxNotebookPage *win, wxNotebookPage *win,
const wxString& strText, const wxString& strText,
bool bSelect = FALSE, bool bSelect = FALSE,

View File

@@ -86,7 +86,7 @@ public:
// adds a new page to the notebook (it will be deleted ny the notebook, // adds a new page to the notebook (it will be deleted ny the notebook,
// don't delete it yourself). If bSelect, this page becomes active. // don't delete it yourself). If bSelect, this page becomes active.
// 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 position, bool InsertPage( size_t position,
wxNotebookPage *win, wxNotebookPage *win,
const wxString& strText, const wxString& strText,
bool bSelect = FALSE, bool bSelect = FALSE,

View File

@@ -340,7 +340,7 @@ int wxNotebook::GetSelection() const
return m_selection; return m_selection;
} }
wxString wxNotebook::GetPageText( int page ) const wxString wxNotebook::GetPageText( size_t page ) const
{ {
wxCHECK_MSG( m_widget != NULL, wxT(""), wxT("invalid notebook") ); wxCHECK_MSG( m_widget != NULL, wxT(""), wxT("invalid notebook") );
@@ -351,7 +351,7 @@ wxString wxNotebook::GetPageText( int page ) const
return wxT(""); return wxT("");
} }
int wxNotebook::GetPageImage( int page ) const int wxNotebook::GetPageImage( size_t page ) const
{ {
wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") ); wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
@@ -371,11 +371,11 @@ wxGtkNotebookPage* wxNotebook::GetNotebookPage( int page ) const
return m_pagesData.Item(page)->GetData(); return m_pagesData.Item(page)->GetData();
} }
int wxNotebook::SetSelection( int page ) int wxNotebook::SetSelection( size_t page )
{ {
wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") ); wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
wxCHECK_MSG( page >= 0 && page < (int)m_pagesData.GetCount(), -1, wxT("invalid notebook index") ); wxCHECK_MSG( page < m_pagesData.GetCount(), -1, wxT("invalid notebook index") );
int selOld = GetSelection(); int selOld = GetSelection();
@@ -390,7 +390,7 @@ int wxNotebook::SetSelection( int page )
return selOld; return selOld;
} }
bool wxNotebook::SetPageText( int page, const wxString &text ) bool wxNotebook::SetPageText( size_t page, const wxString &text )
{ {
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") ); wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") );
@@ -405,7 +405,7 @@ bool wxNotebook::SetPageText( int page, const wxString &text )
return TRUE; return TRUE;
} }
bool wxNotebook::SetPageImage( int page, int image ) bool wxNotebook::SetPageImage( size_t page, int image )
{ {
/* HvdH 28-12-98: now it works, but it's a bit of a kludge */ /* HvdH 28-12-98: now it works, but it's a bit of a kludge */
@@ -539,7 +539,7 @@ bool wxNotebook::DeleteAllPages()
return wxNotebookBase::DeleteAllPages(); return wxNotebookBase::DeleteAllPages();
} }
bool wxNotebook::DeletePage( int page ) bool wxNotebook::DeletePage( size_t page )
{ {
// GTK sets GtkNotebook.cur_page to NULL before sending the switch page // GTK sets GtkNotebook.cur_page to NULL before sending the switch page
// event so we have to store the selection internally // event so we have to store the selection internally
@@ -557,7 +557,7 @@ bool wxNotebook::DeletePage( int page )
return wxNotebookBase::DeletePage(page); return wxNotebookBase::DeletePage(page);
} }
wxNotebookPage *wxNotebook::DoRemovePage( int page ) wxNotebookPage *wxNotebook::DoRemovePage( size_t page )
{ {
wxNotebookPage *client = wxNotebookBase::DoRemovePage(page); wxNotebookPage *client = wxNotebookBase::DoRemovePage(page);
if ( !client ) if ( !client )
@@ -576,7 +576,7 @@ wxNotebookPage *wxNotebook::DoRemovePage( int page )
return client; return client;
} }
bool wxNotebook::InsertPage( int position, bool wxNotebook::InsertPage( size_t position,
wxNotebookPage* win, wxNotebookPage* win,
const wxString& text, const wxString& text,
bool select, bool select,
@@ -587,7 +587,7 @@ bool wxNotebook::InsertPage( int position,
wxCHECK_MSG( win->GetParent() == this, FALSE, wxCHECK_MSG( win->GetParent() == this, FALSE,
wxT("Can't add a page whose parent is not the notebook!") ); wxT("Can't add a page whose parent is not the notebook!") );
wxCHECK_MSG( position >= 0 && position <= GetPageCount(), FALSE, wxCHECK_MSG( position <= GetPageCount(), FALSE,
_T("invalid page index in wxNotebookPage::InsertPage()") ); _T("invalid page index in wxNotebookPage::InsertPage()") );
/* don't receive switch page during addition */ /* don't receive switch page during addition */

View File

@@ -340,7 +340,7 @@ int wxNotebook::GetSelection() const
return m_selection; return m_selection;
} }
wxString wxNotebook::GetPageText( int page ) const wxString wxNotebook::GetPageText( size_t page ) const
{ {
wxCHECK_MSG( m_widget != NULL, wxT(""), wxT("invalid notebook") ); wxCHECK_MSG( m_widget != NULL, wxT(""), wxT("invalid notebook") );
@@ -351,7 +351,7 @@ wxString wxNotebook::GetPageText( int page ) const
return wxT(""); return wxT("");
} }
int wxNotebook::GetPageImage( int page ) const int wxNotebook::GetPageImage( size_t page ) const
{ {
wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") ); wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
@@ -371,11 +371,11 @@ wxGtkNotebookPage* wxNotebook::GetNotebookPage( int page ) const
return m_pagesData.Item(page)->GetData(); return m_pagesData.Item(page)->GetData();
} }
int wxNotebook::SetSelection( int page ) int wxNotebook::SetSelection( size_t page )
{ {
wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") ); wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
wxCHECK_MSG( page >= 0 && page < (int)m_pagesData.GetCount(), -1, wxT("invalid notebook index") ); wxCHECK_MSG( page < m_pagesData.GetCount(), -1, wxT("invalid notebook index") );
int selOld = GetSelection(); int selOld = GetSelection();
@@ -390,7 +390,7 @@ int wxNotebook::SetSelection( int page )
return selOld; return selOld;
} }
bool wxNotebook::SetPageText( int page, const wxString &text ) bool wxNotebook::SetPageText( size_t page, const wxString &text )
{ {
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") ); wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") );
@@ -405,7 +405,7 @@ bool wxNotebook::SetPageText( int page, const wxString &text )
return TRUE; return TRUE;
} }
bool wxNotebook::SetPageImage( int page, int image ) bool wxNotebook::SetPageImage( size_t page, int image )
{ {
/* HvdH 28-12-98: now it works, but it's a bit of a kludge */ /* HvdH 28-12-98: now it works, but it's a bit of a kludge */
@@ -539,7 +539,7 @@ bool wxNotebook::DeleteAllPages()
return wxNotebookBase::DeleteAllPages(); return wxNotebookBase::DeleteAllPages();
} }
bool wxNotebook::DeletePage( int page ) bool wxNotebook::DeletePage( size_t page )
{ {
// GTK sets GtkNotebook.cur_page to NULL before sending the switch page // GTK sets GtkNotebook.cur_page to NULL before sending the switch page
// event so we have to store the selection internally // event so we have to store the selection internally
@@ -557,7 +557,7 @@ bool wxNotebook::DeletePage( int page )
return wxNotebookBase::DeletePage(page); return wxNotebookBase::DeletePage(page);
} }
wxNotebookPage *wxNotebook::DoRemovePage( int page ) wxNotebookPage *wxNotebook::DoRemovePage( size_t page )
{ {
wxNotebookPage *client = wxNotebookBase::DoRemovePage(page); wxNotebookPage *client = wxNotebookBase::DoRemovePage(page);
if ( !client ) if ( !client )
@@ -576,7 +576,7 @@ wxNotebookPage *wxNotebook::DoRemovePage( int page )
return client; return client;
} }
bool wxNotebook::InsertPage( int position, bool wxNotebook::InsertPage( size_t position,
wxNotebookPage* win, wxNotebookPage* win,
const wxString& text, const wxString& text,
bool select, bool select,
@@ -587,7 +587,7 @@ bool wxNotebook::InsertPage( int position,
wxCHECK_MSG( win->GetParent() == this, FALSE, wxCHECK_MSG( win->GetParent() == this, FALSE,
wxT("Can't add a page whose parent is not the notebook!") ); wxT("Can't add a page whose parent is not the notebook!") );
wxCHECK_MSG( position >= 0 && position <= GetPageCount(), FALSE, wxCHECK_MSG( position <= GetPageCount(), FALSE,
_T("invalid page index in wxNotebookPage::InsertPage()") ); _T("invalid page index in wxNotebookPage::InsertPage()") );
/* don't receive switch page during addition */ /* don't receive switch page during addition */