From 1fca43791c64d324a420c2b3bc2d6054327933bb Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Wed, 11 Mar 2015 15:33:03 -0500 Subject: more verbose captions on automation track headers; include the plug name. --- gtk2_ardour/automation_time_axis.cc | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'gtk2_ardour/automation_time_axis.cc') diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index aa00aa570c..a4b7a7b005 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -91,12 +91,26 @@ AutomationTimeAxisView::AutomationTimeAxisView ( , _automatable (a) , _parameter (p) , _base_rect (new ArdourCanvas::Rectangle (_canvas_display)) - , _name (nom) , _view (show_regions ? new AutomationStreamView (*this) : 0) , auto_button (X_("")) /* force addition of a label */ , _show_regions (show_regions) { + //concatenate plugin name and param name into the tooltip + string tipname = nomparent; + if (!tipname.empty()) { + tipname += ": "; + } + tipname += nom; + ARDOUR_UI::instance()->set_tip(controls_ebox, tipname); + //plugin name and param name appear on 2 separate lines in the track header + tipname = nomparent; + if (!tipname.empty()) { + tipname += "\n"; + } + tipname += nom; + _name = tipname; + CANVAS_DEBUG_NAME (_canvas_display, string_compose ("main for auto %2/%1", _name, r->name())); CANVAS_DEBUG_NAME (selection_group, string_compose ("selections for auto %2/%1", _name, r->name())); CANVAS_DEBUG_NAME (_ghost_group, string_compose ("ghosts for auto %2/%1", _name, r->name())); @@ -170,13 +184,6 @@ AutomationTimeAxisView::AutomationTimeAxisView ( name_label.set_name (X_("TrackParameterName")); name_label.set_ellipsize (Pango::ELLIPSIZE_END); - string tipname = nomparent; - if (!tipname.empty()) { - tipname += ": "; - } - tipname += _name; - ARDOUR_UI::instance()->set_tip(controls_ebox, tipname); - /* add the buttons */ controls_table.set_border_width (1); controls_table.remove (name_hbox); -- cgit v1.2.3