From e6ff4d8455850e4d5507a21bcec25e843bef778e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 18 Oct 2016 23:40:14 +0200 Subject: [PATCH] Add tooltip info for inline-display --- gtk2_ardour/processor_box.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 3cf29725b1..853544a6b6 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -505,9 +505,15 @@ ProcessorEntry::setup_tooltip () 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_inline_display()) { + postfix += string_compose(_("\n%1+double-click to toggle inline-display"), Keyboard::tertiary_modifier_name ()); } + + 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_UTILS::set_tooltip (_button, string_compose (_("%1\nDouble-click to show GUI.\n%2+double-click to show generic GUI.%3"), name (Wide), Keyboard::secondary_modifier_name (), postfix)); @@ -1547,7 +1553,8 @@ ProcessorEntry::PluginDisplay::PluginDisplay (ProcessorEntry& e, boost::shared_p _plug->QueueDraw.connect (_qdraw_connection, invalidator (*this), boost::bind (&Gtk::Widget::queue_draw, this), gui_context ()); - std::string postfix = ""; + std::string postfix = string_compose(_("\n%1+double-click to toggle inline-display"), Keyboard::tertiary_modifier_name ()); + if (_plug->has_editor()) { ARDOUR_UI_UTILS::set_tooltip (*this, string_compose (_("%1\nDouble-click to show GUI.\n%2+double-click to show generic GUI.%3"), e.name (Wide), Keyboard::primary_modifier_name (), postfix));