summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2015-03-11 15:33:03 -0500
committerBen Loftis <ben@harrisonconsoles.com>2015-03-11 15:36:52 -0500
commit1fca43791c64d324a420c2b3bc2d6054327933bb (patch)
tree4406e7e24d583b5a458a56cf30aafaa613ceb122
parent8445e8c2837498572a373d27fd2bc0dac99f4bab (diff)
more verbose captions on automation track headers; include the plug name.
-rw-r--r--gtk2_ardour/automation_time_axis.cc23
1 files changed, 15 insertions, 8 deletions
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);