I just found this paper: Supporting Selective Undo in a Code Editor which will be presented in ICSE 2015 conference. The authors show the history of changes graphically, so you can choose which changes to undo (and which one to keep). Azurite (can be download and installed from here) is...
ios,drawing,opengl-es-2.0,paint,undo-redo
I have decided to try a hybrid approach, where I save a bitmap snapshot every 10-15 actions, and use command lines to restore individual actions past the snapshots. A more in depth answer is offered here: http://stackoverflow.com/a/3944758/2303367
java,multidimensional-array,vector,undo-redo,image-editor
The problem might be, that for undo-redo to work the undo queue has to contain immutable data. This means that every change (atomic group of changes) to chroma would need a new 2D array copy; expensive. The solution is to keep only the change actions in the undo/redo queue. In...
javascript,html5,contenteditable,undo-redo,rangy
According to this link , none of the current browsers support the UndoManager spec. You can test that in your browser by trying to access document.undoManager which undefined in Chrome
Your undo and redo Buttons should call undoStack->undo() / undoStack->redo(). This will move the stack pointer and will call the undo/redo function of the current command. See the Qt Documentation for a detailed Explanation: http://qt-project.org/doc/qt-4.8/qundostack.html#undo Escpecially this part: New commands are pushed on the stack using push(). Commands can be...
java,image,backup,draw,undo-redo
Made some changes Using GridBagLayout Able to reset back to original image by pressing "Restart Step" Able to undo last action with the use of an image stack (i.e. a Stack of BufferedImage) Example code: import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.EventQueue; import java.awt.Font; import java.awt.Graphics; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import...
windows,keyboard-shortcuts,mysql-workbench,undo-redo
Unfortunately, the keyboard handling in MySQL Workbench is not always centralized. Especially the editor control (Scintilla) has its own keyboard scheme that is not influenced by what is defined in the xml. Probably would make a lot of sense to also set the hotkey in the editor when loading them...
I think this will help you. But basically you need to subclass the QUndoCommand, and do the stuff which you want to undo later in your derived class.