|
Public Types |
| typedef Notebook_Helpers::PageList | PageList |
Public Methods |
| virtual | ~Notebook () |
| GtkNotebook* | gobj () |
| const GtkNotebook* | gobj () const |
| | Notebook () |
| void | prepend_page (Widget& child, Widget& tab_label) |
| | Prepends a page to notebook .
|
| void | prepend_page (Widget& child, const Glib::ustring& tab_label, bool use_mnemonic=false) |
| void | prepend_page (Widget& child, Widget& tab_label, Widget& menu_label) |
| | Prepends a page to notebook , specifying the widget to use as the label in the popup menu.
|
| void | prepend_page (Widget& child, const Glib::ustring& tab_label, const Glib::ustring& menu_label, bool use_mnemonic) |
| void | append_page (Widget& child, Widget& tab_label) |
| | Appends a page to notebook .
|
| void | append_page (Widget& child, const Glib::ustring& tab_label, bool use_mnemonic=false) |
| void | append_page (Widget& child, Widget& tab_label, Widget& menu_label) |
| | Appends a page to notebook , specifying the widget to use as the label in the popup menu.
|
| void | append_page (Widget& child, const Glib::ustring& tab_label, const Glib::ustring& menu_label, bool use_mnemonic=false) |
| void | insert_page (Widget& child, Widget& tab_label, int position) |
| | Insert a page into notebook at the given position.
|
| void | insert_page (Widget& child, const Glib::ustring& tab_label, int position, bool use_mnemonic=false) |
| void | insert_page (Widget& child, Widget& tab_label, Widget& menu_label, int position) |
| | Insert a page into notebook at the given position, specifying the widget to use as the label in the popup menu.
|
| void | insert_page (Widget& child, const Glib::ustring& tab_label, const Glib::ustring& menu_label, int position, bool use_mnemonic=false) |
| void | remove_page (int page_num=0) |
| | Removes a page from the notebook given its index in the notebook.
|
| void | remove_page (Widget& child) |
| int | get_current_page () const |
| | Returns the page number of the current page.
|
| Widget* | get_nth_page (int page_number) |
| | Returns the child widget contained in page number page_num .
|
| const Widget* | get_nth_page (int page_number) const |
| | Returns the child widget contained in page number page_num .
|
| gint | get_n_pages () |
| | Gets the number of pages in a notebook.
|
| int | page_num (const Widget& child) |
| | Finds the index of the page which contains the given child widget.
|
| void | set_current_page (int page_number) |
| | Switches to the page number page_num .
|
| void | next_page () |
| | Switches to the next page.
|
| void | prev_page () |
| | Switches to the previous page.
|
| void | set_show_border (bool show_border=true) |
| | Sets whether a bevel will be drawn around the notebook pages.
|
| bool | get_show_border () const |
| | Returns whether a bevel will be drawn around the notebook pages.
|
| void | set_show_tabs (bool show_tabs=true) |
| | Sets whether to show the tabs for the notebook or not.
|
| bool | get_show_tabs () const |
| | Returns whether the tabs of the notebook are shown.
|
| void | set_tab_pos (PositionType pos) |
| | Sets the edge at which the tabs for switching pages in the notebook are drawn.
|
| PositionType | get_tab_pos () const |
| | Gets the edge at which the tabs for switching pages in the notebook are drawn.
|
| void | set_scrollable (bool scrollable=true) |
| | Sets whether the tab label area will have arrows for scrolling if there are too many tabs to fit in the area.
|
| bool | get_scrollable () const |
| | Returns whether the tab label area has arrows for scrolling.
|
| void | popup_enable () |
| | Enables the popup menu: if the user clicks with the right mouse button on the bookmarks, a menu with all the pages will be popped up.
|
| void | popup_disable () |
| | Disables the popup menu.
|
| Widget* | get_tab_label (Widget& child) |
| | Returns the tab label widget for the page child .
|
| const Widget* | get_tab_label (Widget& child) const |
| | Returns the tab label widget for the page child .
|
| void | set_tab_label (Widget& child, Widget& tab_label) |
| | Changes the tab label for child .
|
| void | set_tab_label_text (Widget& child, const Glib::ustring& tab_text) |
| | Creates a new label and sets it as the tab label for the page containing child .
|
| Glib::ustring | get_tab_label_text (Widget& child) const |
| | Retrieves the text of the tab label for the page containing child .
|
| Widget* | get_menu_label (Widget& child) |
| | Retrieves the menu label widget of the page containing child .
|
| const Widget* | get_menu_label (Widget& child) const |
| | Retrieves the menu label widget of the page containing child .
|
| void | set_menu_label (Widget& child, Widget& menu_label) |
| | Changes the menu label for the page containing child .
|
| void | set_menu_label_text (Widget& child, const Glib::ustring& menu_text) |
| | Creates a new label and sets it as the menu label of child .
|
| Glib::ustring | get_menu_label_text (Widget& child) const |
| | Retrieves the text of the menu label for the page containing child .
|
| void | query_tab_label_packing (Widget& child, bool& expand, bool& fill, PackType& pack_type) |
| void | set_tab_label_packing (Widget& child, bool expand, bool fill, PackType pack_type) |
| | Sets the packing parameters for the tab label of the page containing child .
|
| void | reorder_child (Widget& child, int position) |
| | Reorders the page containing child , so that it appears in position position .
|
| PageList::iterator | get_current () |
| PageList& | pages () |
| const PageList& | pages () const |
Glib::SignalProxy2< void,
GtkNotebookPage*, guint > | signal_switch_page () |
Glib::SignalProxy1< bool,
bool > | signal_select_page () |
Glib::SignalProxy1< bool,
NotebookTab > | signal_focus_tab () |
Glib::SignalProxy1< void,
int > | signal_change_current_page () |
Glib::SignalProxy1< void,
DirectionType > | signal_move_focus_out () |
| Glib::PropertyProxy<PositionType> | property_tab_pos () |
| Glib::PropertyProxy<bool> | property_show_tabs () |
| Glib::PropertyProxy<bool> | property_show_border () |
| Glib::PropertyProxy<bool> | property_scrollable () |
Glib::PropertyProxy_WriteOnly<
guint > | property_tab_border () |
| Glib::PropertyProxy<guint> | property_tab_hborder () |
| Glib::PropertyProxy<guint> | property_tab_vborder () |
| Glib::PropertyProxy<int> | property_page () |
| Glib::PropertyProxy<bool> | property_enable_popup () |
| Glib::PropertyProxy<bool> | property_homogeneous () |
Protected Methods |
| virtual void | on_switch_page (GtkNotebookPage* page, guint page_num) |
| virtual bool | on_select_page (bool move_focus) |
| virtual bool | on_focus_tab (NotebookTab type) |
| virtual void | on_change_current_page (int offset) |
| virtual void | on_move_focus_out (DirectionType direction) |
Related Functions |
(Note that these are not member functions.)
|
| Gtk::Notebook* | wrap (GtkNotebook* object, bool take_copy=false) |