}
+void MULTIPR_Gen_i::ObjModified (MULTIPR_ORB::MULTIPR_Obj_ptr theObj)
+{
+ // Mark current study as modified, if theObj is published in it
+ if (!CORBA::is_nil(myCurrentStudy) && !CORBA::is_nil(theObj))
+ {
+ SALOMEDS::SObject_var aSO = myCurrentStudy->FindObjectIOR(_orb->object_to_string(theObj));
+ // if published
+ if (!CORBA::is_nil(aSO))
+ myCurrentStudy->Modified();
+ }
+}
+
+
MULTIPR_Obj_i::MULTIPR_Obj_i (PortableServer::POA_ptr thePOA,
const char* medFilename,
bool isPersistence,
e.dump(cout);
THROW_SALOME_CORBA_EXCEPTION("Unable to set mesh", SALOME::INTERNAL_ERROR);
}
+
+ // Mark current study as modified, if theObj is published in it
+ _engine->ObjModified(_this());
}
std::string MULTIPR_Obj_i::getMeshName() const
// Dump Python
MULTIPR::TPythonDump(_engine) << this << ".setBoxing(" << pBoxing << ")";
+
+ // Mark current study as modified, if theObj is published in it
+ _engine->ObjModified(_this());
}
THROW_SALOME_CORBA_EXCEPTION("Unable to partition mesh", SALOME::INTERNAL_ERROR);
}
+ // Mark current study as modified, if theObj is published in it
+ _engine->ObjModified(_this());
+
return mySeq._retn();
}
THROW_SALOME_CORBA_EXCEPTION(aStream.str().c_str(), SALOME::INTERNAL_ERROR);
}
+ // Mark current study as modified, if theObj is published in it
+ _engine->ObjModified(_this());
+
return mySeq._retn();
}
THROW_SALOME_CORBA_EXCEPTION("Unable to decimate", SALOME::INTERNAL_ERROR);
}
+ // Mark current study as modified, if theObj is published in it
+ _engine->ObjModified(_this());
+
return mySeq._retn();
}
THROW_SALOME_CORBA_EXCEPTION("Unable to decimate", SALOME::INTERNAL_ERROR);
}
+ // Mark current study as modified, if theObj is published in it
+ _engine->ObjModified(_this());
+
return mySeq._retn();
}
// Dump Python
MULTIPR::TPythonDump(_engine) << this << ".removeParts(\"" << pPrefixPartName << "\")";
+
+ // Mark current study as modified, if theObj is published in it
+ _engine->ObjModified(_this());
}
MULTIPR_ORB::MULTIPR_Obj_var anObj = MULTIPR_ORB::MULTIPR_Obj::_narrow(theIOR);
if (!anObj->_is_nil())
{
- //aSO = ObjectToSObject(theStudy, anObj);
+ aSO = theStudy->FindObjectIOR(_orb->object_to_string(anObj));
if (aSO->_is_nil())
{
SALOMEDS::GenericAttribute_var anAttr;
}
else {
myApp->updateObjectBrowser();
+ myApp->updateActions();
}
QApplication::restoreOverrideCursor();
}
}
getApp()->updateObjectBrowser();
+ getApp()->updateActions();
}
}
dialog->exec();
delete dialog;
getApp()->updateObjectBrowser();
+ getApp()->updateActions();
}
dialog->exec();
delete dialog;
getApp()->updateObjectBrowser();
+ getApp()->updateActions();
}
QApplication::restoreOverrideCursor();
getApp()->updateObjectBrowser();
+ getApp()->updateActions();
}
QApplication::restoreOverrideCursor();
getApp()->updateObjectBrowser();
+ getApp()->updateActions();
}
return true;