13
0

Set session dirty when pans change (#3807).

git-svn-id: svn://localhost/ardour2/branches/3.0@9010 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-03-01 21:40:01 +00:00
parent 0ace3f6e20
commit 252be42c04
2 changed files with 15 additions and 0 deletions

View File

@ -91,6 +91,9 @@ class Pannable : public PBD::Stateful, public Automatable, public SessionHandleR
uint32_t _responding_to_control_auto_state_change;
void control_auto_state_changed (AutoState);
private:
void value_changed ();
};
} // namespace

View File

@ -58,6 +58,12 @@ Pannable::Pannable (Session& s)
pan_width_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
pan_frontback_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
pan_lfe_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
pan_azimuth_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
pan_elevation_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
pan_width_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
pan_frontback_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
pan_lfe_control->Changed.connect_same_thread (*this, boost::bind (&Pannable::value_changed, this));
}
Pannable::~Pannable ()
@ -92,6 +98,12 @@ Pannable::set_panner (boost::shared_ptr<Panner> p)
_panner = p;
}
void
Pannable::value_changed ()
{
_session.set_dirty ();
}
void
Pannable::set_automation_state (AutoState state)
{