GraphTea icon indicating copy to clipboard operation
GraphTea copied to clipboard

undo / redo

Open zinoodev85 opened this issue 13 years ago • 1 comments

we had a action based undo / redo, which was very problematic. for every action we had to define undo and redo methods. then we switched to a time based undo / redo , which saves the graph state every two seconds. this makes it easier to write new actions and extensions, but still is not finished.

currently it save the graph state in json. it can be other things like our new simplegraph format. we should think about a good format, and the rest is almost done. the code is at:

UndoManager, UndoAction, RedoAction

zinoodev85 avatar Mar 27 '13 09:03 zinoodev85

Dear Azin,

I have changed the code in UndoManager, UndoAction and RedoAction. Now it saves graph state directly in GraphModel type. Is it ok? If so, I'll commit the changes.

ghost avatar Aug 15 '14 20:08 ghost