Questions tagged [undo-redo]

For issues relating to undo and/or redo operations.

In graphical use interfaces, Undo is a command used to erase the last (text or command) change done to the document reverting it to an older state. Redo is a command that reverses the undo or advances the buffer to a more current state.

Common key bindings for undo include Ctrl+Z or Command-Z, and common key bindings for redo include Ctrl+Y or Command-Shift-Z.

389 questions
16
votes
3 answers

How to start using the .NET Framework UndoEngine Class?

Today I've discovered that the FW 4.5 has their own undoredo manager (if I understood good) http://msdn.microsoft.com/en-us/library/System.ComponentModel.Design.UndoEngine%28v=vs.110%29.aspx Well, I can't find any example about how to start using…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
15
votes
3 answers

How to implement an "undo" feature using Python/Django

I have a Django application where I allow a user to import a CSV file with contact data (membership #, first name, last name, etc). When they import the file, the application checks the database for a matching record and either: 1) inserts a new…
Ben S
  • 1,407
  • 1
  • 13
  • 27
14
votes
2 answers

Implementing the command pattern

I am in the design process of an application, and I would like to use the command pattern for undo/redo purposes. I did some research into the command pattern but the only thing I don't get is: Should a command have the undo and redo methods, or…
slayerIQ
  • 1,488
  • 2
  • 13
  • 25
14
votes
3 answers

How to manage undo after swipe to delete in android ListView?

I need to implement swipe to delete in a ListView with Undo function as in Gmail App I know that there are questions already asking about swipe to delete like Remove item listview with Slide - Like Gmail and android swipe to delete list…
user2364935
  • 391
  • 2
  • 4
  • 10
13
votes
7 answers

How to implement 'undo' operation in .net windows application?

Assume that, a win form has certain input fields and user enters/re-enters some data. How to retain data previously entered by 'undo' operation? Just I want to know the best way to accomplish it.
Dhanapal
  • 14,239
  • 35
  • 115
  • 142
13
votes
3 answers

How to design a SQL db with undo-redo?

I'm trying to figure out how to design my DB tables to allow Undo-Redo. Pretend you have a tasks table with the following structure: id title memo date_added date_due Now assume that over a few days…
brian h
  • 1,633
  • 3
  • 12
  • 15
12
votes
1 answer

undo redo functionality in Angular app

I am thinking of ways to implement undo,redo functionality in an angular app. The first and most basic idea was to use a model that completely describes the app internals, lets call it AppModel. On every change worth recording, you simply create a…
sanjihan
  • 5,592
  • 11
  • 54
  • 119
12
votes
1 answer

How does undo/redo basically work on iPhone OS?

My app doesn't use Core Data yet. Is it true that I must use Core Data for undo/redo? And: How does the user do the undo/redo? I've never seen it in action, and never ever used it. Don't know how I should do it if I wanted to. There's no undo/redo…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
12
votes
4 answers

Is it possible to insert text in textarea and update undo/redo queue?

A few days ago, I posted a question regarding how to update text in Internet Explorer. As it appears, the method used doesn't also works in Firefox. This made me thinks if there is a way to modify the value of a textarea and update the undo/redo…
Cyril N.
  • 38,875
  • 36
  • 142
  • 243
11
votes
3 answers

how to implement undo/redo operation without major changes in program

Hi I'm about to add new functionality to application which I'm currently writting. I need to write a undo/redo fnctionality. However 90% of our application is ready and I don't know what is the best way to implementing this functionality without…
pieere
  • 141
  • 1
  • 4
11
votes
2 answers

internet explorer alternative to document.execCommand("insertText",...), for text insertion that can be undone/redone by the user

When the user edits a contenteditable div, and press some keys, I would like to override the default behavior. For instance, I want to insert a normal line break when the user press ENTER. I do that using document.execCommand("insertText",...) This…
Oli
  • 15,935
  • 7
  • 50
  • 66
10
votes
5 answers

Why is there no undo/redo in Git?

As far as I know, when you want to undo something in Git you have to explicitly find the command to undo whatever it is you've done and issue it. For instance, one way among many to undo a commit and redo it is to follow the example from here, $ git…
john
  • 3,043
  • 5
  • 27
  • 48
10
votes
3 answers

How to implement undo/redo with programatic change of the textValue of a NSTextView?

I created a simple demo app with a NSTextView and a button, the provided a NSTextViewDelegate to the textView and added an action: - (IBAction)actionButtonClicked:(id)sender { NSString *oldText = [[[self.textView textStorage] string] copy]; …
user808667
  • 333
  • 3
  • 11
9
votes
2 answers

"Undo" history button clear after run macro excel

I have a macro that fires on the "Worksheet_SelectionChange" event. The macro validate data of one column, it changes the background color of the cell if its wrong. The problem is after run the macro, it clears the history of changes (Ctrl Z) of all…
eicruzado
  • 307
  • 2
  • 3
  • 7
9
votes
2 answers

Undo and redo features in a Tkinter Text widget?

I need to make both a Control + Z and Shift + Control + Z function in a Tkinter Text widget, so that one may undo and redo things. Does anyone have an idea on how to do it?
rectangletangle
  • 50,393
  • 94
  • 205
  • 275
1
2
3
25 26