From 5bdc9a9a2368abfc03a52a676502f215ef609a3a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 19 Sep 2014 22:50:34 -0400 Subject: duplicate all ARDOUR::Location signals so that we have one static signal that identifies the subject location and one member signal that does not --- libs/ardour/ardour/location.h | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'libs/ardour/ardour/location.h') diff --git a/libs/ardour/ardour/location.h b/libs/ardour/ardour/location.h index bf8e663417..b3a4e3ff24 100644 --- a/libs/ardour/ardour/location.h +++ b/libs/ardour/ardour/location.h @@ -101,17 +101,32 @@ class LIBARDOUR_API Location : public SessionHandleRef, public PBD::StatefulDest boost::shared_ptr scene_change() const { return _scene_change; } void set_scene_change (boost::shared_ptr); + /* these are static signals for objects that want to listen to all + locations at once. + */ + static PBD::Signal1 name_changed; static PBD::Signal1 end_changed; static PBD::Signal1 start_changed; - - PBD::Signal1 LockChanged; - PBD::Signal2 FlagsChanged; - PBD::Signal1 PositionLockStyleChanged; + static PBD::Signal1 flags_changed; + static PBD::Signal1 lock_changed; + static PBD::Signal1 position_lock_style_changed; /* this is sent only when both start and end change at the same time */ static PBD::Signal1 changed; + /* these are member signals for objects that care only about + changes to this object + */ + + PBD::Signal0 NameChanged; + PBD::Signal0 EndChanged; + PBD::Signal0 StartChanged; + PBD::Signal0 Changed; + PBD::Signal0 FlagsChanged; + PBD::Signal0 LockChanged; + PBD::Signal0 PositionLockStyleChanged; + /* CD Track / CD-Text info */ std::map cd_info; -- cgit v1.2.3