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
0
votes
1 answer

How can we do undo and redo functionality for a swt texteditor

I have created a swt textbox and trying to do undo and redo functionality but when i press "ctrl+z" the listener itself is not working .so how can we do undo and redo operations.the code to implement undo and redo is as follows private static class…
0
votes
0 answers

Segmentation fault when storing top of stack into structure

I'm trying to implement a undo/redo function in a super simple text editor, as a project. I have a class, CommandProcessor, that takes what buttons the user pressed, and if it matches, executes a generic command that calls an execute() function of…
Alex
  • 2,145
  • 6
  • 36
  • 72
0
votes
1 answer

I get a "Edit level mismatch in CopyState" error in CSLA depending on where my BeginEdit is executed

I'm currently using CSLA 4.5 and am running into an issue where I get an error Edit level mismatch in CopyState What's strange is that if I execute a BeginEdit() call on the business object in one section of code, it has no problem, but if I place…
michael
  • 14,844
  • 28
  • 89
  • 177
0
votes
1 answer

Clearing the last graphic drawn? (Undo/Redo drawing)

public function drag(e:MouseEvent) { lineDraw(mouseX, mouseY); e.updateAfterEvent(); } public function lineDraw(X:int, Y:int):void { currentX = X; currentY = Y; graphics.lineStyle(size,…
Benjamin
  • 13
  • 1
0
votes
0 answers

How to implement undo/redo of audio effects in my audio editor?

I got an audio editor project where the user can apply effects like normalize, reverse or compress on the audio file that has been uploaded to the application. I would like to know how undo/redo can be implemented on such functionality's.
Sanjay
  • 91
  • 1
  • 1
  • 10
0
votes
1 answer

How Netbeans Editors know that file is not modified after undo?

Netbeans uses standard UndoManager API for implementation of undo functionality. But neither standard javax.swing.undo.UndoManager nor org.openide.awt.UndoRedo.Manager doesn't have any method to mark states as saved and check modified status.…
Ha.
  • 3,454
  • 21
  • 24
0
votes
1 answer

Qt 5, Undo/Redo for every QTextBrowser in QTabWidget

I want to create multitab text and html editor .I ecountered the problem : i need to implement undo/redo operation for each text browser individually .But the operations are applied to all windows at oncee. How can i fix it ?
Creati8e
  • 21
  • 1
  • 7
0
votes
0 answers

Multiple Undo/Redo for datagridview

Here's my source code http://pastebin.com/embed_js.php?i=5unrfdhC for multiple undo/redo private void btn_Undo_Click(object sender, EventArgs e) //To Undo previous searched record { if (redoStack.Count == 0 ||…
0
votes
1 answer

Multiple undo / Redo

How do I have multiple undo & redo function with my following code ? private void btn_Undo_Click(object sender, EventArgs e) //To Undo previous searched record { if (_dataSet != null && _dataSet.Tables.Count > 0 && _lastDtTable2 !=…
0
votes
1 answer

Explicitly calling redo() under the Qt Undo Framework

I am using the Qt Undo Framework (http://qt-project.org/doc/qt-4.8/qundo.html), and I want to explicitly call the undo() and redo() on the QUndoStack. I looked up the Qt docs and searched to see if this was supported, but couldn't find anything. So,…
endgame
  • 35
  • 5
0
votes
1 answer

Maintain undo functionality with createRange()

I'm working on a Markdown text editor using a contenteditable and Rangy to easily add links and images. The problem is that rangy.createRange();, an important function in the Rangy library, cancels the ability to undo an action (text added in the…
Armand Grillet
  • 3,229
  • 5
  • 30
  • 60
0
votes
2 answers

Check has undo/redo backbone undo

I am using backbone undo js for undo and redo,I need to check whether undo or redo is available. is there any method like hasundo() and hasredo() View = Backbone.View.extend({ initialize: function () { // If the…
Shijin TR
  • 7,516
  • 10
  • 55
  • 122
0
votes
2 answers

How do I redo multiple times in emacs with a shortcut like ctrl+_

I like how I can undo multiple times with ctrl+_, but I can't seem to figure out how to redo that supports multiple times with a similar quick shortcut. Also, I can't seem to figure out how to skip multiple lines up and down at once.
David Zorychta
  • 13,039
  • 6
  • 45
  • 81
0
votes
1 answer

Undo functionality is not working for br tag in Rich Text Editor in CQ

We have customized a button which add "br" tag at the cursor position of Rich Text Editor in CQ We are achieving this by creating element by using Document.createElement("br") and then appending this element as child node of a parent node. Now,…
0
votes
1 answer

Redo and Undo for shapes using SurfaceView in android

I am trying to develop an app similar to paint app. I want allow user to perform redo or undo operations over canvas. I searched a lot, but dint find any example that explains about redo and undo operations for Circle, Rectangle etc. most of the…
Mohit
  • 505
  • 8
  • 31