Toggle the shown state of send gain on double click.

git-svn-id: svn://localhost/ardour2/branches/3.0@8441 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-01-05 02:06:15 +00:00
parent 4a9f3173ee
commit 92b787ffba
2 changed files with 13 additions and 3 deletions

View File

@ -98,6 +98,14 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
void set_route (boost::shared_ptr<ARDOUR::Route>);
void set_button_names ();
void show_send (boost::shared_ptr<ARDOUR::Send>);
void revert_to_default_display ();
/** @return the delivery that is being edited using our fader; it will be the
* last send passed to ::show_send, or our route's main out delivery.
*/
boost::shared_ptr<ARDOUR::Delivery> current_delivery () const {
return _current_delivery;
}
bool mixer_owned () const {
return _mixer_owned;
@ -272,8 +280,6 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
void set_current_delivery (boost::shared_ptr<ARDOUR::Delivery>);
boost::shared_ptr<ARDOUR::Delivery> _current_delivery;
void revert_to_default_display ();
void drop_send ();
PBD::ScopedConnection send_gone_connection;

View File

@ -1608,7 +1608,11 @@ ProcessorBox::toggle_edit_processor (boost::shared_ptr<Processor> processor)
}
if (_parent_strip) {
_parent_strip->show_send (send);
if (boost::dynamic_pointer_cast<Send> (_parent_strip->current_delivery()) == send) {
_parent_strip->revert_to_default_display ();
} else {
_parent_strip->show_send (send);
}
}
} else if ((retrn = boost::dynamic_pointer_cast<Return> (processor)) != 0) {