diff options
author | Carl Hetherington <carl@carlh.net> | 2011-08-31 19:14:12 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-08-31 19:14:12 +0000 |
commit | 881b5a43e755860e91bf596bcac1f8c105b0a843 (patch) | |
tree | ea8c1ee2acca440144caa74dc5f6698449278dd8 /libs/ardour/ardour/route_group.h | |
parent | f3a6b8a9bae2c926dd37315793416f14c176bbd8 (diff) |
Allow route groups to color their tracks (remainder of
#4064).
git-svn-id: svn://localhost/ardour2/branches/3.0@10043 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/route_group.h')
-rw-r--r-- | libs/ardour/ardour/route_group.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/route_group.h b/libs/ardour/ardour/route_group.h index 5ab78cdf76..1f6be864cd 100644 --- a/libs/ardour/ardour/route_group.h +++ b/libs/ardour/ardour/route_group.h @@ -44,6 +44,7 @@ namespace Properties { extern PBD::PropertyDescriptor<bool> select; extern PBD::PropertyDescriptor<bool> edit; extern PBD::PropertyDescriptor<bool> route_active; + extern PBD::PropertyDescriptor<bool> color; /* we use this, but its declared in region.cc */ extern PBD::PropertyDescriptor<bool> hidden; }; @@ -71,6 +72,7 @@ class RouteGroup : public SessionObject bool is_select () const { return _select.val(); } bool is_edit () const { return _edit.val(); } bool is_route_active () const { return _route_active.val(); } + bool is_color () const { return _color.val(); } bool empty() const {return routes->empty();} size_t size() const { return routes->size();} @@ -89,6 +91,7 @@ class RouteGroup : public SessionObject void set_select (bool yn); void set_edit (bool yn); void set_route_active (bool yn); + void set_color (bool yn); bool enabled_property (PBD::PropertyID); @@ -141,6 +144,7 @@ private: PBD::Property<bool> _select; PBD::Property<bool> _edit; PBD::Property<bool> _route_active; + PBD::Property<bool> _color; void remove_when_going_away (boost::weak_ptr<Route>); int set_state_2X (const XMLNode&, int); |