summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/location.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-09-19 22:50:34 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-09-19 22:51:27 -0400
commit5bdc9a9a2368abfc03a52a676502f215ef609a3a (patch)
tree550245a8f4c7ea4a5e2576a723a7edfc8c4f97c1 /libs/ardour/ardour/location.h
parentceff2e3a62f839dc4ca180b46c78ba2ca11a7411 (diff)
duplicate all ARDOUR::Location signals so that we have one static signal that identifies the subject location and one member signal that does not
Diffstat (limited to 'libs/ardour/ardour/location.h')
-rw-r--r--libs/ardour/ardour/location.h23
1 files changed, 19 insertions, 4 deletions
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<SceneChange> scene_change() const { return _scene_change; }
void set_scene_change (boost::shared_ptr<SceneChange>);
+ /* these are static signals for objects that want to listen to all
+ locations at once.
+ */
+
static PBD::Signal1<void,Location*> name_changed;
static PBD::Signal1<void,Location*> end_changed;
static PBD::Signal1<void,Location*> start_changed;
-
- PBD::Signal1<void,Location*> LockChanged;
- PBD::Signal2<void,Location*,void*> FlagsChanged;
- PBD::Signal1<void,Location*> PositionLockStyleChanged;
+ static PBD::Signal1<void,Location*> flags_changed;
+ static PBD::Signal1<void,Location*> lock_changed;
+ static PBD::Signal1<void,Location*> position_lock_style_changed;
/* this is sent only when both start and end change at the same time */
static PBD::Signal1<void,Location*> changed;
+ /* these are member signals for objects that care only about
+ changes to this object
+ */
+
+ PBD::Signal0<void> NameChanged;
+ PBD::Signal0<void> EndChanged;
+ PBD::Signal0<void> StartChanged;
+ PBD::Signal0<void> Changed;
+ PBD::Signal0<void> FlagsChanged;
+ PBD::Signal0<void> LockChanged;
+ PBD::Signal0<void> PositionLockStyleChanged;
+
/* CD Track / CD-Text info */
std::map<std::string, std::string> cd_info;