MCPcopy Create free account
hub / github.com/MyGUI/mygui / undo

Method undo

Tools/LayoutEditor/UndoManager.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void UndoManager::undo()
39 {
40 if (mPosition == mOperations.GetSize() - 1)
41 return;
42
43 setUnsaved(true);
44
45 mPosition++;
46 mEditorWidgets->clear();
47 mEditorWidgets->loadxmlDocument(mOperations[mPosition]);
48 }
49
50 void UndoManager::redo()
51 {

Callers

nothing calls this directly

Calls 3

GetSizeMethod · 0.80
loadxmlDocumentMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected