Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Gtk::ListStore Class Reference
[TreeView Classes]

#include <liststore.h>

Inheritance diagram for Gtk::ListStore:

Gtk::TreeModel sigc::trackable sigc::trackable sigc::trackable sigc::trackable sigc::trackable

List of all members.


Detailed Description

Thist is a list model for use with a Gtk::TreeView widget.

It implements the Gtk::TreeModel interface, and also implements the Gtk::TreeSortable interface so you can sort the list using the view. Finally, it also implements the tree drag and drop interfaces.

Definition at line 54 of file liststore.h.


Public Types

enum  { DEFAULT_SORT_COLUMN_ID = -1, DEFAULT_UNSORTED_COLUMN_ID = -2 }
typedef GtkListStoreClass BaseClassType
typedef GtkListStore BaseObjectType
typedef TreeNodeChildren Children
typedef TreeModelColumnRecord ColumnRecord
typedef Children::const_iterator const_iterator
typedef
Children::const_reverse_iterator 
const_reverse_iterator
typedef ListStore_Class CppClassType
typedef ListStore CppObjectType
typedef void(* DestroyNotify )(gpointer data)
typedef Children::iterator iterator
typedef TreePath Path
typedef Children::reverse_iterator reverse_iterator
typedef TreeRow Row
typedef TreeRowReference RowReference
typedef sigc::slot< int, const
Gtk::TreeModel::iterator
&, const
Gtk::TreeModel::iterator & > 
SlotCompare
typedef sigc::slot< bool,
const TreeModel::iterator & > 
SlotForeachIter
typedef sigc::slot< bool,
const TreeModel::Path & > 
SlotForeachPath
typedef sigc::slot< bool,
const TreeModel::Path &, const
TreeModel::iterator & > 
SlotForeachPathAndIter

Public Member Functions

bool _cpp_destruction_is_in_progress () const
iterator append ()
Children children () const
 This returns an STL-like container API, for iterating over the rows.
Children children ()
 This returns an STL-like container API, for iterating over the rows.
void clear ()
bool drag_data_delete (const TreeModel::Path &path)
bool drag_data_get (const TreeModel::Path &path, SelectionData &selection_data)
bool drag_data_received (const TreeModel::Path &dest, const SelectionData &selection_data)
iterator erase (const iterator &iter)
void foreach (const SlotForeachPathAndIter &slot)
void foreach_iter (const SlotForeachIter &slot)
void foreach_path (const SlotForeachPath &slot)
GType get_column_type (int index) const
void * get_data (const QueryQuark &key)
TreeModelFlags get_flags () const
iterator get_iter (const Glib::ustring &path_string)
iterator get_iter (const Path &path)
int get_n_columns () const
TreeModel::Path get_path (const iterator &iter) const
template<class PropertyType>
void get_property (const Glib::ustring &property_name, PropertyType &value) const
 You probably want to use a specific property_*() accessor method instead.
void get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const
 You probably want to use a specific property_*() accessor method instead.
bool get_sort_column_id (int &sort_column_id, SortType &order) const
Glib::ustring get_string (const iterator &iter) const
const GtkListStore * gobj () const
 Provides access to the underlying C GObject.
GtkListStore * gobj ()
 Provides access to the underlying C GObject.
GObject * gobj_copy () const
GtkListStore * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
bool has_default_sort_func () const
iterator insert (const iterator &iter)
iterator insert_after (const iterator &iter)
bool iter_is_valid (const iterator &iter) const
void iter_swap (const iterator &a, const iterator &b)
void move (const iterator &source, const iterator &destination)
iterator prepend ()
virtual void reference () const
void remove_data (const QueryQuark &quark)
void reorder (const Glib::ArrayHandle< int > &new_order)
void row_changed (const Path &path, const iterator &iter)
void row_deleted (const Path &path)
bool row_draggable (const TreeModel::Path &path) const
bool row_drop_possible (const TreeModel::Path &dest_path, const SelectionData &selection_data) const
void row_has_child_toggled (const Path &path, const iterator &iter)
void row_inserted (const Path &path, const iterator &iter)
void rows_reordered (const Path &path, const iterator &iter, int *new_order)
void rows_reordered (const Path &path, const iterator &iter, const Glib::ArrayHandle< int > &new_order)
void set_column_types (const TreeModelColumnRecord &columns)
void set_data (const Quark &key, void *data, DestroyNotify notify)
void set_data (const Quark &key, void *data)
void set_default_sort_func (const SlotCompare &slot)
template<class PropertyType>
void set_property (const Glib::ustring &property_name, const PropertyType &value)
 You probably want to use a specific property_*() accessor method instead.
void set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value)
 You probably want to use a specific property_*() accessor method instead.
void set_sort_column (int sort_column_id, SortType order)
void set_sort_column (const TreeModelColumnBase &sort_column_id, SortType order)
void set_sort_column_id (int sort_column_id, SortType order)
void set_sort_column_id (const TreeModelColumnBase &sort_column_id, SortType order)
void set_sort_func (int sort_column_id, const SlotCompare &slot)
void set_sort_func (const TreeModelColumnBase &sort_column, const SlotCompare &slot)
Glib::SignalProxy2< void,
const TreeModel::Path &, const
TreeModel::iterator & > 
signal_row_changed ()
Glib::SignalProxy1< void,
const TreeModel::Path & > 
signal_row_deleted ()
Glib::SignalProxy2< void,
const TreeModel::Path &, const
TreeModel::iterator & > 
signal_row_has_child_toggled ()
Glib::SignalProxy2< void,
const TreeModel::Path &, const
TreeModel::iterator & > 
signal_row_inserted ()
Glib::SignalProxy3< void,
const TreeModel::Path &, const
TreeModel::iterator &, int * > 
signal_rows_reordered ()
Glib::SignalProxy0< void > signal_sort_column_changed ()
void sort_column_changed ()
void * steal_data (const QueryQuark &quark)
virtual void unreference () const
void unset_default_sort_func ()

Static Public Member Functions

static ObjectBase * _get_current_wrapper (GObject *object)
static void add_interface (GType gtype_implementer)
static void add_interface (GType gtype_implementer)
static void add_interface (GType gtype_implementer)
static void add_interface (GType gtype_implementer)
static Glib::RefPtr< ListStorecreate (const TreeModelColumnRecord &columns)
static GType get_base_type () G_GNUC_CONST
static GType get_type () G_GNUC_CONST

Protected Member Functions

void _set_current_wrapper (GObject *object)
virtual void destroy_notify_ ()
virtual bool drag_data_delete_vfunc (const TreeModel::Path &path)
virtual bool drag_data_get_vfunc (const TreeModel::Path &path, SelectionData &selection_data) const
virtual bool drag_data_received_vfunc (const TreeModel::Path &dest, const SelectionData &selection_data)
virtual GType get_column_type_vfunc (int index) const
virtual TreeModelFlags get_flags_vfunc () const
virtual bool get_iter_vfunc (const Path &path, iterator &iter) const
virtual int get_n_columns_vfunc () const
virtual TreeModel::Path get_path_vfunc (const iterator &iter) const
virtual bool get_sort_column_id_vfunc (int *sort_column_id, SortType *order) const
virtual void get_value_impl (const iterator &row, int column, Glib::ValueBase &value) const
virtual void get_value_vfunc (const iterator &iter, int column, Glib::ValueBase &value) const
virtual bool has_default_sort_func_vfunc () const
void initialize (GObject *castitem)
bool is_anonymous_custom_ () const
bool is_derived_ () const
virtual bool iter_children_vfunc (const iterator &parent, 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 bool iter_next_vfunc (const iterator &iter, iterator &iter_next) 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_parent_vfunc (const iterator &child, iterator &iter) const
 ListStore (const TreeModelColumnRecord &columns)
 ListStore ()
 ListStore (GtkListStore *castitem)
 ListStore (const Glib::ConstructParams &construct_params)
virtual void on_row_changed (const TreeModel::Path &path, const TreeModel::iterator &iter)
virtual void on_row_deleted (const TreeModel::Path &path)
virtual void on_row_has_child_toggled (const TreeModel::Path &path, const TreeModel::iterator &iter)
virtual void on_row_inserted (const TreeModel::Path &path, const TreeModel::iterator &iter)
virtual void on_rows_reordered (const TreeModel::Path &path, const TreeModel::iterator &iter, int *new_order)
virtual void on_sort_column_changed ()
virtual void ref_node_vfunc (const iterator &iter) const
virtual bool row_draggable_vfunc (const TreeModel::Path &path) const
virtual bool row_drop_possible_vfunc (const TreeModel::Path &dest, const SelectionData &selection_data) const
virtual void set_default_sort_func_vfunc (GtkTreeIterCompareFunc func, void *data, GtkDestroyNotify destroy)
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, GtkDestroyNotify destroy)
virtual void set_value_impl (const iterator &row, int column, const Glib::ValueBase &value)
virtual void sort_column_changed_vfunc () const
virtual void unref_node_vfunc (const iterator &iter) const

Static Protected Member Functions

static void destroy_notify_callback_ (void *data)

Protected Attributes

bool cpp_destruction_in_progress_
const char * custom_type_name_
GObject * gobject_

Package Functions

void add_destroy_notify_callback (void *data, func_destroy_notify func) const
void notify_callbacks ()
 Execute and remove all previously installed callbacks.
void remove_destroy_notify_callback (void *data) const

Package Attributes

 __pad0__:func_destroy_notify func_destroy_notify

Private Member Functions

 ListStore (const ListStore &)
ListStoreoperator= (const ListStore &)

Static Private Attributes

static CppClassType liststore_class_

Friends

class Glib::GSigConnectionNode
class Glib::Object_Class
class Gtk::TreeIter
class Gtk::TreeModelSort
class Gtk::TreeRow
class ListStore_Class

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gtk::TreeDragDest > wrap (GtkTreeDragDest *object, bool take_copy=false)
Glib::RefPtr< Gtk::TreeDragSource > wrap (GtkTreeDragSource *object, bool take_copy=false)
Glib::RefPtr< Gtk::TreeSortable > wrap (GtkTreeSortable *object, bool take_copy=false)
Glib::RefPtr< Gtk::TreeModelwrap (GtkTreeModel *object, bool take_copy=false)
Glib::RefPtr< Glib::Object > wrap (GObject *object, bool take_copy=false)
Glib::RefPtr< Gtk::ListStorewrap (GtkListStore *object, bool take_copy=false)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index