undo-redo

How to undo/redo a sortable action in jqueryui?

Hi there, I have a sortable list(jquery ui), could you advise if it is possible to implement 'undo/redo' base on sortable? Imagine that, a item is dragged to a new placeholder, then I click "undo" button and the item will move to its original position. If I click "redo" button and the item will move to that new placeholder. Maybe some...

Undo, redo functionality with image manipulation in Flex

So I managed to learn some Flex and created a small app that: Loads an image to an Image component Transform the image (rotate, flip) with the Matrix Apply filter(s) Now I am thinking about to create some undo redo functionality. Each time I do a transformation / add an filter I want to be able to go back to the previous image (befor...

WPF RichTextBox TextChanged event - how to find deleted or inserted text ?!!

While creating a customized editor with RichTextBox, I've face the problem of finding deleted/inserted text with the provided information with TextChanged event. The instance of TextChangedEventArgs has some useful data, but I guess it does not cover all the needs. Suppose a scenario which multiple paragraphs are inserted, and at the sa...

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 should I make two separate commands, one for undo and one for redo, and call those from the m...

NSUndoManager with Core Data - Redo not working

I have a Core Data document-based app which support undo/redo via the built-in NSUndoManager associated with the NSManagedObjectContext. I have a few actions set up which perform numerous tasks within Core Data, wrap all these tasks into an undo group via beginUndoGrouping/endUndoGrouping, and are processed by the NSUndoManager. Undo wo...

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 button anywhere. Yet they say it has undo/redo. So how does the user trigger this? ...

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. Nonetheless if you change the file and press undo, the file is marked as unmodified. How do they...

How can you add a UIGestureRecognizer to a UIBarButtonItem as in the common undo/redo UIPopoverController scheme on iPad apps?

Problem In my iPad app, I cannot attach a popover to a button bar item only after press-and-hold events. But this seems to be standard for undo/redo. How do other apps do this? Background I have an undo button (UIBarButtonSystemItemUndo) in the toolbar of my UIKit (iPad) app. When I press the undo button, it fires it's action whic...

Implements an Undo/Redo in MVC

Hello, I have a Java application and I want to implement an Undo/Redo option. the value that I want to stock and that I want to be able to recover is an integer. My Class Model implements the interface StateEditable and I have to redefine the 2 functions restoreState(Hashtable<?, ?> state) and storeState(Hashtable<Object, Object> state...

How to combine Eclipse Databinding and UndoableOperations?

Hello... in my RCP - Project i'm using eclipse databinding to connect the ui with the backend. I want every change in an open editor to be undoable. My Domainmodell and UI are seperated in two different plugins. My current approach is to implement my own UpdateValueStrategy class for the databinding. I extend the normal UpdateValueSt...

Core Data deleteObject: sets attributes to nil

I am implementing an undo/redo mechanism in my app. This works fine for lots of cases. However, I can't undo past deleteObject:. the object is correctly saved in the undo queue, and I get it back and reinsterted into the Core Data stack just fine when calling undo. The problem is that all it's attributes are getting set to nil when I...

"Undoing deletes" in webapplication?

Hi everybody, I have seen more and more of the websites that offers a undo option after pressing a delete button. How is the logic done behind the button? Is the item deleted by javascript and "dissapears" from the users screen and a scheduled delete added, that gives the user time to undo it or how does it work? What are the other op...

How can I access the QUndoStack of a QTextDocument?

How can I access the QUndoStack of a QTextDocument? (For example, I want to be able to add custom QUndoCommand objects to the document's undo stack) ...

How do I undo/redo something in a Tkinter text widget?

I need to make both a Control-Z and Shift-Control-Z function in Python. Anyone have any Idea? Also I need to select the contents of an entire text widget, anyone know how to go about that? ...

Tkinter Text, undo/redo?

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. Anyone have any Idea? ...

Undo/Redo using NSUndoManager in iPhone SDK

Hi, I have been trying to design the Undo/Redo functionality in one of my app using NSUndoManager class and seeing some design difficulties. In my app, I just have one method -(IBAction) addLastBall:(Ball *)ball So, when a user chooses a button in the UI, I add a ball object to my array list. However, I don't have any action button to...

Implementing version-control functionality

Are there any recommended approaches for implementing version control functionality accessible to end users of a business application? The goal is to create a robust version control system for an application where users modify business objects (rather than text). I'm not looking for recommendations on version control software for devel...

addin to enhance vb6 undo redo funationality

The vb6 has a very basic undo and redo mechanism, stated here: http://msdn.microsoft.com/en-us/library/ee440706(office.12).aspx#CommunityContent i want it to undo changes like if i move a button to some plave and press ctrl z it should come back to its prev place. Can any guide me to a vb6 addin that does this. Appreciate you help ...

Data Entry screen updates Model objects in realtime, provides undo and redo, live updates to a model object using command pattern

The well known Command pattern is used often when you want to implement a model with Undo/Redo capabilities. I am looking for a reference implementation (example) of a simple Delphi form that implements undo/redo. From what I have seen, simple delphi data-entry forms with three Edit boxes, six memo boxes, and a few combo boxes and ot...

How to implement undo/redo in a MVVM application?

I'm working on a Silverlight LoB app which the designers want to have a tabbed-interface, similar to the interface of Visual Studio (we'll probably use the Telerik Rad controls for docking tabs). Having done a prototype, the interface is working well so far, but I'm having problems thinking of how to implement undo/redo functionality in ...