13
0

Locations should listen to location changed signals, and emit its own changed() signal

This commit is contained in:
Paul Davis 2014-09-16 21:31:19 -04:00
parent 78f55f2e4d
commit b592ce3e44

View File

@ -44,6 +44,10 @@ using namespace ARDOUR;
using namespace PBD; using namespace PBD;
PBD::Signal0<void> Location::scene_changed; PBD::Signal0<void> Location::scene_changed;
PBD::Signal1<void,Location*> Location::name_changed;
PBD::Signal1<void,Location*> Location::end_changed;
PBD::Signal1<void,Location*> Location::start_changed;
PBD::Signal1<void,Location*> Location::changed;
Location::Location (Session& s) Location::Location (Session& s)
: SessionHandleRef (s) : SessionHandleRef (s)
@ -621,6 +625,10 @@ Locations::Locations (Session& s)
: SessionHandleRef (s) : SessionHandleRef (s)
{ {
current_location = 0; current_location = 0;
Location::changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1));
Location::start_changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1));
Location::end_changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1));
} }
Locations::~Locations () Locations::~Locations ()