diff options
author | Robin Gareus <robin@gareus.org> | 2014-01-10 12:12:06 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-01-10 12:12:06 +0100 |
commit | 99ed84c429b941fe7ce829bf66979c29a9c33713 (patch) | |
tree | fc56c988be82f050e3d042e3f1ab81356f9922cb /gtk2_ardour | |
parent | ca0667e088f667233aaa402271786c95ee750349 (diff) |
display info about replicated processors
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 106a301140..cd91589391 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -297,12 +297,17 @@ ProcessorEntry::setup_tooltip () if (_processor) { boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (_processor); if (pi) { + std::string postfix = ""; + uint32_t replicated; + if ((replicated = pi->get_count()) > 1) { + postfix = string_compose(_("\nThis mono plugin has been replicated %1 times."), replicated); + } if (pi->plugin()->has_editor()) { ARDOUR_UI::instance()->set_tip (_button, - string_compose (_("<b>%1</b>\nDouble-click to show GUI.\nAlt+double-click to show generic GUI."), name (Wide))); + string_compose (_("<b>%1</b>\nDouble-click to show GUI.\nAlt+double-click to show generic GUI.%2"), name (Wide), postfix)); } else { ARDOUR_UI::instance()->set_tip (_button, - string_compose (_("<b>%1</b>\nDouble-click to show generic GUI."), name (Wide))); + string_compose (_("<b>%1</b>\nDouble-click to show generic GUI.%2"), name (Wide), postfix)); } return; } @@ -341,6 +346,13 @@ ProcessorEntry::name (Width w) const } } else { + boost::shared_ptr<ARDOUR::PluginInsert> pi; + uint32_t replicated; + if ((pi = boost::dynamic_pointer_cast<ARDOUR::PluginInsert> (_processor)) != 0 + && (replicated = pi->get_count()) > 1) + { + name_display += string_compose(_("(%1x1) "), replicated); + } switch (w) { case Wide: |