3 #ifndef _GTKMM_TREESORTABLE_H
4 #define _GTKMM_TREESORTABLE_H
6 #include <gtkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
36 #include <glibmm/interface.h>
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
53 typedef struct _GtkTreeSortableClass GtkTreeSortableClass;
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
59 {
class TreeSortable_Class; }
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84 static CppClassType treesortable_class_;
97 #ifndef DOXYGEN_SHOULD_SKIP_THIS
104 explicit TreeSortable(
const Glib::Interface_Class& interface_class);
124 #ifndef DOXYGEN_SHOULD_SKIP_THIS
125 static GType get_base_type() G_GNUC_CONST;
194 #ifndef GTKMM_DISABLE_DEPRECATED
209 typedef sigc::slot<int, const Gtk::TreeModel::iterator&, const Gtk::TreeModel::iterator&>
SlotCompare;
void set_sort_column(int sort_column_id, SortType order)
void set_sort_func(int sort_column_id, const SlotCompare &slot)
void sort_column_changed()
Glib::RefPtr< Gtk::TreeSortable > wrap(GtkTreeSortable *object, bool take_copy=false)
bool has_default_sort_func() const
void set_sort_column_id(int sort_column_id, SortType order)
void set_sort_func(const TreeModelColumnBase &sort_column, const SlotCompare &slot)
virtual void set_sort_column_id_vfunc(int sort_column_id, SortType order)
virtual void set_sort_func_vfunc(int sort_column_id, GtkTreeIterCompareFunc func, void *data, GDestroyNotify destroy)
virtual void on_sort_column_changed()
This is a default handler for the signal signal_sort_column_changed().
GtkTreeSortable * gobj()
Provides access to the underlying C GObject.
bool get_sort_column_id(int &sort_column_id, SortType &order) const
void set_sort_column_id(const TreeModelColumnBase &sort_column_id, SortType order)
void set_default_sort_func(const SlotCompare &slot)
static void add_interface(GType gtype_implementer)
const GtkTreeSortable * gobj() const
Provides access to the underlying C GObject.
virtual void sort_column_changed_vfunc() const
sigc::slot< int, const Gtk::TreeModel::iterator &, const Gtk::TreeModel::iterator & > SlotCompare
void unset_default_sort_func()
virtual bool get_sort_column_id_vfunc(int *sort_column_id, SortType *order) const
void set_sort_column(const TreeModelColumnBase &sort_column_id, SortType order)
Glib::SignalProxy0< void > signal_sort_column_changed()
virtual void set_default_sort_func_vfunc(GtkTreeIterCompareFunc func, void *data, GDestroyNotify destroy)
static GType get_type() G_GNUC_CONST
virtual bool has_default_sort_func_vfunc() const
@ DEFAULT_SORT_COLUMN_ID
See set_default_sort_func() and set_sort_column().
@ DEFAULT_UNSORTED_COLUMN_ID
struct _GtkTreeSortable GtkTreeSortable
gint(* GtkTreeIterCompareFunc)(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data)
PBD::PropertyDescriptor< uint32_t > order