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> FlagsChanged;
+ PBD::Signal0<void> Changed;
+ PBD::Signal0<void> FlagsChanged;
PBD::Signal0<void> LockChanged;
PBD::Signal0<void> PositionLockStyleChanged;
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);
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.
, _flags (Flags (0))
, _locked (false)
, _position_lock_style (AudioTime)
- , _block_change_notifications (false)
{
assert (_start >= 0);
assert (_end >= 0);
, _flags (bits)
, _locked (false)
, _position_lock_style (s.config.get_glue_new_markers_to_bars_and_beats() ? MusicTime : AudioTime)
- , _block_change_notifications (false)
-
{
recompute_bbt_from_frames ();
, _bbt_end (other._bbt_end)
, _flags (other._flags)
, _position_lock_style (other._position_lock_style)
- , _block_change_notifications (false)
-
{
/* copy is not locked even if original was */
if (start_change && end_change) {
changed (this);
-
- if (!_block_change_notifications) {
Changed ();
- }
}
return 0;
_end = _start + length();
recompute_bbt_from_frames ();
- changed (this); /* EMIT SIGNAL */
-
- if (!_block_change_notifications) {
- Changed (); /* EMIT SIGNAL */
- }
+ changed (this); /* EMIT SIGNAL */
+ Changed (); /* EMIT SIGNAL */
}
assert (_start >= 0);
recompute_bbt_from_frames ();
- changed (this); /* EMIT SIGNAL */
-
- if (!_block_change_notifications) {
- Changed (); /* EMIT SIGNAL */
- }
+ changed (this); /* EMIT SIGNAL */
+ Changed (); /* EMIT SIGNAL */
assert (_start >= 0);
assert (_end >= 0);
if (i != locations.end()) {
/* we can re-use an old Location object */
loc = *i;
-
- // changed locations will be updated by Locations::changed signal
- loc->set_block_change_notifications (true);
loc->set_state (**niter, version);
- loc->set_block_change_notifications (false);
} else {
loc = new Location (_session, **niter);
}
We might be re-adding a location here but it doesn't actually matter
for all the locations that the Session takes an interest in.
*/
- loop_update_connections.drop_connections ();
- mark_update_connections.drop_connections ();
- skip_update_connections.drop_connections ();
-
- {
- PBD::Unwinder<bool> protect_ignore_skip_updates (_ignore_skips_updates, true);
- for (Locations::LocationList::const_iterator i = locations.begin(); i != locations.end(); ++i) {
- location_added (*i);
- }
- }
-
- update_skips (NULL, false);
+
+ for (Locations::LocationList::const_iterator i = locations.begin(); i != locations.end(); ++i) {
+ location_added (*i);
+ }
}
void