summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/location.h
diff options
context:
space:
mode:
authorGZharun <grygoriiz@wavesglobal.com>2015-02-15 13:02:16 +0200
committerPaul Davis <paul@linuxaudiosystems.com>2015-06-29 14:18:12 -0400
commit317bacfa3a5cb0a9228eb741c8759ec11a42f488 (patch)
tree7d10004a08e4af0e3ec107c5e84a8e79a7e4c2b4 /libs/ardour/ardour/location.h
parentb8f29872a7284ccefde1d14806247e4ee0fe3e20 (diff)
[Summary] Eliminated redundant marker update notification which lead to creation of huge amount of redundant session events
Diffstat (limited to 'libs/ardour/ardour/location.h')
-rw-r--r--libs/ardour/ardour/location.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libs/ardour/ardour/location.h b/libs/ardour/ardour/location.h
index f809dbf280..7d51f6a7f3 100644
--- a/libs/ardour/ardour/location.h
+++ b/libs/ardour/ardour/location.h
@@ -123,11 +123,13 @@ class LIBARDOUR_API Location : public SessionHandleRef, public PBD::StatefulDest
changes to this object
*/
+ PBD::Signal0<void> Changed;
+ void set_block_change_notifications (bool yn) {_block_change_notifications = yn;}
+
PBD::Signal0<void> NameChanged;
PBD::Signal0<void> EndChanged;
PBD::Signal0<void> StartChanged;
- PBD::Signal0<void> Changed;
- PBD::Signal0<void> FlagsChanged;
+ PBD::Signal0<void> FlagsChanged;
PBD::Signal0<void> LockChanged;
PBD::Signal0<void> PositionLockStyleChanged;
@@ -155,6 +157,8 @@ class LIBARDOUR_API Location : public SessionHandleRef, public PBD::StatefulDest
bool _locked;
PositionLockStyle _position_lock_style;
boost::shared_ptr<SceneChange> _scene_change;
+
+ bool _block_change_notifications; // required for group operations
void set_mark (bool yn);
bool set_flag_internal (bool yn, Flags flag);
@@ -199,7 +203,7 @@ class LIBARDOUR_API Locations : public SessionHandleRef, public PBD::StatefulDes
void marks_either_side (framepos_t const, framepos_t &, framepos_t &) const;
void find_all_between (framepos_t start, framepos_t, LocationList&, Location::Flags);
-
+
PBD::Signal1<void,Location*> current_changed;
/* Objects that care about individual addition and removal of Locations should connect to added/removed.