• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/gtk1/

Lines Matching refs:notebook

2 // Name:        src/gtk1/notebook.cpp
5 // Id: $Id: notebook.cpp 50855 2007-12-20 10:51:33Z JS $
15 #include "wx/notebook.h"
95 wxNotebook *notebook )
97 // are you trying to call SetSelection() from a notebook event handler?
99 wxCHECK_RET( !notebook->m_inSwitchPage,
102 notebook->m_inSwitchPage = true;
106 int old = notebook->GetSelection();
108 if (notebook->m_skipNextPageChangeEvent)
112 notebook->m_skipNextPageChangeEvent = false;
117 notebook->m_selection = page;
121 if ( !notebook->SendPageChangingEvent(page) )
124 gtk_signal_emit_stop_by_name(GTK_OBJECT(notebook->m_widget), "switch_page");
131 notebook->m_selection = page;
133 notebook->SendPageChangedEvent(old);
137 notebook->m_inSwitchPage = FALSE;
198 static gint gtk_notebook_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_event, wxNotebook *notebook )
203 if (!notebook->m_hasVMT) return FALSE;
210 int nMax = notebook->GetPageCount();
213 int nSel = notebook->GetSelection();
221 else // notebook is empty, no next page
236 int sel = notebook->GetSelection();
239 wxGtkNotebookPage *nb_page = notebook->GetNotebookPage(sel);
243 event.SetEventObject( notebook );
246 /* CTRL-TAB changes the (parent) window, i.e. switch notebook page */
249 event.SetCurrentFocus( notebook );
251 wxNotebookPage *client = notebook->GetPage(sel);
271 // Hack Alert! (Part I): This sets the notebook as the parent of the child
372 wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
380 GtkNotebook *notebook = GTK_NOTEBOOK(m_widget);
382 gpointer cur = notebook->cur_page;
396 wxCHECK_MSG( m_widget != NULL, wxEmptyString, wxT("invalid notebook") );
407 wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
418 wxCHECK_MSG( m_widget != NULL, (wxGtkNotebookPage*) NULL, wxT("invalid notebook") );
420 wxCHECK_MSG( page < (int)m_pagesData.GetCount(), (wxGtkNotebookPage*) NULL, wxT("invalid notebook index") );
427 wxCHECK_MSG( m_widget != NULL, -1, wxT("invalid notebook") );
429 wxCHECK_MSG( page < m_pagesData.GetCount(), -1, wxT("invalid notebook index") );
459 wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") );
564 wxCHECK_RET( m_widget != NULL, wxT("invalid notebook") );
596 wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") );
647 wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") );
650 wxT("Can't add a page whose parent is not the notebook!") );
669 GtkNotebook *notebook = GTK_NOTEBOOK(m_widget);
686 gtk_notebook_insert_page( notebook, win->m_widget, nb_page->m_box, position );
688 nb_page->m_page = (GtkNotebookPage*) g_list_last(notebook->children)->data;
743 // is the child of the notebook whose position and border size are passed as
767 GtkNotebook * notebook = GTK_NOTEBOOK(m_widget);
768 if (gtk_notebook_get_scrollable(notebook));
769 i = g_list_position( notebook->children, notebook->first_tab );