summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/route_group.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-05-03 17:36:35 +0200
committerRobin Gareus <robin@gareus.org>2017-05-03 17:53:00 +0200
commitb5c6f06a99144e0bd81ddafb6f19aab7217123b1 (patch)
tree0c4ad7b8c15308db23a851147efd7fc217fffb7b /libs/ardour/ardour/route_group.h
parentb45a3c816484346f44cd65341fade0850670c2bb (diff)
Move RouteGroup color into libardour.
This allows to change it from scripts and surfaces and consolidates code.
Diffstat (limited to 'libs/ardour/ardour/route_group.h')
-rw-r--r--libs/ardour/ardour/route_group.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/ardour/route_group.h b/libs/ardour/ardour/route_group.h
index c75202f986..34f70857a2 100644
--- a/libs/ardour/ardour/route_group.h
+++ b/libs/ardour/ardour/route_group.h
@@ -150,6 +150,15 @@ public:
bool has_control_master() const;
bool slaved () const;
+ uint32_t rgba () const { return _rgba; }
+
+ /** set route-group color and notify UI about change */
+ void set_rgba (uint32_t);
+
+ /* directly set color only, used to convert old 5.x gui-object-state
+ * to libardour color */
+ void migrate_rgba (uint32_t color) { _rgba = color; }
+
private:
boost::shared_ptr<RouteList> routes;
boost::shared_ptr<Route> subgroup_bus;
@@ -179,6 +188,8 @@ private:
void post_set (PBD::PropertyChange const &);
void push_to_groups ();
+
+ uint32_t _rgba;
};
} /* namespace */