MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / undo

Method undo

src/Gui/Document.cpp:2969–2981  ·  view source on GitHub ↗

Will UNDO one or more steps

Source from the content-addressed store, hash-verified

2967
2968/// Will UNDO one or more steps
2969void Document::undo(int iSteps)
2970{
2971 Base::FlagToggler<> flag(d->_isTransacting);
2972
2973 if (!checkTransactionID(true, iSteps)) {
2974 return;
2975 }
2976
2977 for (int i = 0; i < iSteps; i++) {
2978 getDocument()->undo();
2979 }
2980 App::GetApplication().signalUndo();
2981}
2982
2983/// Will REDO one or more steps
2984void Document::redo(int iSteps)

Callers 3

onMsgMethod · 0.45
checkTransactionIDMethod · 0.45
onMsgMethod · 0.45

Calls 1

getDocumentFunction · 0.70

Tested by

no test coverage detected