Show latency display/config button for in all plugin UIs

This commit is contained in:
Robin Gareus 2020-03-14 06:39:20 +01:00
parent e3ad436bda
commit 97f3d9496b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
5 changed files with 6 additions and 3 deletions

View File

@ -424,6 +424,7 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert)
HBox* smaller_hbox = manage (new HBox);
smaller_hbox->set_spacing (6);
smaller_hbox->pack_start (latency_button, false, false, 4);
smaller_hbox->pack_start (pin_management_button, false, false, 4);
smaller_hbox->pack_start (preset_label, false, false, 4);
smaller_hbox->pack_start (_preset_modified, false, false);

View File

@ -104,9 +104,6 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol
Label* combo_label = manage (new Label (_("<span size=\"large\">Presets</span>")));
combo_label->set_use_markup (true);
latency_button.signal_clicked.connect (sigc::mem_fun (*this, &PlugUIBase::latency_button_clicked));
set_latency_label ();
smaller_hbox->pack_start (latency_button, false, false, 4);
smaller_hbox->pack_start (pin_management_button, false, false, 4);
smaller_hbox->pack_start (_preset_modified, false, false);

View File

@ -314,6 +314,7 @@ LV2PluginUI::LV2PluginUI(boost::shared_ptr<PluginInsert> pi,
_ardour_buttons_box.pack_end (_preset_combo, false, false);
_ardour_buttons_box.pack_end (_preset_modified, false, false);
_ardour_buttons_box.pack_end (pin_management_button, false, false);
_ardour_buttons_box.pack_start (latency_button, false, false, 4);
plugin->PresetLoaded.connect (*this, invalidator (*this), boost::bind (&LV2PluginUI::queue_port_update, this), gui_context ());
}

View File

@ -498,6 +498,8 @@ PlugUIBase::PlugUIBase (boost::shared_ptr<PluginInsert> pi)
latency_button.set_icon (ArdourIcon::LatencyClock);
latency_button.add_elements (ArdourButton::Text);
latency_button.signal_clicked.connect (sigc::mem_fun (*this, &PlugUIBase::latency_button_clicked));
set_latency_label ();
add_button.set_name ("generic button");
add_button.set_icon (ArdourIcon::PsetAdd);
@ -523,6 +525,7 @@ PlugUIBase::PlugUIBase (boost::shared_ptr<PluginInsert> pi)
pin_management_button.set_icon (ArdourIcon::PluginPinout);
pin_management_button.signal_clicked.connect (sigc::mem_fun (*this, &PlugUIBase::manage_pins));
insert->ActiveChanged.connect (active_connection, invalidator (*this), boost::bind (&PlugUIBase::processor_active_changed, this, boost::weak_ptr<Processor>(insert)), gui_context());
bypass_button.set_name ("plugin bypass button");

View File

@ -54,6 +54,7 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> insert, boost:
box->pack_end (_preset_combo, false, false);
box->pack_end (_preset_modified, false, false);
box->pack_end (pin_management_button, false, false);
box->pack_end (latency_button, false, false);
pack_start (*box, false, false);
box->signal_size_allocate().connect (sigc::mem_fun (*this, &VSTPluginUI::top_box_allocated));