|
virtual | ~TreeModelSort () |
|
GtkTreeModelSort * | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkTreeModelSort * | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GtkTreeModelSort * | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
Glib::RefPtr< TreeModel > | get_model () |
|
Glib::RefPtr< const TreeModel > | get_model () const |
|
Path | convert_child_path_to_path (const Path &child_path) const |
|
iterator | convert_child_iter_to_iter (const iterator &child_iter) const |
|
Path | convert_path_to_child_path (const Path &sorted_path) const |
|
iterator | convert_iter_to_child_iter (const iterator &sorted_iter) const |
|
void | reset_default_sort_func () |
|
void | clear_cache () |
|
bool | iter_is_valid (const iterator &iter) const |
|
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< TreeModel > > | property_model () const |
|
virtual | ~TreeModel () |
|
GtkTreeModel * | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkTreeModel * | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
iterator | get_iter (const Path &path) |
|
iterator | get_iter (const Glib::ustring &path_string) |
|
Children | children () |
| This returns an STL-like container API, for iterating over the rows. More...
|
|
Children | children () const |
| This returns an STL-like container API, for iterating over the rows. More...
|
|
void | foreach_iter (const SlotForeachIter &slot) |
|
void | foreach_path (const SlotForeachPath &slot) |
|
void | foreach (const SlotForeachPathAndIter &slot) |
|
TreeModelFlags | get_flags () const |
|
int | get_n_columns () const |
|
GType | get_column_type (int index) const |
|
TreeModel::Path | get_path (const iterator &iter) const |
|
void | row_changed (const Path &path, const iterator &iter) |
|
void | row_inserted (const Path &path, const iterator &iter) |
|
void | row_has_child_toggled (const Path &path, const iterator &iter) |
|
void | row_deleted (const Path &path) |
|
void | rows_reordered (const Path &path, const iterator &iter, const Glib::ArrayHandle< int > &new_order) |
|
void | rows_reordered (const Path &path, const Glib::ArrayHandle< int > &new_order) |
|
void | rows_reordered (const Path &path, const iterator &iter, int *new_order) |
|
Glib::ustring | get_string (const iterator &iter) const |
|
Glib::SignalProxy2< void, const TreeModel::Path &, const TreeModel::iterator & > | signal_row_changed () |
|
Glib::SignalProxy2< void, const TreeModel::Path &, const TreeModel::iterator & > | signal_row_inserted () |
|
Glib::SignalProxy2< void, const TreeModel::Path &, const TreeModel::iterator & > | signal_row_has_child_toggled () |
|
Glib::SignalProxy1< void, const TreeModel::Path & > | signal_row_deleted () |
|
Glib::SignalProxy3< void, const TreeModel::Path &, const TreeModel::iterator &, int * > | signal_rows_reordered () |
|
virtual | ~TreeSortable () |
|
GtkTreeSortable * | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkTreeSortable * | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
bool | get_sort_column_id (int &sort_column_id, SortType &order) const |
|
void | set_sort_column (const TreeModelColumnBase &sort_column_id, SortType order) |
|
void | set_sort_column (int sort_column_id, SortType order) |
|
void | set_sort_column_id (const TreeModelColumnBase &sort_column_id, SortType order) |
|
void | set_sort_column_id (int sort_column_id, SortType order) |
|
void | set_sort_func (const TreeModelColumnBase &sort_column, const SlotCompare &slot) |
|
void | set_sort_func (int sort_column_id, const SlotCompare &slot) |
|
void | set_default_sort_func (const SlotCompare &slot) |
|
void | unset_default_sort_func () |
|
bool | has_default_sort_func () const |
|
void | sort_column_changed () |
|
Glib::SignalProxy0< void > | signal_sort_column_changed () |
|
|
| TreeModelSort (const Glib::RefPtr< TreeModel > &model) |
|
virtual void | set_value_impl (const iterator &row, int column, const Glib::ValueBase &value) |
|
| TreeModel () |
|
virtual TreeModelFlags | get_flags_vfunc () const |
|
virtual int | get_n_columns_vfunc () const |
|
virtual GType | get_column_type_vfunc (int index) const |
|
virtual bool | iter_next_vfunc (const iterator &iter, iterator &iter_next) const |
|
virtual bool | get_iter_vfunc (const Path &path, iterator &iter) const |
|
virtual bool | iter_children_vfunc (const iterator &parent, iterator &iter) const |
|
virtual bool | iter_parent_vfunc (const iterator &child, iterator &iter) const |
|
virtual bool | iter_nth_child_vfunc (const iterator &parent, int n, iterator &iter) const |
|
virtual bool | iter_nth_root_child_vfunc (int n, iterator &iter) const |
|
virtual bool | iter_has_child_vfunc (const iterator &iter) const |
|
virtual int | iter_n_children_vfunc (const iterator &iter) const |
|
virtual int | iter_n_root_children_vfunc () const |
|
virtual void | ref_node_vfunc (const iterator &iter) const |
|
virtual void | unref_node_vfunc (const iterator &iter) const |
|
virtual TreeModel::Path | get_path_vfunc (const iterator &iter) const |
|
virtual void | get_value_vfunc (const iterator &iter, int column, Glib::ValueBase &value) const |
|
virtual void | get_value_impl (const iterator &row, int column, Glib::ValueBase &value) const |
|
virtual void | on_row_changed (const TreeModel::Path &path, const TreeModel::iterator &iter) |
| This is a default handler for the signal signal_row_changed(). More...
|
|
virtual void | on_row_inserted (const TreeModel::Path &path, const TreeModel::iterator &iter) |
| This is a default handler for the signal signal_row_inserted(). More...
|
|
virtual void | on_row_has_child_toggled (const TreeModel::Path &path, const TreeModel::iterator &iter) |
| This is a default handler for the signal signal_row_has_child_toggled(). More...
|
|
virtual void | on_row_deleted (const TreeModel::Path &path) |
| This is a default handler for the signal signal_row_deleted(). More...
|
|
virtual void | on_rows_reordered (const TreeModel::Path &path, const TreeModel::iterator &iter, int *new_order) |
| This is a default handler for the signal signal_rows_reordered(). More...
|
|
| TreeSortable () |
|
virtual bool | get_sort_column_id_vfunc (int *sort_column_id, SortType *order) const |
|
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 | set_default_sort_func_vfunc (GtkTreeIterCompareFunc func, void *data, GDestroyNotify destroy) |
|
virtual bool | has_default_sort_func_vfunc () const |
|
virtual void | sort_column_changed_vfunc () const |
|
virtual void | on_sort_column_changed () |
| This is a default handler for the signal signal_sort_column_changed(). More...
|
|
A wrapper which makes an underlying Gtk::TreeModel sortable.
The TreeModelSort is a model which implements the TreeSortable interface. It does not hold any data itself, but rather is created with a child model and proxies its data. It has identical column types to this child model, and the changes in the child are propagated. The primary purpose of this model is to provide a way to sort a different model without modifying it. Note that the sort function used by TreeModelSort is not guaranteed to be stable.
For instance, you might create two TreeView widgets each with a view of the same data. If the model is wrapped by a TreeModelSort then the two TreeViews can each sort their view of the data without affecting the other. By contrast, if we simply put the same model in each widget, then sorting the first would sort the second.
Definition at line 72 of file treemodelsort.h.