summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2006-01-23 18:59:30 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2006-01-23 18:59:30 +0000
commit7627d6f377c73756c56f9c4734f278b72854f40f (patch)
tree431de5690649ade78c3cf0b46021c235cd43d705 /gtk2_ardour/editor_ops.cc
parentdfcd837d67f7653addde7f8760a6b7dcf94b51fc (diff)
add some undo to previous selection stuff
git-svn-id: svn://localhost/trunk/ardour2@290 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 640d8b09b8..a5c04826c6 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -1324,7 +1324,9 @@ Editor::select_all_from_punch()
}
(*iter)->get_selectables (location->start(), location->end(), 0, DBL_MAX, touched);
}
- selection->set (touched);
+ begin_reversible_command (_("select all from punch"));
+ selection->set (touched);
+ commit_reversible_command ();
}
@@ -1343,7 +1345,9 @@ Editor::select_all_from_loop()
}
(*iter)->get_selectables (location->start(), location->end(), 0, DBL_MAX, touched);
}
- selection->set (touched);
+ begin_reversible_command (_("select all from loop"));
+ selection->set (touched);
+ commit_reversible_command ();
}
@@ -1367,9 +1371,11 @@ Editor::select_all_after_cursor (Cursor *cursor, bool after)
list<Selectable *> touched;
if (after) {
+ begin_reversible_command (_("select all after cursor"));
start = cursor->current_frame ;
end = session->current_end_frame();
} else {
+ begin_reversible_command (_("select all before cursor"));
start = 0;
end = cursor->current_frame ;
}
@@ -1380,6 +1386,7 @@ Editor::select_all_after_cursor (Cursor *cursor, bool after)
(*iter)->get_selectables (start, end, 0, DBL_MAX, touched);
}
selection->set (touched);
+ commit_reversible_command ();
}
void