Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: undo and redo ?

Reply
Thread Tools

RE: undo and redo ?

 
 
Robert Brewer
Guest
Posts: n/a
 
      01-02-2004
Somebody asked:
> > anyone can inspires me how we can
> > achieve undo and redo function ?


Diez B. Roggisch replied:
> When working with a MVC-approach, the actions you the user
> can invoke on the
> model could be created as objects that know how to undo/invert their
> effects. Then you store a list of these actions and
> performing undo takes
> the last action and apply its inverted action to your model.



An excellent point of inspiration can be found via the GoF:
http://www.amazon.com/exec/obidos/ASIN/0201633612

Synopsis/discussion at:
http://c2.com/cgi/wiki?CommandPattern


FuManChu

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undo-Redo, copy instance, custom events and a problem King Python 0 07-26-2010 05:32 AM
Undo/Redo, Subclasses and Lots of Listeners Jason Cavett Java 0 06-15-2007 08:26 PM
implementing undo and redo for textarea's - does Javascript support static variables? lkrubner@geocities.com Javascript 6 12-10-2004 09:51 PM
undo and redo ? black Python 1 01-02-2004 01:53 PM
undo and redo black Python 0 12-23-2003 03:56 AM



Advertisments