Chronic Logic

Pontifex => Next Version Ideas => Topic started by: beaujob on October 28, 2001, 12:40:29 AM

Title: Undo function
Post by: beaujob on October 28, 2001, 12:40:29 AM
Since CL's got a way to store the last step, then all they need to do is make a dropout stack of that data structure.  It's very easy.  Just have a static array, and pretend it's a ring, then keep a pointer to the most recent step.  As you undo/redo, you can move the pointer backwards and forwards.  You also keep a pointer to the tail so you know when you've gotten to the bottom of possible undoing.  This is something they teach every sophomore CS student.  (like me last year.)  :P
Title: Undo function
Post by: Phonyboy on October 16, 2001, 09:46:07 PM
I could need an Undo button.... really! You too?
Title: Undo function
Post by: baggio on October 28, 2001, 04:36:28 AM
Quote: from beaujob on 7:40 pm on Oct. 27, 2001
... Just have a static array, and pretend it's a ring, then keep a pointer to the most recent step.  As you undo/redo, you can move the pointer backwards and forwards....Sounds a lot like a circular queue ;)This is something they teach every sophomore CS student.  (like me last year.)  :PThey also keep teaching it to 5th year EET seniors like me.  Not so much that they keep reteaching it, but we keep using it in our projects.
Title: Undo function
Post by: Micha on October 28, 2001, 01:47:31 PM
yeah, great idea, would love to see it implemented
Title: Undo function
Post by: on October 16, 2001, 10:04:21 PM
There is one, I've used it many times. Over on the right, above 'Clear'.

:-)

(Edited by Chillum at 3:16 pm on Oct. 16, 2001)

Title: Undo function
Post by: Andy24 on October 28, 2001, 04:30:05 PM
I hate it when I need to keep changing forward and backwards to delete things. it would be nice if I could just use the undo.
Title: Undo function
Post by: Phonyboy on October 16, 2001, 10:07:22 PM
drats... I guess I shouldn´t have started to post here before actually checking out the full version which I downloaded some minutes ago ;-)
Title: Undo function
Post by: Entroper on October 28, 2001, 06:15:54 PM
It's not really a queue, since the order you take things out is like a stack.  It's basically a stack that overwrites the bottom elements after a certain number of elements are in it.  :)  I think it would be pretty cool to have multiple undo layers.
Title: Undo function
Post by: pasqualz on October 17, 2001, 06:39:34 PM
Hey no problem, we all have had one time when the answer is staring us in the face and we don't see it ;-)
Title: Undo function
Post by: beaujob on October 25, 2001, 07:22:49 PM
Though, it's good that he mentions the Undo button.  I would like to see a deeper undo stack.  Perhaps keep track of the last 10-20 operations?  Sometimes you make two mistakes in a row before you realize that the first mistake even happened.
Title: Undo function
Post by: pulsejet5 on October 27, 2001, 11:28:18 PM
multiple undo buttons is a great idea but it would also be useful to have a redo button
Title: Undo function
Post by: on October 28, 2001, 12:30:32 AM
Both would definately help, and should be easy enough to implement I would've thought.