[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UnDo/ ReDo Buffer ?


Hi

I developed an app for scanning documents. It depicts the scans in a ListView with a thumbnail preview. The order of the scans in the ListView can be changed and scans can also be deleted. What was missing so far is an UnDo function. So I asked an AI about a suitable concept and got a reasonable proposal based on a class for scanned document and a collection of these classes and a history stack. I tested it in a pilot project and it turned out to be feasible and efficient.

In parallel I found this in the Gambas-wiki: https://gambaswiki.org/edit/snippets/undoredobuffer

I don't understand this chapter. It seems to tell the reader, that there is a generic solution for any thinkable undo/redo action in an app. As this is beyond my imagination I kindly ask for some guidance resp. concepts for UnDo/ReDo functions und sample projects if available.

Best regards

Claus


Follow-Ups:
Re: UnDo/ ReDo Buffer ?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>