Lines Matching defs:notebook
2 // Name: src/gtk/notebook.cpp
5 // Id: $Id: notebook.cpp 55094 2008-08-15 04:52:13Z PC $
15 #include "wx/notebook.h"
186 wxNotebook *notebook )
190 if (!notebook->m_hasVMT) return FALSE;
197 int nMax = notebook->GetPageCount();
200 int nSel = notebook->GetSelection();
208 else // notebook is empty, no next page
221 int sel = notebook->GetSelection();
224 wxGtkNotebookPage *nb_page = notebook->GetNotebookPage(sel);
228 event.SetEventObject( notebook );
231 /* CTRL-TAB changes the (parent) window, i.e. switch notebook page */
234 event.SetCurrentFocus( notebook );
236 wxNotebookPage *client = notebook->GetPage(sel);
255 // Hack Alert! (Part I): This sets the notebook as the parent of the child
362 wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
369 wxCHECK_MSG( m_widget != NULL, wxEmptyString, wxT("invalid notebook") );
380 wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
391 wxCHECK_MSG( m_widget != NULL, (wxGtkNotebookPage*) NULL, wxT("invalid notebook") );
393 wxCHECK_MSG( page < (int)m_pagesData.GetCount(), (wxGtkNotebookPage*) NULL, wxT("invalid notebook index") );
400 wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
402 wxCHECK_MSG( page < m_pagesData.GetCount(), -1, wxT("invalid notebook index") );
427 wxCHECK_MSG( m_widget != NULL, false, wxT("invalid notebook") );
526 wxCHECK_RET( m_widget != NULL, wxT("invalid notebook") );
558 wxCHECK_MSG( m_widget != NULL, false, wxT("invalid notebook") );
572 // signal before it has removed the notebook-page from its
604 wxCHECK_MSG( m_widget != NULL, false, wxT("invalid notebook") );
607 wxT("Can't add a page whose parent is not the notebook!") );
622 GtkNotebook *notebook = GTK_NOTEBOOK(m_widget);
647 gtk_notebook_insert_page(notebook, win->m_widget, nb_page->m_box, position);
649 nb_page->m_page = gtk_notebook_get_nth_page(notebook, position);
686 // is the child of the notebook whose position and border size are passed as
707 GtkNotebook * notebook = GTK_NOTEBOOK(m_widget);
708 if (gtk_notebook_get_scrollable(notebook))
709 i = g_list_position( notebook->children, notebook->first_tab );
762 // rect origin is in notebook's parent coordinates
765 // adjust it to the notebook's coordinates