The well known Command pattern is used often when you want to implement a model with Undo/Redo capabilities. I am looking for a reference implementation (example) of a simple Delphi form that implements undo/redo.
From what I have seen, simple delphi data-entry forms with three Edit boxes, six memo boxes, and a few combo boxes and ot...
I have seen numerous examples of the Command pattern
But they all tend to be in the context of a desk-top application.
i.e "Command decouples the object that invokes the operation from the one that knows how to perform it"
In the context of a pure HTML (but Zend Framework MVC driven) website, I am thinking of a user 'clicking a link' ...
Is it possible implement the GOF command pattern using a Queue of Action delegates?
I have been trying to wrap my head around it for a while and I am stumped because each of the possible actions I want to add to the queue may have a varing number of parameters.
Any suggestions? Am I barking up the wrong tree by focusing on the command ...