/** * @file libsexymm/tree-view.hg A treeview subclass which can display tooltips for items in the tree. * * @Copyright (C) 2006 Christian Hammond. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include #include _DEFS(libsexymm,libsexy) _PINCLUDE(gtkmm/private/treemodel_p.h) _PINCLUDE(gtkmm/private/treeview_p.h) namespace Sexy { class TreeView : public Gtk::TreeView { _CLASS_GTKOBJECT(TreeView, SexyTreeView, SEXY_TREE_VIEW, Gtk::TreeView, GtkTreeView) public: _CTOR_DEFAULT void set_tooltip_label_column(const Gtk::TreeModelColumnBase& column); _WRAP_METHOD(void set_tooltip_label_column(guint column), sexy_tree_view_set_tooltip_label_column) _WRAP_SIGNAL(Gtk::Widget* get_tooltip(const Gtk::TreeModel::Path& path, const Gtk::TreeViewColumn& column), "get-tooltip") }; } /* namespace Sexy */ // vim: syntax=cpp