3 #ifndef _GTKMM_NOTEBOOK_H
4 #define _GTKMM_NOTEBOOK_H
6 #include <gtkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
34 #include <glibmm/helperlist.h>
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 {
class Notebook_Class; }
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
79 static GType value_type() G_GNUC_CONST;
94 namespace Notebook_Helpers
134 operator bool()
const;
154 {
return lhs.
equal(rhs); }
158 {
return !lhs.
equal(rhs); }
171 #ifndef GTKMM_DISABLE_DEPRECATED
217 #ifndef GTKMM_DISABLE_DEPRECATED
262 #ifndef GTKMM_DISABLE_DEPRECATED
310 template <
class InputIterator>
313 for(;first != last; ++first)
364 #ifndef DOXYGEN_SHOULD_SKIP_THIS
373 #ifndef DOXYGEN_SHOULD_SKIP_THIS
377 static CppClassType notebook_class_;
384 explicit Notebook(
const Glib::ConstructParams& construct_params);
390 #ifndef DOXYGEN_SHOULD_SKIP_THIS
391 static GType get_type() G_GNUC_CONST;
394 static GType get_base_type() G_GNUC_CONST;
450 int prepend_page(
Widget& child,
const Glib::ustring& tab_label,
const Glib::ustring& menu_label,
bool use_mnemonic);
474 int append_page(
Widget& child,
const Glib::ustring& tab_label,
const Glib::ustring& menu_label,
bool use_mnemonic =
false);
502 int insert_page(
Widget& child,
const Glib::ustring& tab_label,
const Glib::ustring& menu_label,
int position,
bool use_mnemonic =
false);
515 #ifndef GTKMM_DISABLE_DEPRECATED
529 #ifndef GTKMM_DISABLE_DEPRECATED
543 #ifndef GTKMM_DISABLE_DEPRECATED
556 #ifndef GTKMM_DISABLE_DEPRECATED
571 #ifndef GTKMM_DISABLE_DEPRECATED
584 #ifndef GTKMM_DISABLE_DEPRECATED
645 #ifndef GTKMM_DISABLE_DEPRECATED
664 #ifndef GTKMM_DISABLE_DEPRECATED
881 #ifndef GTKMM_DISABLE_DEPRECATED
890 #ifndef GTKMM_DISABLE_DEPRECATED
987 #ifndef GTKMM_DISABLE_DEPRECATED
1209 #ifndef DOXYGEN_SHOULD_SKIP_THIS
1218 #ifndef DOXYGEN_SHOULD_SKIP_THIS
1220 namespace Notebook_Helpers
1228 return static_cast<const Page&
>(*this);
1234 return static_cast<const Page*
>(
this);
Element(Widget &child, Widget &tab, Widget &menu)
Element(Widget *child, Widget *tab, Widget *menu)
bool operator==(const PageIterator &lhs, const PageIterator &rhs)
reference operator*() const
bool equal(const PageIterator &other) const
PageIterator(Gtk::Notebook *parent, GList *node)
PageIterator & operator++()
PageIterator & operator--()
const PageIterator operator--(int)
pointer operator->() const
std::bidirectional_iterator_tag iterator_category
bool operator!=(const PageIterator &lhs, const PageIterator &rhs)
ptrdiff_t difference_type
const PageIterator operator++(int)
iterator insert(iterator position, element_type &e)
void reorder(iterator loc, iterator page)
iterator find(GtkNotebookPage *t)
void push_front(element_type &e)
void remove(const_reference child)
Glib::List_ConstIterator< iterator > const_iterator
const Element element_type
const Page & const_reference
const_iterator begin() const
const_reverse_iterator rbegin() const
PageList & operator=(const PageList &src)
PageList(const PageList &src)
const GtkNotebook * gparent() const
void insert(iterator position, InputIterator first, InputIterator last)
Glib::List_ReverseIterator< iterator > reverse_iterator
Glib::List_ConstIterator< reverse_iterator > const_reverse_iterator
iterator find(const_reference c)
reverse_iterator rbegin()
const_iterator end() const
value_type operator[](size_type l) const
const_reverse_iterator rend() const
void erase(iterator start, iterator stop)
void push_back(element_type &e)
PageList(GtkNotebook *gparent)
size_type max_size() const
void set_tab_label_text(const Glib::ustring &tab_text)
Glib::ustring get_tab_label_text() const
Widget * get_menu_label() const
void set_tab_label(Widget &tab_label)
Glib::ustring get_menu_label_text() const
void set_tab_label_packing(bool expand, bool fill, PackType pack_type)
Page & operator=(const Page &)
void query_tab_label_packing(bool &expand, bool &fill, PackType &pack_type)
Widget * get_child() const
void set_menu_label(Widget &menu_label)
void set_menu_label_text(const Glib::ustring &menu_text)
Widget * get_tab_label() const
Glib::PropertyProxy_ReadOnly< int > property_group_id() const
Glib::PropertyProxy< guint > property_tab_hborder()
Glib::ustring get_group_name() const
int page_num(const Widget &child) const
void set_menu_label_text(Widget &child, const Glib::ustring &menu_text)
const Widget * get_nth_page(int page_num) const
void remove_page(Widget &child)
Glib::PropertyProxy< PositionType > property_tab_pos()
sigc::slot< Notebook *, Widget *, int, int > SlotWindowCreation
const GtkNotebook * gobj() const
Provides access to the underlying C GtkObject.
Gtk::Notebook * wrap(GtkNotebook *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< bool > property_scrollable() const
const Widget * get_menu_label(Widget &child) const
void set_tab_reorderable(Widget &child, bool reorderable=true)
Glib::PropertyProxy_ReadOnly< bool > property_homogeneous() const
bool get_show_border() const
Glib::SignalProxy2< void, Widget *, guint > signal_page_removed()
int get_current_page() const
int prepend_page(Widget &child, Widget &tab_label)
int append_page(Widget &child, Widget &tab_label, Widget &menu_label)
Glib::ustring get_menu_label_text(Widget &child) const
Glib::PropertyProxy_ReadOnly< guint > property_tab_vborder() const
int prepend_page(Widget &child, const Glib::ustring &tab_label, const Glib::ustring &menu_label, bool use_mnemonic)
int insert_page(Widget &child, Widget &tab_label, int position)
Glib::SignalProxy2< void, GtkNotebookPage *, guint > signal_switch_page()
Widget * get_action_widget(PackType pack_type=PACK_START)
Notebook_Helpers::PageList PageList
Glib::SignalProxy2< void, Widget *, guint > signal_page_reordered()
void set_group_id(int group_id)
bool get_show_tabs() const
PositionType get_tab_pos() const
Glib::PropertyProxy< guint > property_tab_vborder()
void set_show_tabs(bool show_tabs=true)
bool get_tab_reorderable(Widget &child) const
Glib::PropertyProxy_WriteOnly< guint > property_tab_border()
Glib::PropertyProxy_ReadOnly< bool > property_show_tabs() const
Glib::PropertyProxy_ReadOnly< bool > property_enable_popup() const
Glib::PropertyProxy< bool > property_enable_popup()
void set_tab_label_packing(Widget &child, bool expand, bool fill, PackType pack_type)
void set_scrollable(bool scrollable=true)
int prepend_page(Widget &child)
void remove_page(int page_num=0)
Glib::PropertyProxy< int > property_page()
void set_tab_label_text(Widget &child, const Glib::ustring &tab_text)
Glib::PropertyProxy< int > property_group_id()
void set_group_name(const Glib::ustring &group_name)
Glib::PropertyProxy_ReadOnly< bool > property_show_border() const
Glib::PropertyProxy< bool > property_show_tabs()
void set_tab_detachable(Widget &child, bool detachable=true)
virtual void on_switch_page(GtkNotebookPage *page, guint page_num)
This is a default handler for the signal signal_switch_page().
int page_num(const Widget &child)
void set_show_border(bool show_border=true)
void set_menu_label(Widget &child, Widget &menu_label)
int append_page(Widget &child, const Glib::ustring &tab_label, bool use_mnemonic=false)
const Widget * get_tab_label(Widget &child) const
Glib::SignalProxy2< void, Widget *, guint > signal_page_added()
int prepend_page(Widget &child, const Glib::ustring &tab_label, bool use_mnemonic=false)
void query_tab_label_packing(Widget &child, bool &expand, bool &fill, PackType &pack_type)
void set_group(void *group)
Glib::ustring get_tab_label_text(Widget &child) const
void set_tab_label(Widget &child, Widget &tab_label)
Glib::PropertyProxy< void * > property_group()
int insert_page(Widget &child, const Glib::ustring &tab_label, int position, bool use_mnemonic=false)
int insert_page(Widget &child, Widget &tab_label, Widget &menu_label, int position)
Glib::PropertyProxy_ReadOnly< void * > property_group() const
Glib::PropertyProxy_ReadOnly< PositionType > property_tab_pos() const
const PageList & pages() const
static void set_window_creation_hook(const SlotWindowCreation &slot)
bool get_tab_detachable(Widget &child) const
guint16 get_tab_vborder() const
void set_current_page(int page_num)
Widget * get_menu_label(Widget &child)
Widget * get_tab_label(Widget &child)
void set_tab_pos(PositionType pos)
Glib::PropertyProxy< bool > property_homogeneous()
GtkNotebook * gobj()
Provides access to the underlying C GtkObject.
Glib::PropertyProxy_ReadOnly< guint > property_tab_hborder() const
const void * get_group() const
int insert_page(Widget &child, int position)
Glib::PropertyProxy< bool > property_show_border()
int append_page(Widget &child)
bool get_scrollable() const
int prepend_page(Widget &child, Widget &tab_label, Widget &menu_label)
int insert_page(Widget &child, const Glib::ustring &tab_label, const Glib::ustring &menu_label, int position, bool use_mnemonic=false)
void set_action_widget(Widget *widget, PackType pack_type=PACK_START)
Glib::PropertyProxy_ReadOnly< int > property_page() const
void reorder_child(Widget &child, int position)
PageList::iterator get_current()
Widget * get_nth_page(int page_num)
int append_page(Widget &child, const Glib::ustring &tab_label, const Glib::ustring &menu_label, bool use_mnemonic=false)
int append_page(Widget &child, Widget &tab_label)
Glib::PropertyProxy< bool > property_scrollable()
guint16 get_tab_hborder() const
struct _GtkNotebookPage GtkNotebookPage
PBD::PropertyDescriptor< timepos_t > start
TabElem(Widget &child, Widget &tab)
TabElem(Widget &child, const Glib::ustring &label, bool mnemonic=false)