From 5c7d6ae004356ce4be61c6cc65b9b445c03a0fd4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 19 Sep 2014 23:21:17 -0400 Subject: add Location::set_skip() to allow toggling of skip-functionality for a given Location --- libs/ardour/location.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libs/ardour/location.cc') diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index 94afad679d..df65c5b341 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -375,6 +375,17 @@ Location::set_is_range_marker (bool yn, void*) } } +void +Location::set_skip (bool yn) +{ + if (is_range_marker() && length() > 0) { + if (set_flag_internal (yn, IsSkip)) { + flags_changed (this); + FlagsChanged (); + } + } +} + void Location::set_auto_punch (bool yn, void*) { @@ -648,6 +659,7 @@ Locations::Locations (Session& s) 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)); + Location::flags_changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1)); } Locations::~Locations () -- cgit v1.2.3