Welcome, Guest. Please login or register.
February 11, 2012, 08:30:29 PM
Home Help Search Login Register
News: All registrations must be approved because of spam, please contact support with your member name: http://www.chroniclogic.com/contact_form.php?section=feedback

+  Chronic Logic Forums
|-+  Pontifex
| |-+  Next Version Ideas
| | |-+  Undo function
« previous next »
Pages: [1] Print
Author Topic: Undo function  (Read 842 times)
beaujob
Full Member
***
Posts: 66



View Profile
« on: October 27, 2001, 06:40:29 PM »

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
Logged

"And once again, the day is saved thanks to the Powerpuff Girls."
Phonyboy
Newbie
*
Posts: 4


View Profile
« Reply #1 on: October 16, 2001, 03:46:07 PM »

I could need an Undo button.... really! You too?
Logged
baggio
Sr. Member
****
Posts: 101



View Profile
« Reply #2 on: October 27, 2001, 10:36:28 PM »

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.)  :P
They 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.
Logged

beaujob: I wouldn't mind doing kung-fu in the shadow of a bridge that I built while death and a clown get it on in the bathtub next door, but that's a long ways off.
Micha
Jr. Member
**
Posts: 12



View Profile
« Reply #3 on: October 28, 2001, 07:47:31 AM »

yeah, great idea, would love to see it implemented
Logged

Guest
« Reply #4 on: October 16, 2001, 04: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)

Logged
Andy24
Full Member
***
Posts: 84



View Profile
« Reply #5 on: October 28, 2001, 10:30:05 AM »

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.
Logged
Phonyboy
Newbie
*
Posts: 4


View Profile
« Reply #6 on: October 16, 2001, 04: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 ;-)
Logged
Entroper
Jr. Member
**
Posts: 33



View Profile WWW
« Reply #7 on: October 28, 2001, 12: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.
Logged

Entroper
Programmer, Serious Fortress Team
http://www.seriousfortress.com
pasqualz
Full Member
***
Posts: 72



View Profile
« Reply #8 on: October 17, 2001, 12: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 ;-)
Logged

"Call Mr. Plow That's my name, That name again is Mr. Plow" - Homer (Mr. Plow) Simpson
beaujob
Full Member
***
Posts: 66



View Profile
« Reply #9 on: October 25, 2001, 01: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.
Logged

"And once again, the day is saved thanks to the Powerpuff Girls."
pulsejet5
Jr. Member
**
Posts: 42



View Profile WWW
« Reply #10 on: October 27, 2001, 05:28:18 PM »

multiple undo buttons is a great idea but it would also be useful to have a redo button
Logged

Guest
« Reply #11 on: October 27, 2001, 06:30:32 PM »

Both would definately help, and should be easy enough to implement I would've thought.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!