X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fstripable_treemodel.h;h=586e339b09eeee489810321ca6c8cc9ccbaf9972;hb=5d2a03578c3f0d0f39562546bd3e4be9be08d2d4;hp=a91ddc026d01c28fc428f7aa0f5303259084cf83;hpb=ea2b00c26332582a4dbf404d12ff759cdf696cce;p=ardour.git diff --git a/gtk2_ardour/stripable_treemodel.h b/gtk2_ardour/stripable_treemodel.h index a91ddc026d..586e339b09 100644 --- a/gtk2_ardour/stripable_treemodel.h +++ b/gtk2_ardour/stripable_treemodel.h @@ -24,7 +24,7 @@ #include #include -#include +#include namespace ARDOUR { class Session; @@ -37,15 +37,15 @@ class StripableSorter; class StripableTreeModel : public Gtk::TreeModel, public Glib::Object { - protected: +protected: StripableTreeModel (AxisViewProvider&); virtual ~StripableTreeModel(); - public: +public: static Glib::RefPtr create (AxisViewProvider&); void set_session (ARDOUR::Session&); - protected: +protected: Gtk::TreeModelFlags get_flags_vfunc() const; int get_n_columns_vfunc() const; GType get_column_type_vfunc(int index) const; @@ -62,15 +62,15 @@ class StripableTreeModel : public Gtk::TreeModel, public Glib::Object bool get_iter_vfunc(const Path& path, iterator& iter) const; bool iter_is_valid(const iterator& iter) const; - public: +public: typedef Gtk::TreeModelColumn StringColumn; typedef Gtk::TreeModelColumn BoolColumn; typedef Gtk::TreeModelColumn UnsignedColumn; typedef Gtk::TreeModelColumn AVColumn; typedef Gtk::TreeModelColumn > StripableColumn; - struct Columns : public Gtk::TreeModel::ColumnRecord { - + struct Columns : public Gtk::TreeModel::ColumnRecord + { Columns () { add (text); add (visible); @@ -111,7 +111,7 @@ class StripableTreeModel : public Gtk::TreeModel, public Glib::Object Columns columns; - private: +private: ARDOUR::Session* _session; AxisViewProvider& axis_view_provider; @@ -119,7 +119,8 @@ class StripableTreeModel : public Gtk::TreeModel, public Glib::Object void text_value (boost::shared_ptr stripable, Glib::ValueBase& value) const; - struct Glue { + struct Glue + { Glue (boost::shared_ptr); boost::weak_ptr stripable;