FAQ Database Discussion Community


How to undo / redo selective parts of code?

eclipse,undo,undo-redo
I am using Eclipse. It happens a lot when we develop code like this (assume it is developed sequentially, from top to bottom): Part 1 (*) Part 2 Part 3 Part 4 (*) Part 5 But we just figured out that parts 1 and 4 (marked with (*)) are wrong...

Java - Cannot gather 2D array inside vector

java,multidimensional-array,vector,undo-redo,image-editor
As I mentioned in my previous (not ansvered) question, I'm making a image editor that can be embeded to my program. So I came to a point, where I decided that image editor must have undo and redo. So I wrote this code: public Vector<Color[][]> undo = new Vector<Color[][]>(); size...

How to use QUndoCommand in Qt

c++,qt,undo-redo
Hello guys I am working on a graphics editor in which I transform QGraphicsItem using 3 different QSliders for scale, rotate Z-axis and rotate X or Y-axis. So how can I use QUndoCommand to achive it. I was reading documentation Push is used for pushing on the stack by which...

Qt Undo/Redo implementation, can’t connect to a button

c++,qt,undo-redo
I post the question also in the Qt Forum, here I am trying to implement an undo and redo commands in my application. I have a QTreeWidget and I’d like to let the user undo and redo an action (ex. change a value in a QTreeWidgetItem columns in the QTreeWidget...

Undo/Redo for iOS Painting App

ios,drawing,opengl-es-2.0,paint,undo-redo
I have been doing research on what the best way to achieve undo/redo functionality is for a painting app. I am using OpenGL ES 2.0 on iOS. The most popular approach seems to be to save a list of commands and VBOs to re-generate the painting to its previous state...