Ardour
9.0-pre0-582-g084a23a80d
|
#include <stripable_treemodel.h>
Classes | |
struct | Columns |
struct | Glue |
Public Types | |
typedef Gtk::TreeModelColumn< std::string > | StringColumn |
typedef Gtk::TreeModelColumn< bool > | BoolColumn |
typedef Gtk::TreeModelColumn< uint32_t > | UnsignedColumn |
typedef Gtk::TreeModelColumn< AxisView * > | AVColumn |
typedef Gtk::TreeModelColumn< std::shared_ptr< ARDOUR::Stripable > > | StripableColumn |
Public Types inherited from Gtk::TreeModel | |
typedef TreeModelColumnRecord | ColumnRecord |
typedef TreeNodeChildren | Children |
typedef Children::iterator | iterator |
typedef Children::reverse_iterator | reverse_iterator |
typedef Children::const_iterator | const_iterator |
typedef Children::const_reverse_iterator | const_reverse_iterator |
typedef TreeRow | Row |
typedef TreePath | Path |
typedef TreeRowReference | RowReference |
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 | |
void | set_session (ARDOUR::Session &) |
Public Member Functions inherited from Gtk::TreeModel | |
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 () |
Static Public Member Functions | |
static Glib::RefPtr< StripableTreeModel > | create (AxisViewProvider &) |
Static Public Member Functions inherited from Gtk::TreeModel | |
static void | add_interface (GType gtype_implementer) |
static GType | get_type () G_GNUC_CONST |
Public Attributes | |
Columns | columns |
Protected Member Functions | |
StripableTreeModel (AxisViewProvider &) | |
virtual | ~StripableTreeModel () |
Gtk::TreeModelFlags | get_flags_vfunc () const |
int | get_n_columns_vfunc () const |
GType | get_column_type_vfunc (int index) const |
void | get_value_vfunc (const TreeModel::iterator &iter, int column, Glib::ValueBase &value) const |
bool | iter_next_vfunc (const iterator &iter, iterator &iter_next) const |
bool | iter_children_vfunc (const iterator &parent, iterator &iter) const |
bool | iter_has_child_vfunc (const iterator &iter) const |
int | iter_n_children_vfunc (const iterator &iter) const |
int | iter_n_root_children_vfunc () const |
bool | iter_nth_child_vfunc (const iterator &parent, int n, iterator &iter) const |
bool | iter_nth_root_child_vfunc (int n, iterator &iter) const |
bool | iter_parent_vfunc (const iterator &child, iterator &iter) const |
Path | get_path_vfunc (const iterator &iter) const |
bool | get_iter_vfunc (const Path &path, iterator &iter) const |
bool | iter_is_valid (const iterator &iter) const |
Protected Member Functions inherited from Gtk::TreeModel | |
TreeModel () | |
virtual void | ref_node_vfunc (const iterator &iter) const |
virtual void | unref_node_vfunc (const iterator &iter) const |
virtual void | get_value_vfunc (const iterator &iter, int column, Glib::ValueBase &value) const |
virtual void | set_value_impl (const iterator &row, int column, const Glib::ValueBase &value) |
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... | |
Private Types | |
typedef std::set< Glue * > | GlueList |
Private Member Functions | |
void | text_value (std::shared_ptr< ARDOUR::Stripable > stripable, Glib::ValueBase &value) const |
void | remember_glue_item (Glue *) const |
Private Attributes | |
ARDOUR::Session * | _session |
AxisViewProvider & | axis_view_provider |
int | n_columns |
GlueList | glue_list |
Additional Inherited Members | |
Related Functions inherited from Gtk::TreeModel | |
Glib::RefPtr< Gtk::TreeModel > | wrap (GtkTreeModel *object, bool take_copy=false) |
Definition at line 37 of file stripable_treemodel.h.
Definition at line 68 of file stripable_treemodel.h.
typedef Gtk::TreeModelColumn<bool> StripableTreeModel::BoolColumn |
Definition at line 66 of file stripable_treemodel.h.
|
private |
Definition at line 128 of file stripable_treemodel.h.
typedef Gtk::TreeModelColumn<std::string> StripableTreeModel::StringColumn |
Definition at line 65 of file stripable_treemodel.h.
typedef Gtk::TreeModelColumn<std::shared_ptr<ARDOUR::Stripable> > StripableTreeModel::StripableColumn |
Definition at line 69 of file stripable_treemodel.h.
typedef Gtk::TreeModelColumn<uint32_t> StripableTreeModel::UnsignedColumn |
Definition at line 67 of file stripable_treemodel.h.
|
protected |
|
protectedvirtual |
|
static |
|
protectedvirtual |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Sets iter to a valid iterator pointing to path
path | An path to a node. |
iter | An iterator that will be set to refer to a node to the path, or will be set as invalid. |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Reimplemented from Gtk::TreeModel.
Override and implement this in a derived TreeModel class. Returns a Path referenced by iter.
iter | The iterator. |
Reimplemented from Gtk::TreeModel.
|
protected |
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Sets iter to refer to the first child of parent. If parent has no children, false is returned and iter is set to be invalid.
parent | An iterator. |
iter | An iterator that will be set to refer to the firt child node, or will be set as invalid. |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Returns true if iter has children, false otherwise.
iter | The iterator to test for children. |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class.
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Returns the number of children that iter has. See also iter_n_root_children_vfunc().
iter | The iterator to test for children. |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Returns the number of toplevel nodes. See also iter_n_children().
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Sets iter_next to refer to the node following iter it at the current level. If there is no next iter, false is returned and iter_next is set to be invalid.
iter | An iterator. |
iter_next | An iterator that will be set to refer to the next node, or will be set as invalid. |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Sets iter to be the child of parent using the given index. The first index is 0. If n is too big, or parent has no children, iter is set to an invalid iterator and false is returned. See also iter_nth_root_child_vfunc()
parent | An iterator. |
n | The index of the child node to which iter should be set. |
iter | An iterator that will be set to refer to the nth node, or will be set as invalid. |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Sets iter to be the child of at the root level using the given index. The first index is 0. If n is too big, or if there are no children, iter is set to an invalid iterator and false is returned. See also iter_nth_child_vfunc().
n | The index of the child node to which iter should be set. |
iter | An iterator that will be set to refer to the nth node, or will be set as invalid. |
Reimplemented from Gtk::TreeModel.
|
protectedvirtual |
Override and implement this in a derived TreeModel class. Sets iter to be the parent of child. If child is at the toplevel, and doesn't have a parent, then iter is set to an invalid iterator and false is returned.
child | An iterator. |
iter | An iterator that will be set to refer to the parent node, or will be set as invalid. |
Reimplemented from Gtk::TreeModel.
|
private |
void StripableTreeModel::set_session | ( | ARDOUR::Session & | ) |
|
private |
|
private |
Definition at line 114 of file stripable_treemodel.h.
|
private |
Definition at line 115 of file stripable_treemodel.h.
Columns StripableTreeModel::columns |
Definition at line 111 of file stripable_treemodel.h.
|
mutableprivate |
Definition at line 129 of file stripable_treemodel.h.
|
private |
Definition at line 117 of file stripable_treemodel.h.