13
0
Fork 0

LT: thin the track-header context menu options

This commit is contained in:
Ben Loftis 2024-05-03 11:39:04 -05:00
parent 8289d47af6
commit 754942d39b
1 changed files with 26 additions and 0 deletions

View File

@ -656,6 +656,32 @@ RouteTimeAxisView::build_display_menu ()
MenuList& items = display_menu->items();
if (ARDOUR::Profile->get_livetrax()) {
items.push_back (MenuElem (_("Color..."), sigc::mem_fun (*this, &RouteUI::choose_color)));
items.push_back (SeparatorElem());
WeakRouteList r;
for (TrackSelection::iterator i = _editor.get_selection().tracks.begin(); i != _editor.get_selection().tracks.end(); ++i) {
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i);
if (rtv) {
r.push_back (rtv->route ());
}
}
if (r.empty ()) {
r.push_back (route ());
}
route_group_menu->build (r);
items.push_back (MenuElem (_("Group"), *route_group_menu->menu ()));
items.push_back (SeparatorElem());
items.push_back (MenuElem (_("Remove"), sigc::mem_fun(_editor, &PublicEditor::remove_tracks)));
return;
}
items.push_back (MenuElem (_("Color..."), sigc::mem_fun (*this, &RouteUI::choose_color)));
items.push_back (MenuElem (_("Comments..."), sigc::mem_fun (*this, &RouteUI::open_comment_editor)));