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;
PBD::Signal1<void,Location*> Location::name_changed;
PBD::Signal1<void,Location*> Location::end_changed;
PBD::Signal1<void,Location*> Location::start_changed;
+PBD::Signal1<void,Location*> Location::flags_changed;
+PBD::Signal1<void,Location*> Location::lock_changed;
+PBD::Signal1<void,Location*> Location::position_lock_style_changed;
PBD::Signal1<void,Location*> Location::changed;
Location::Location (Session& s)
}
start_changed (this); /* EMIT SIGNAL */
+ StartChanged (); /* EMIT SIGNAL */
end_changed (this); /* EMIT SIGNAL */
+ EndChanged (); /* EMIT SIGNAL */
}
/* moving the start (position) of a marker with a scene change
recompute_bbt_from_frames ();
}
start_changed (this); /* EMIT SIGNAL */
+ StartChanged (); /* EMIT SIGNAL */
if (is_session_range ()) {
Session::StartTimeChanged (old); /* EMIT SIGNAL */
recompute_bbt_from_frames ();
}
start_changed (this); /* EMIT SIGNAL */
+ StartChanged (); /* EMIT SIGNAL */
end_changed (this); /* EMIT SIGNAL */
+ EndChanged (); /* EMIT SIGNAL */
}
assert (_start >= 0);
recompute_bbt_from_frames ();
}
end_changed(this); /* EMIT SIGNAL */
+ EndChanged(); /* EMIT SIGNAL */
if (is_session_range()) {
Session::EndTimeChanged (old); /* EMIT SIGNAL */
recompute_bbt_from_frames ();
changed (this); /* EMIT SIGNAL */
+ Changed (); /* EMIT SIGNAL */
}
assert (_start >= 0);
}
void
-Location::set_hidden (bool yn, void *src)
+Location::set_hidden (bool yn, void*)
{
if (set_flag_internal (yn, IsHidden)) {
- FlagsChanged (this, src); /* EMIT SIGNAL */
+ flags_changed (this); /* EMIT SIGNAL */
+ FlagsChanged ();
}
}
void
-Location::set_cd (bool yn, void *src)
+Location::set_cd (bool yn, void*)
{
// XXX this really needs to be session start
// but its not available here - leave to GUI
}
if (set_flag_internal (yn, IsCDMarker)) {
- FlagsChanged (this, src); /* EMIT SIGNAL */
+ flags_changed (this); /* EMIT SIGNAL */
+ FlagsChanged ();
}
}
void
-Location::set_is_range_marker (bool yn, void *src)
+Location::set_is_range_marker (bool yn, void*)
{
if (set_flag_internal (yn, IsRangeMarker)) {
- FlagsChanged (this, src); /* EMIT SIGNAL */
+ flags_changed (this);
+ FlagsChanged (); /* EMIT SIGNAL */
}
}
void
-Location::set_auto_punch (bool yn, void *src)
+Location::set_auto_punch (bool yn, void*)
{
if (is_mark() || _start == _end) {
return;
}
if (set_flag_internal (yn, IsAutoPunch)) {
- FlagsChanged (this, src); /* EMIT SIGNAL */
+ flags_changed (this); /* EMIT SIGNAL */
+ FlagsChanged (); /* EMIT SIGNAL */
}
}
void
-Location::set_auto_loop (bool yn, void *src)
+Location::set_auto_loop (bool yn, void*)
{
if (is_mark() || _start == _end) {
return;
}
if (set_flag_internal (yn, IsAutoLoop)) {
- FlagsChanged (this, src); /* EMIT SIGNAL */
+ flags_changed (this); /* EMIT SIGNAL */
+ FlagsChanged (); /* EMIT SIGNAL */
}
}
recompute_bbt_from_frames ();
changed (this); /* EMIT SIGNAL */
+ Changed (); /* EMIT SIGNAL */
assert (_start >= 0);
assert (_end >= 0);
recompute_bbt_from_frames ();
- PositionLockStyleChanged (this); /* EMIT SIGNAL */
+ position_lock_style_changed (this); /* EMIT SIGNAL */
+ PositionLockStyleChanged (); /* EMIT SIGNAL */
}
void
Location::lock ()
{
_locked = true;
- LockChanged (this);
+ lock_changed (this);
+ LockChanged ();
}
void
Location::unlock ()
{
_locked = false;
- LockChanged (this);
+ lock_changed (this);
+ LockChanged ();
}
void