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

Method onEarlyChange

src/App/DocumentObject.cpp:992–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990}
991
992void DocumentObject::onEarlyChange(const Property* prop)
993{
994 if (isFreezed() && prop != &Visibility) {
995 return;
996 }
997
998 if (GetApplication().isClosingAll()) {
999 return;
1000 }
1001
1002 if (!GetApplication().isRestoring() && !prop->testStatus(Property::PartialTrigger)
1003 && getDocument() && getDocument()->testStatus(Document::PartialDoc)) {
1004 static App::Document* warnedDoc;
1005 if (warnedDoc != getDocument()) {
1006 warnedDoc = getDocument();
1007 FC_WARN("Changes to partial loaded document will not be saved: " << getFullName() << '.'
1008 << prop->getName());
1009 }
1010 }
1011
1012 signalEarlyChanged(*this, *prop);
1013}
1014
1015/// get called by the container when a Property was changed
1016void DocumentObject::onChanged(const Property* prop)

Callers 1

touchMethod · 0.80

Calls 7

isFreezedFunction · 0.85
getFullNameFunction · 0.85
isClosingAllMethod · 0.80
isRestoringMethod · 0.80
getDocumentFunction · 0.50
testStatusMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected