← Back to team overview

kicad-developers team mailing list archive

Undo paradigms

 

Hi Devs-

We have two different paradigms for undo/redo stacks. The eeschema paradigm and the pcbnew paradigm. In Eeschema, we add things directly to the undo stack, optionally appending to the last item. In Pcbnew, we queue an undo step in the frame until all items are added and then push the step to the stack.

Personally, I have found the pcbnew model to be much more robust and it avoids passing around the "are we appending now?" flag to each intermediate step. It also avoids having to change the undo stack when a command is canceled.

I'd like to move eeschema over to the pcbnew model. Is anyone working on this already?

-Seth


Follow ups