From c2476ea73da79237984fb4cedb397033d0bd62ec Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 3 Dec 2014 09:15:10 -0500 Subject: add API for controlling and determining active status of a SceneChange Conflicts: libs/ardour/ardour/scene_change.h --- libs/ardour/scene_change.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libs/ardour/scene_change.cc') diff --git a/libs/ardour/scene_change.cc b/libs/ardour/scene_change.cc index 6560a7ca2f..322b37a195 100644 --- a/libs/ardour/scene_change.cc +++ b/libs/ardour/scene_change.cc @@ -41,6 +41,7 @@ SceneChange::factory (const XMLNode& node, int version) SceneChange::SceneChange () : _color (out_of_bound_color) + , _active (true) { } @@ -56,3 +57,12 @@ SceneChange::color() const { return _color; } + +void +SceneChange::set_active (bool yn) +{ + if (_active != yn) { + _active = yn; + ActiveChanged (); /* EMIT SIGNAL */ + } +} -- cgit v1.2.3