From 68c106eab521ecbf85ac1d93b168b5814dda0df1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 7 Jul 2017 14:47:36 +0200 Subject: Fix VCA Automation Lane selection This moves child-selection API up into TAV (Superclass of StripableTAV which actually owns the children) --- gtk2_ardour/time_axis_view.cc | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/time_axis_view.cc') diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index c1ec7767e5..05d93f696c 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -1017,15 +1017,31 @@ TimeAxisView::remove_child (boost::shared_ptr child) * @param result Filled in with selectable things. */ void -TimeAxisView::get_selectables (framepos_t /*start*/, framepos_t /*end*/, double /*top*/, double /*bot*/, list& /*result*/, bool /*within*/) +TimeAxisView::get_selectables (framepos_t start, framepos_t end, double top, double bot, list& results, bool within) { - return; + for (Children::iterator i = children.begin(); i != children.end(); ++i) { + if (!(*i)->hidden()) { + (*i)->get_selectables (start, end, top, bot, results, within); + } + } +} + +void +TimeAxisView::set_selected_points (PointSelection& points) +{ + for (Children::iterator i = children.begin(); i != children.end(); ++i) { + (*i)->set_selected_points (points); + } } void -TimeAxisView::get_inverted_selectables (Selection& /*sel*/, list& /*result*/) +TimeAxisView::get_inverted_selectables (Selection& sel, list& results) { - return; + for (Children::iterator i = children.begin(); i != children.end(); ++i) { + if (!(*i)->hidden()) { + (*i)->get_inverted_selectables (sel, results); + } + } } void -- cgit v1.2.3