more sidechain send GUI details:
* don't list exising normal sends (separate mono connections) * tooltip inidicate autoremoval
This commit is contained in:
parent
d3acba6be4
commit
dd750722c5
|
@ -1777,18 +1777,8 @@ PluginPinDialog::maybe_add_route_to_input_menu (boost::shared_ptr<Route> r, Data
|
|||
if (send->output ()->connected_to (_pi->sidechain_input ())) {
|
||||
// only if (send->remove_on_disconnect ()) ??
|
||||
already_present = true;
|
||||
++nth;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
#if 1 // add existing sends that are not connected
|
||||
PortSet& p (send->output ()->ports ());
|
||||
for (PortSet::iterator i = p.begin (dt); i != p.end (dt); ++i) {
|
||||
std::string n = i->name ();
|
||||
replace_all (n, "_", " ");
|
||||
citems.push_back (MenuElem (n, sigc::bind (sigc::mem_fun (*this, &PluginPinDialog::connect_port), wp, boost::weak_ptr<Port> (*i))));
|
||||
++added;
|
||||
}
|
||||
#endif
|
||||
++nth;
|
||||
}
|
||||
/* we're going to create the new send pre-fader, so check the route amp's data type. */
|
||||
|
|
|
@ -513,8 +513,14 @@ ProcessorEntry::setup_tooltip ()
|
|||
string_compose (_("<b>%1</b>\nThe Plugin is not available on this system\nand has been replaced by a stub."), name (Wide)));
|
||||
return;
|
||||
}
|
||||
if (boost::dynamic_pointer_cast<Send> (_processor) && !boost::dynamic_pointer_cast<InternalSend>(_processor)) {
|
||||
ARDOUR_UI_UTILS::set_tooltip (_button, string_compose ("<b>> %1</b>", _processor->name()));
|
||||
boost::shared_ptr<Send> send;
|
||||
if ((send = boost::dynamic_pointer_cast<Send> (_processor)) != 0 &&
|
||||
!boost::dynamic_pointer_cast<InternalSend>(_processor)) {
|
||||
if (send->remove_on_disconnect ()) {
|
||||
ARDOUR_UI_UTILS::set_tooltip (_button, string_compose ("<b>> %1</b>\nThis (sidechain) send will be removed when disconnected.", _processor->name()));
|
||||
} else {
|
||||
ARDOUR_UI_UTILS::set_tooltip (_button, string_compose ("<b>> %1</b>", _processor->name()));
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user