_PTR(SComponent) aSComp( so );
suitPtr nitem = aSComp ? new SalomeApp_ModuleObject( aSComp, 0 ) :
new SalomeApp_DataObject( so, 0 );
+
if( parent ) {
int pos = after ? parent->childPos( after ) : 0;
parent->insertChild( nitem, pos+1 );
else
suitObj= 0;
-#ifdef WITH_SALOMEDS_OBSERVER
- root->setToSynchronize(false);
-#endif
-
return suitObj;
}
// create myRoot
SalomeApp_RootObject* aRoot=new SalomeApp_RootObject( this );
+#ifdef WITH_SALOMEDS_OBSERVER
aRoot->setToSynchronize(false);
+#endif
setRoot( aRoot );
bool aRet = CAM_Study::createDocument( theStr );
((SalomeApp_Application*)application())->updateObjectBrowser( false );
#ifdef WITH_SALOMEDS_OBSERVER
+ dynamic_cast<SalomeApp_RootObject*>( root() )->setToSynchronize(false);
Observer_i* myObserver_i = new Observer_i(myStudyDS,this);
//attach an observer to the study with notification of modifications
myStudyDS->attach(myObserver_i->_this(),true);
((SalomeApp_Application*)application())->updateObjectBrowser( false );
#ifdef WITH_SALOMEDS_OBSERVER
+ dynamic_cast<SalomeApp_RootObject*>( root() )->setToSynchronize(false);
Observer_i* myObserver_i = new Observer_i(myStudyDS,this);
//attach an observer to the study with notification of modifications
myStudyDS->attach(myObserver_i->_this(),true);