mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
r191@gandalf: fugalh | 2006-07-24 19:50:10 -0600
All the obvious MementoCommand grunt work. Now there's some add_undo/add_redo_no_execute sprinkled around where one is separated from the other (e.g. in different callbacks) or perhaps even where there's only an undo and no redo. Also some sigc-based undo/redo pairs that probably need their own Command class. git-svn-id: svn://localhost/ardour2/branches/undo@692 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
55159005b9
commit
b7bffbe7a2
16 changed files with 191 additions and 125 deletions
|
|
@ -203,9 +203,10 @@ Editor::do_timestretch (TimeStretchDialog& dialog)
|
|||
return;
|
||||
}
|
||||
|
||||
session->add_undo (playlist->get_memento());
|
||||
XMLNode &before = playlist->get_state();
|
||||
playlist->replace_region (aregion, *new_region, aregion.position());
|
||||
session->add_redo_no_execute (playlist->get_memento());
|
||||
XMLNode &after = playlist->get_state();
|
||||
session->add_command (MementoCommand<Playlist>(*playlist, before, after));
|
||||
|
||||
i = tmp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue