Support for Undo?redo.

Signed-off-by: Reinual <michel.launier@videotron.ca>