Add editor selection state to session history via a SelectionMemento, which

combines selection related editor properties with the current editor selection.

The related editor properties are:
mouse mode,
zoom setting,
left frame of the canvas,
y origin of the canvas.

Selection state now includes region views (storing the underlying region id)
and time.

This patch also fixes a region mute undo bug.
This commit is contained in:
nick_m 2014-12-15 00:13:38 +11:00 committed by Paul Davis
parent 2c8a769aae
commit 9af9e17adc
24 changed files with 414 additions and 134 deletions

View file

@ -780,7 +780,7 @@ CrossfadeEditor::apply_preset (Preset *preset)
void
CrossfadeEditor::apply ()
{
_session->begin_reversible_command (_("Edit crossfade"));
the_editor().begin_reversible_command (_("Edit crossfade"));
XMLNode& before = xfade->get_state ();
@ -793,7 +793,7 @@ CrossfadeEditor::apply ()
)
);
_session->commit_reversible_command ();
the_editor().commit_reversible_command ();
}
void