From 072b19a9bbe0bc3e81cdf1800c04f8e9768f6c4c Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 3 Oct 2010 17:08:06 -0300 Subject: [PATCH] Add a comment in Undo::updateUndo() about the usage of get_config_int() function. --- src/raster/undo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/raster/undo.cpp b/src/raster/undo.cpp index 6c67e929e..f5fd7681c 100644 --- a/src/raster/undo.cpp +++ b/src/raster/undo.cpp @@ -474,6 +474,12 @@ static bool out_of_group(UndoStream* undo_stream) // Called every time a new undo is added. void Undo::updateUndo() { + // TODO replace this with the following implementation: + // * Add the undo limit to Undo class as a normal member (non-static). + // * Add a new AseSprite (wrapper of a generic Sprite). + // * Add ASE delegates to listen changes in ASE configuration + // * AseSprite should implement a delegate to listen changes to the undo limit, + // * When a change is produced, AseSprite updates the wrappedSprite->getUndo()->setUndoLimit(). int undo_size_limit = get_config_int("Options", "UndoSizeLimit", 8)*1024*1024; // More differences.