Ed Leafe wrote:
> On Oct 25, 2009, at 11:00 AM, Paul McNett wrote:
> 
>> 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.
> 
>       And how does that handle add/remove objects?

It doesn't, yet, but instead of storing the last prop value in the LIFO, I'd 
store 
the propdict of the object when the user removed it, and the reference to the 
live 
object when the user added it.

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]

Reply via email to