if(!_callbackOnAdd.IsNull()) _callbackOnAdd->OnAddSObject(so);
+ _doc->Modify();
+
return so;
}
}
//add IOR definition
SALOMEDSImpl_AttributeIOR::Set(aComponent->GetLabel(), IOR);
+
+ _doc->Modify();
+
return true;
}
Handle(SALOMEDSImpl_SObject) so = Handle(SALOMEDSImpl_Study)::DownCast(_study)->GetSObject(NewLab);
if(!_callbackOnAdd.IsNull()) _callbackOnAdd->OnAddSObject(so);
+ _doc->Modify();
return so;
}
if(!_callbackOnAdd.IsNull()) _callbackOnAdd->OnAddSObject(so);
+ _doc->Modify();
return so;
}
SALOMEDSImpl_Study::GetStudy(_doc->Main())->AddPostponed(TCollection_AsciiString(anAttr->Value()).ToCString());
Lab.ForgetAllAttributes();
+
+ _doc->Modify();
+
return true;
}
}
Lab.ForgetAllAttributes(Standard_True);
+
+ _doc->Modify();
+
return true;
}
return NULL;
}
+ _doc->Modify();
+
//The macro adds all necessary checks for standardly behaiving attributes
__FindOrCreateAttributeForBuilder
}
TDF_Label Lab = anObject->GetLabel();
if (Lab.FindAttribute(SALOMEDSImpl_SObject::GetGUID(aTypeOfAttribute), anAttribute)) {
+ _doc->Modify();
return Standard_True;
}
return Standard_False;
}
Lab.ForgetAttribute (SALOMEDSImpl_SObject::GetGUID(aTypeOfAttribute));
+
+ _doc->Modify();
+
return true;
}
SALOMEDSImpl_AttributeTarget::Set(RefLab)->Add(SALOMEDSImpl_Study::SObject(Lab));
if(!_callbackOnRemove.IsNull() && Lab.IsDescendant(_doc->Main())) _callbackOnRemove->OnRemoveSObject(me);
+
+ _doc->Modify();
+
return true;
}
Handle(SALOMEDSImpl_AttributeTarget) aTarget;
if(RefLab.FindAttribute(SALOMEDSImpl_AttributeTarget::GetID(), aTarget))
aTarget->Remove(SALOMEDSImpl_Study::SObject(Lab));
+
+ _doc->Modify();
+
return true;
}
//Set LocalID attribute to identify the directory object
Handle(SALOMEDSImpl_AttributeLocalID) aLocalID = SALOMEDSImpl_AttributeLocalID::Set(aLabel, DIRECTORYID);
+
+ _doc->Modify();
+
return true;
}
TDF_Label aLabel = anObject->GetLabel();
SALOMEDSImpl_AttributeUserID::Set(aLabel, theGUID.ToCString());
+
+ _doc->Modify();
+
return true;
}
anAttr->SetModified(aModif+1);
_doc->CommitCommand();
}
+
+ _doc->Modify();
}
//============================================================================
_doc->Undo();
anAttr->SetModified(anAttr->GetModified()-1);
}
+
+ _doc->Modify();
}
//============================================================================
SALOMEDSImpl_Study::GetStudy(_doc->Main())->UndoPostponed(-1);
anAttr->SetModified(anAttr->GetModified()+1);
}
- }
+
+ _doc->Modify();
+}
//============================================================================
/*! Function : GetAvailableUndos
return false;
}
SALOMEDSImpl_AttributeName::Set(theSO->GetLabel(), theValue);
+
+ _doc->Modify();
+
return true;
}
return false;
}
SALOMEDSImpl_AttributeComment::Set(theSO->GetLabel(), theValue);
+
+ _doc->Modify();
+
return true;
}
return false;
}
SALOMEDSImpl_AttributeIOR::Set(theSO->GetLabel(), theValue);
+
+ _doc->Modify();
+
return true;
}