13
0

add undo to select within (mouse and loop/punch ranges). add right click menu to loop/punch ranges to select all within

git-svn-id: svn://localhost/trunk/ardour2@293 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Nick Mainsbridge 2006-01-23 22:08:41 +00:00
parent 503e32b2a6
commit 3ca8d77dfd
2 changed files with 4 additions and 3 deletions

View File

@ -528,7 +528,8 @@ Editor::build_transport_marker_menu ()
items.push_back (MenuElem (_("Set from range"), mem_fun(*this, &Editor::marker_menu_set_from_selection)));
items.push_back (SeparatorElem());
items.push_back (MenuElem (_("Hide"), mem_fun(*this, &Editor::marker_menu_hide)));
items.push_back (SeparatorElem());
items.push_back (MenuElem (_("Select all in Range"), mem_fun(*this, &Editor::marker_menu_select_all_from_range)));
}
void

View File

@ -1276,13 +1276,13 @@ Editor::select_all_within (jack_nframes_t start, jack_nframes_t end, double top,
}
(*iter)->get_selectables (start, end, top, bot, touched);
}
begin_reversible_command (_("select all within"));
if (add) {
selection->add (touched);
} else {
selection->set (touched);
}
commit_reversible_command ();
return !touched.empty();
}