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
4 answers

Undo Redo Stack

I'm making a simple UndoRedo Framework using Stacks but for some reason something is not working. I have this code to store an object's property, in this case a ColorBlend public static ColorBlend _BG_Blend = new ColorBlend(); public ColorBlend…
Adrao
  • 412
  • 5
  • 18
0
votes
1 answer

Best practice for implementing undo-redo in iPhone

I am trying to develop an iPhone application (demo project) using objective-C which can apply multiple photographic effects to images. The application is up and running but I thought of implementing an 'undo' and 'redo' function in the UI. I have…
metsburg
  • 2,021
  • 1
  • 20
  • 32
0
votes
4 answers

android best way to implement undo/redo on ArrayList

sorry about the general nature of this question but i don't want to start with any assumptions for fear of missing the big picture i have a document editing kind of app (music notation) and want to implement undo and redo. all the relevant data is…
steveh
  • 1,352
  • 2
  • 27
  • 41
0
votes
1 answer

Undo Redo in richtextbox using undo and redo functions

I have tried if (e.Control && (e.KeyCode == Keys.Z)) RTB.Undo(); and .Redo() but nothing reflected in the richtextbox. I tried with sendmessage too. Any help would be great.
Milee
  • 1,191
  • 1
  • 11
  • 29
0
votes
1 answer

implement Undo Redo in form based editor

I am developing a multipage Form Editor to edit/create a customized XML file in Eclipse. structure is looks like: Implementation class is MyXMLFormEditor which extends FormEditor. Each page of FormEditor extends FormPage (i.e. MyXMLFormPage extends…
User_86
  • 265
  • 1
  • 4
  • 13
0
votes
1 answer

Undo/Redo with MVVM using a circular queue of lazy references

I'm using MVVM and WPF 4.5 Ribbon to activate views. Each activate command looks like this: public void ActivateSearchDocuments() { DisplayName = "Seach Documents - App"; ActivateItem(IoC.Get()); } I know I can implement an…
Erre Efe
  • 15,387
  • 10
  • 45
  • 77
0
votes
2 answers

pattern for "switching an application feature" e.g. undo/redo

I like to have a pattern for switching a feature, which at my case is Undo / Redo. I don't want a pattern for Undo/Redo. This is working fine. But a good way to skip the lines of code, that Undo / Redo requires. Example using…
deafjeff
  • 754
  • 7
  • 25
0
votes
2 answers

Is it possible to implement an undo/redo engine with JavascriptMVC?

Is it possible to implement an undo/redo engine with JavascriptMVC?
Johan Carlsson
  • 743
  • 3
  • 11
  • 24
0
votes
0 answers

Setting the actionCommand of a keyboard shortcut

As part of an annotation program, I have an excerpt of code which is responsible for undoing the last point plotted on an image: Action undoListener = new AbstractAction(){ public void actionPerformed(ActionEvent actionEvent){ …
Craig Innes
  • 1,573
  • 11
  • 23
0
votes
1 answer

how to implement redo in lua

I have just been introduced to the LUA language, and I am embarking on my first project. However, the biggest challenge I am facing now is how to implement or make an Undo and Redo. However, to make issues clear, the project is a Custom Text Editor,…
user1421716
0
votes
3 answers

Visual C++ Undo and Redo operations

I have a rather large application I'm trying to make in Visual-C++, and I am now trying to add undo/redo functionality. Having a rather large amount of events (button clicks, label text changed, etc.), I would like to find a way to undo/redo…
SuperPrograman
  • 1,814
  • 17
  • 24
0
votes
2 answers

Need some guide on simple undo/redo

This is my first C# application, entirely self-taught without any prior software programming background. I did some research on Undo/Redo but could not find anything helpful (or easy to understand). Therefore, I'm hoping someone can help me in…
-1
votes
1 answer

How to add just 10 items

I have undoredomanager. And I need to view in listview only 10 entries. already seething brain how to do it. This code is added to the viewlist all records, but I only need the last 10. lvUndoStack.Items.Clear(); var list = new…
Mediator
  • 14,951
  • 35
  • 113
  • 191
-1
votes
1 answer

WPF Undo/Redo buttons turn grey

i'm developing a UI with WPF where i want to add buttons for the Undo/Redo inside the application actions. For example, if I input in TextBox1 a value, than another value, by pushing undo it turns back to the first value in textbox1. I've tried to…
Paslet87
  • 87
  • 6
-1
votes
2 answers

Text editor with multipe undo/redo in c

I'm starting a school project: we have to code an efficient text editor in c. To command this i can use: (row1,row2)c (row1,row2)d (row1,row2)p (number)u (number)r These commands are used to change text between row1 and row2 (the c), delete text…
1 2 3
25
26