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 do I undo a git rebase and redo as a git merge

I ran a git rebase on a branch and fixed all the conflicts, then realised for this particular branch I need to run git merge instead, to keep the history. Is there a way to "undo" the rebase but automatically reapply my fixes when running the git…
ACyclic
  • 5,904
  • 6
  • 26
  • 28
0
votes
1 answer

Kineticjs Undo / Redo with event handlers, shapes and images

I am in the middle of development of a designer drawing tool using Canvas HTML5. I will have features like: add image, add text, add shape, rotate, scale, color, etc... I was in search of a nice way to manage action history (undo, redo) and I have…
Ervin
  • 2,374
  • 4
  • 30
  • 44
0
votes
1 answer

Backbone.Undo.js not working as desired. In fact not working at all

I am trying to implement Backbone.js Undo manager with my existing code. My application is kind of template builder. Here is console.log of main object. http://screencast.com/t/0JDfCY7l As you can see it has palette and editor object. I want to…
user3241013
  • 409
  • 1
  • 4
  • 6
0
votes
1 answer

Undo and Redo in Database Recovery

When do we use undo and redo operations in a database recovery? For instance, consider the following questions asked in an exam (not a homework) Consider the following log sequence of two transactions on a bank account: With an initial balance of…
Unni
  • 5,348
  • 6
  • 36
  • 55
0
votes
1 answer

Undoing older actions than the most recent one, using NSUndoManager or some other class

I'm developing an app in which a "non-sequential" undo mechanism is desirable for a certain type of actions. With non-sequential I mean that actions can be undone selectively and without regard to their order in history (for example: having 5…
Lukas Kalinski
  • 2,213
  • 24
  • 26
0
votes
2 answers

Undo/redo Plugin in jquery

Is there any undo/redo plugin in jquery. If not how one can implement and undo/redo mechanism on a particular html emlement. thanks.
Jehanzeb afridi
  • 186
  • 2
  • 4
  • 12
0
votes
1 answer

How would I save a CGContext into an NSUndoManager

I want to be able to save a CGContext into my NSUndoManager using these methods - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint currentPoint = [touch…
Jab
  • 26,853
  • 21
  • 75
  • 114
0
votes
3 answers

HTML annotations (selecting, highlighting, remove format)

I am working on a cross browser web based annotation toolset, which allows the users to select any part of a web page HIGHLIGHT, if you select: john is
  • big
  • dump
  • Result john…
    Choesang
    • 1,225
    • 1
    • 14
    • 23
    0
    votes
    0 answers

    How to implement a stack with limited number of elements?

    I have recently created an elaborate Undo/Redo mechanism for a programm of mine. It is an editor that works with specific XML files. However, since certain changes may or may not change any amount of nodes in the XML file, I am currently backing up…
    LWChris
    • 3,320
    • 1
    • 22
    • 39
    0
    votes
    1 answer

    How to implement undo in a QLineEdit heir?

    How to use QLineEdit's built-in undo/redo functionality while implementing custom input logic? I am implementing a custom editor for amounts of money for a cashier's efficient work. Basic features are: The format is always ^\d+,\d{2}$; When cursor…
    0
    votes
    1 answer

    Oracle flashback: Is there a way to get the REDO SQL queries?

    Within the oracle database 11g the table FLASHBACK_TRANSACTION_QUERY provides the UNDO_SQL column which SQL reverses the modification done by a specific previously executed query. However, I need the REDO_SQL (the original SQL which has been…
    MRalwasser
    • 15,605
    • 15
    • 101
    • 147
    0
    votes
    1 answer

    Why isn't my undo/redo code functioning as required?

    I need my undo/redo code to function like the undo/redo features found in Microsoft Notepad, Microsoft Word etc. (I am creating a Word Processor). Currently, my Undo and Redo code is working to an extent. But there are a number of issues with the…
    Toby
    • 377
    • 1
    • 10
    • 23
    0
    votes
    1 answer

    When I redo using this undo/redo code, the first thing undone cannot be redone

    I am using the following code in order to implement undo/redo into my application: public struct UndoSection { public string Undo; public int Index; } -- public UndoSection(int index, string undo) { Index =…
    Toby
    • 377
    • 1
    • 10
    • 23
    0
    votes
    1 answer

    Where to put the commands into Undo/redo stack when executing command in XAML?

    I am using the command pattern, and an undo action for each command. My View is bound to the commands via the viewmodel. ExampleCode: XAML:
    loother
    • 199
    • 1
    • 8
    0
    votes
    1 answer

    How to unpush a command that does not really run in Qt?

    I am using Qt's undo/redo framework. I push an undo command to an undo stack. However, the functions called in the redo of the command sometimes does nothing since some requirements are not met. In this case, how to let the undo stack go back to the…
    user1899020
    • 13,167
    • 21
    • 79
    • 154