mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Hide/Remove to apply to the track selection.
git-svn-id: svn://localhost/ardour2/branches/3.0@9090 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8f45604f27
commit
eabe5b31f8
8 changed files with 66 additions and 50 deletions
|
|
@ -5026,16 +5026,28 @@ Editor::timeaxisview_deleted (TimeAxisView *tv)
|
|||
}
|
||||
|
||||
void
|
||||
Editor::hide_track_in_display (TimeAxisView* tv, bool /*temponly*/)
|
||||
Editor::hide_track_in_display (TimeAxisView* tv, bool apply_to_selection)
|
||||
{
|
||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv);
|
||||
if (apply_to_selection) {
|
||||
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ) {
|
||||
|
||||
if (rtv && current_mixer_strip && (rtv->route() == current_mixer_strip->route())) {
|
||||
// this will hide the mixer strip
|
||||
set_selected_mixer_strip (*tv);
|
||||
TrackSelection::iterator j = i;
|
||||
++j;
|
||||
|
||||
hide_track_in_display (*i, false);
|
||||
|
||||
i = j;
|
||||
}
|
||||
} else {
|
||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv);
|
||||
|
||||
if (rtv && current_mixer_strip && (rtv->route() == current_mixer_strip->route())) {
|
||||
// this will hide the mixer strip
|
||||
set_selected_mixer_strip (*tv);
|
||||
}
|
||||
|
||||
_routes->hide_track_in_display (*tv);
|
||||
}
|
||||
|
||||
_routes->hide_track_in_display (*tv);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue