mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Update plugin-pin dialog when route or plugin name changes
This commit is contained in:
parent
19c44fe814
commit
a996645ef1
2 changed files with 23 additions and 0 deletions
|
|
@ -262,6 +262,9 @@ PluginPinWidget::PluginPinWidget (std::shared_ptr<ARDOUR::PluginInsert> pi)
|
|||
_add_sc_audio.signal_clicked.connect (sigc::bind (sigc::mem_fun (*this, &PluginPinWidget::add_sidechain_port), DataType::AUDIO));
|
||||
_add_sc_midi.signal_clicked.connect (sigc::bind (sigc::mem_fun (*this, &PluginPinWidget::add_sidechain_port), DataType::MIDI));
|
||||
|
||||
_route ()->PropertyChanged.connect (_plugin_connections, invalidator (*this), boost::bind (&PluginPinWidget::property_changed, this, _1), gui_context ());
|
||||
_pi->PropertyChanged.connect (_plugin_connections, invalidator (*this), boost::bind (&PluginPinWidget::property_changed, this, _1), gui_context ());
|
||||
|
||||
AudioEngine::instance ()->PortConnectedOrDisconnected.connect (
|
||||
_io_connection, invalidator (*this), boost::bind (&PluginPinWidget::port_connected_or_disconnected, this, _1, _3), gui_context ()
|
||||
);
|
||||
|
|
@ -1990,6 +1993,14 @@ PluginPinWidget::port_pretty_name_changed (std::string pn)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
PluginPinWidget::property_changed (PBD::PropertyChange const& what_changed)
|
||||
{
|
||||
if (what_changed.contains (ARDOUR::Properties::name)) {
|
||||
darea.queue_draw ();
|
||||
}
|
||||
}
|
||||
|
||||
/* lifted from ProcessorEntry::Control */
|
||||
PluginPinWidget::Control::Control (std::shared_ptr<AutomationControl> c, string const & n)
|
||||
: _control (c)
|
||||
|
|
@ -2126,6 +2137,8 @@ PluginPinDialog::PluginPinDialog (std::shared_ptr<ARDOUR::Route> r)
|
|||
_route->DropReferences.connect (
|
||||
_connections, invalidator (*this), boost::bind (&PluginPinDialog::going_away, this), gui_context()
|
||||
);
|
||||
|
||||
_route->PropertyChanged.connect ( _connections, invalidator (*this), boost::bind (&PluginPinDialog::route_property_changed, this, _1), gui_context());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -2170,6 +2183,14 @@ PluginPinDialog::processor_property_changed (PropertyChange const& what_changed)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
PluginPinDialog::route_property_changed (PropertyChange const& what_changed)
|
||||
{
|
||||
if (what_changed.contains (ARDOUR::Properties::name)) {
|
||||
set_title (string_compose (_("Pin Configuration: %1"), _route->name ()));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
PluginPinDialog::going_away ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue