[from dabo-users to dabo-dev] Ed Leafe wrote: > On Oct 25, 2009, at 1:12 AM, jvandal wrote: > >> OH I made a mistake and want to correct my mistake so I try to use >> ""Undo >> from the toolbar, I can't see anything happening. > > > Undo is not yet implemented. The reason is that it it's hard to > "diff" two different states, so we would have to store full copies of > the design, and that can really slow down the tool.
I just added undo/redo to reportdesigner, after harboring the same reservations as you for years. The solution was to hook into when a property change was taking place (hooks were already in place - setProp() for each object). Then I merely store a LIFO with the oldval. When the user undo's, I pop that off the LIFO and set the property to that oldval. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
