From 3ca8d77dfd5fdec3c580d1c8ee9eaf8aabd61316 Mon Sep 17 00:00:00 2001 From: Nick Mainsbridge Date: Mon, 23 Jan 2006 22:08:41 +0000 Subject: [PATCH] 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 --- gtk2_ardour/editor_markers.cc | 3 ++- gtk2_ardour/editor_ops.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/editor_markers.cc b/gtk2_ardour/editor_markers.cc index 568226fb60..233a8a10b6 100644 --- a/gtk2_ardour/editor_markers.cc +++ b/gtk2_ardour/editor_markers.cc @@ -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 diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index bebe3c7cf0..e8d0763164 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -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(); }