Salome HOME
0023299: [CEA] Finalize multi-study removal
authorimn <imn@opencascade.com>
Tue, 18 Oct 2016 13:46:44 +0000 (16:46 +0300)
committerimn <imn@opencascade.com>
Tue, 18 Oct 2016 13:46:44 +0000 (16:46 +0300)
- delete study id parameter

56 files changed:
doc/principes.rst
doc/schemapy.rst
doc/schemaxml.rst
src/genericgui/GenericGui.cxx
src/genericgui/GuiExecutor.cxx
src/genericgui/QtGuiContext.cxx
src/genericgui/QtGuiContext.hxx
src/pyqt/salomefiles/threenodes.xml
src/pyqt/salomefiles/twoconnectednodes.xml
src/pyqt/salomefiles/twonodes.xml
src/runtime/CppContainer.cxx
src/runtime/CppContainer.hxx
src/runtime/SalomeContainerTmpForHP.cxx
src/runtime/SalomeContainerTools.cxx
src/runtime/SalomeProc.cxx
src/runtime/SalomeProc.hxx
src/runtime/StudyNodes.cxx
src/runtime/StudyPorts.cxx
src/salomegui/Yacsgui.cxx
src/salomegui/Yacsgui.hxx
src/salomegui/resources/YACSSchemaCatalog.xml
src/salomeloader/samples/GeomGraph.xml
src/salomeloader/samples/GeomGraphGates.xml
src/salomeloader/samples/GeomGraphGates_py.xml
src/salomeloader/samples/GeomGraph_py.xml
src/salomeloader/samples/testvisu20.xml
src/salomewrap/SalomeWrap_Module.cxx
src/salomewrap/SalomeWrap_Module.hxx
src/salomewrap/SuitWrapper.cxx
src/salomewrap/SuitWrapper.hxx
src/wrappergen/bin/HXX2SALOME_GENERIC_CLASS_NAME_SRC/bin/runSalome.py
src/wrappergen/src/HXX2SALOME_GENERIC_CLASS_NAME_SRC/bin/runSalome.py
src/yacsloader/samples/SchemaIOFile.xml
src/yacsloader/samples/SchemaInputOutputGeom.xml
src/yacsloader/samples/calcium5.xml
src/yacsloader/samples/foreach7.xml
src/yacsloader/samples/foreach8.xml
src/yacsloader/samples/foreach_init2fin.xml
src/yacsloader/samples/foreach_init2work.xml
src/yacsloader/samples/gobj1.xml
src/yacsloader/samples/optimizer_async_cpp.xml
src/yacsloader/samples/optimizer_async_py.xml
src/yacsloader/samples/optimizer_retro.xml
src/yacsloader/samples/optimizer_sync_cpp.xml
src/yacsloader/samples/optimizer_sync_py.xml
src/yacsloader/samples/pyremote1.xml
src/yacsloader/samples/pyremote2.xml
src/yacsloader/samples/pyremote3.xml
src/yacsloader/samples/pyremote4.xml
src/yacsloader/samples/schema2.xml
src/yacsloader/samples/schemaANN2.xml
src/yacsloader/samples/schemaANNLR2.xml
src/yacsloader/samples/schemaLR2.xml
src/yacsloader/samples/schemaPmmlDoesNotExist.xml
src/yacsloader/samples/study1.xml
src/yacsloader/samples/switch10.xml

index 6bbd81cd54339089ee7b8696db8521e68c5b099f..c873c3cd567e66c81e3f1ad0a133aae306ceb0b5 100644 (file)
@@ -318,7 +318,7 @@ A Study node is used to relate the elements of a SALOME study to the data and re
 
 StudyIn node
 ...................
-A StudyIn node has output data ports only. It is used to define data in the calculation scheme originating from a SALOME study. The associated study is given by its SALOME StudyID.
+A StudyIn node has output data ports only. It is used to define data in the calculation scheme originating from a SALOME study.
 
 A port corresponds to data stored in the associated study.  The data has a name (the port name), a type (the port type), and a reference that gives the entry into the study.  This reference is either a SALOME Entry (for example 0:1:1:2) or a path in the SALOME study tree (for example, /Geometry/box_1).
 
@@ -330,7 +330,7 @@ To create this type of node:
 
 StudyOut node
 ...................
-A StudyOut node only has input data ports.  It is used to store results in a SALOME study.  The associated study is given by its SALOME StudyID.
+A StudyOut node only has input data ports.  It is used to store results in a SALOME study.
 
 A port corresponds to a result to be stored in an associated study.  The result has a name (the port name), a type (the port type), and a reference that gives the entry into the study.  This reference is either a SALOME Entry (for example 0:1:1:2) or a path in the SALOME study tree (for example, /Geometry/box_1).
 
@@ -880,16 +880,6 @@ that is not a genuine node.  If it is said that block “b” in the previous ex
 value of 1 and a default case, then the absolute name of node “n” in the case 1 will be “c.b.p1_n” and the absolute name of the node in 
 the default case will be “c.b.default_n”.
 
-Active study
---------------
-A schema can be executed without using the SALOME study manager. But when a schema must be executed in the context
-of a SALOME study, it is possible to specify the studyId to use.
-
-The way to do that is to set the schema property **DefaultStudyID** to the study id.
-
-In the GUI, this is set automatically to the current active studyId.
-For execution in console mode, see :ref:`xml_active_study`
-
 .. _errorreport:
 
 Error report
index ccd0ada8083a0424c8e4d7f986d496686abbbc9d..fa2ded1fcef66b832cfd26c64403156fb9507366 100644 (file)
@@ -771,19 +771,17 @@ The result file will be copied into the local file myfile::
 StudyIn node
 ++++++++++++++
 A StudyIn node is defined using the runtime createInDataNode method.  It uses two arguments, the first of which must be “study” 
-and the second the node name.  The associated study is specified by adding the “StudyID” property to the node using 
-its setProperty method.  Node data are defined by adding output data ports using the edAddOutputPOrt method, transferring 
+and the second the node name.  Node data are defined by adding output data ports using the edAddOutputPOrt method, transferring 
 the name of the data and its type as arguments.  The data is initialised with the reference in the study, using the setData method 
 for the port thus created, transferring a character string to it containing either the SALOME Entry or the path in the study 
 tree structure.
 
 The following is an example of the StudyIn node that defines 2 GEOM_Object type data (a and b).  The study is assumed to be 
-loaded into memory by SALOME as StudyID 1.  Data a is referenced by one SALOME Entry.  Data b is referenced by a path in the 
+loaded into memory by SALOME.  Data a is referenced by one SALOME Entry.  Data b is referenced by a path in the 
 study tree structure::
 
   n=r.createInDataNode("study","study1")
   p.edAddChild(n)
-  n.setProperty("StudyID","1")
   pout=n.edAddOutputPort('a',tgeom)
   pout.setData("0:1:1:1")
   pout=n.edAddOutputPort('b',tgeom)
@@ -794,21 +792,19 @@ study tree structure::
 StudyOut node
 ++++++++++++++
 A StudyOut node is defined using the runtime createOutDataNode method.  It uses two arguments, the first of 
-which must be “study” and the second the node name.  The associated study is specified by adding 
-the “StudyID” property to the node using its setProperty method.  The name of the file in which the study will be 
+which must be “study” and the second the node name. The name of the file in which the study will be 
 saved is specified using the node SetRef method with the file name as an argument.  
 The node results are defined by adding input data ports to it using the edAddInputPort method, transferring the data name 
 and type as arguments.  The setData method for the port is used to associate the entry into the study to the result, transferring 
 a character string to it that contains either the SALOME Entry or the path in the study tree structure.
 
 The following contains an example of the StudyOut node that defines two GEOM_Object type results (a and b).  
-The studyId of the study used is 1.  Result a is referenced by a SALOME Entry.  The result b is referenced by a path.  
+Result a is referenced by a SALOME Entry.  The result b is referenced by a path.  
 The complete study is saved in the study1.hdf file at the end of the calculation::
 
   n=r.createOutDataNode("study","study2")
   n.setRef("study1.hdf")
   p.edAddChild(n)
-  n.setProperty("StudyID","1")
   pout=n.edAddInputPort('a',tgeom)
   pout.setData("0:1:2:1")
   pout=n.edAddInputPort('b',tgeom)
index 378d948489969aa9bb14a7430afea82a55d2352e..8a9145e67976be747c8a55ea40cb6d4cb80a1ae0 100644 (file)
@@ -794,20 +794,6 @@ In the case of a SALOME service node, the property is transmitted to the compone
 
 .. _xml_active_study:
 
-Active study
---------------
-To execute a schema in the context of a SALOME study, you have to set the **DefaultStudyID** property of the schema.
-
-Example to execute the schema in the study with studyId 5:
-
-.. code-block:: xml
-
-  <proc name="myschema">
-     <property name="DefaultStudyID" value="5"/>
-     ...
-  </proc>
-
-
 Datastream connections
 ----------------------------
 Datastream connections are only possible for SALOME service nodes, as we have seen in :ref:`principes`.  Firstly, datastream ports 
@@ -968,20 +954,19 @@ The result file will be copied into the local file myfile:
 StudyIn node
 '''''''''''''''
 This type of node is defined as a DataIn node with the datanode tag.  All that is necessary is to add the kind attribute 
-with the “study” value.  The associated study is given by a property (property tag) named StudyID (the value of which is an integer).
+with the “study” value.
 
 The parameter sub-tag will be used to define the node data.  This tag has two compulsory attributes, name and type, that give the 
 data name and type respectively.  The ref attribute gives the input into the study in the form of a SALOME Entry, or a 
 path in the study tree structure.
 
 The following is an example of a StudyIn node that defines 2 data (b and c) with types GEOM_Object and Boolean.  It is assumed 
-that SALOME has loaded the study (with StudyID 1) into memory.  Data b is referenced by a SALOME Entry.  
+that SALOME has loaded the study into memory.  Data b is referenced by a SALOME Entry.  
 The data c is referenced by a path in the study tree structure.
 
 .. code-block:: xml
 
     <datanode name="s" kind="study" >
-      <property name="StudyID" value="1" />
       <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:2:2"/>
       <parameter name="c" type="bool" ref="/Geometry/Box_1"/>
     </datanode>
@@ -992,20 +977,18 @@ StudyOut node
 ''''''''''''''''''
 This type of node is defined as a DataOut node with the outnode tag and the name attribute.  
 All that is necessary is to add the kind attribute with the value “study”.  
-The optional ref attribute gives the name of the file in which the study will be saved at the end of the calculation.  
-The associated study is given by a property (property tag) with name StudyID (the value of which is an integer).
+The optional ref attribute gives the name of the file in which the study will be saved at the end of the calculation.
 
 The parameter sub-tag will be used to define the node results.  This tag has two compulsory attributes, name and type, that 
 give the data name and type respectively.  The ref attribute gives the entry into the study in the form of a SALOME Entry, or 
 a path in the study tree structure.
 
-The following gives an example of the StudyOut node that defines 2 results (a and b) of the GEOM_Object type.  The study used has 
-the studyId 1.  The complete study is saved in the study1.hdf file at the end of the calculation:
+The following gives an example of the StudyOut node that defines 2 results (a and b) of the GEOM_Object type.
+The complete study is saved in the study1.hdf file at the end of the calculation:
 
 .. code-block:: xml
 
    <outnode name="o" kind="study" ref="stud1.hdf">
-     <property name="StudyID" value="1"/>
      <parameter name="a" type="GEOM/GEOM_Object" ref="/Geometry/YacsFuse"/>
      <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:1:6"/>
    </outnode>
index 7f1ce70cb21cc768399f9a432faa8aa5f60ecb47..bca1cd3efb91a69c651f3a8ef50dae671e8142d1 100644 (file)
@@ -969,19 +969,15 @@ bool GenericGui::closeContext(QWidget *view, bool onExit)
           break;
         }
     }
-  int studyId = _wrapper->activeStudyId();
-  if (context->getStudyId() == studyId)
+  _wrapper->deleteSchema(view);
+  DEBTRACE("delete context");
+  if (GuiExecutor* exec = context->getGuiExecutor())
     {
-      _wrapper->deleteSchema(view);
-      DEBTRACE("delete context");
-      if (GuiExecutor* exec = context->getGuiExecutor())
-        {
-          exec->closeContext();
-        }
-      delete context;
-      _mapViewContext.erase(view);
-      switchContext(newView, onExit);
+      exec->closeContext();
     }
+  delete context;
+  _mapViewContext.erase(view);
+  switchContext(newView, onExit);
   return true;
 }
 
@@ -1093,11 +1089,6 @@ void GenericGui::createContext(YACS::ENGINE::Proc* proc,
   GraphicsView* gView = new GraphicsView(viewWindow);
   gView->setScene(scene);
   gView->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
-  int studyId = _wrapper->AssociateViewToWindow(gView, viewWindow);
-  context->setStudyId(studyId);
-  std::ostringstream value;
-  value << studyId;
-  proc->setProperty("DefaultStudyID",value.str());
   context->setScene(scene);
   context->setView(gView);
   context->setWindow(viewWindow);
@@ -2589,7 +2580,6 @@ void GenericGui::onShowRedo()
 void GenericGui::onCleanOnExit()
 {
   DEBTRACE("GenericGui::onCleanOnExit");
-  int studyId = _wrapper->activeStudyId();
   map<QWidget*, YACS::HMI::QtGuiContext*> mapViewContextCopy = _mapViewContext;
   map<QWidget*, YACS::HMI::QtGuiContext*>::iterator it = mapViewContextCopy.begin();
   for (; it != mapViewContextCopy.end(); ++it)
index ec06250fd6cad9b36bd769dff205d6ec638ef1ce..c758989b8b68254b583aa9556b362b8c8a8096ee 100644 (file)
@@ -92,7 +92,7 @@ void GuiExecutor::startResumeDataflow(bool initialize)
       SALOME_NamingService namingService(orb);
       SALOME_LifeCycleCORBA lcc(&namingService);
       ostringstream containerName;
-      containerName << "localhost/YACSContainer" << QtGuiContext::getQtCurrent()->getStudyId();
+      containerName << "localhost/YACSContainer";
       Engines::EngineComponent_var comp = lcc.FindOrLoad_Component(containerName.str().c_str(), "YACS" );
       _engineRef =YACS_ORB::YACS_Gen::_narrow(comp);
       YASSERT(!CORBA::is_nil(_engineRef));
index 6dd1395003d6f9438f678efb780be099a4e378b6..50aba7a339039a17e2689d81e740ea857b01ba23 100644 (file)
@@ -49,7 +49,6 @@ QtGuiContext::QtGuiContext(GenericGui *gmain) : GuiContext()
   _selectedSubject = 0;
   _isEdition = true;
   _isLoadingPresentation = false;
-  _studyId = 0;
   _fileName = QString();
   _mapOfSchemaItem.clear();
   _mapOfSceneItem.clear();
index e200849689e19fb45d7db41a863a2183eebfea2a..4e5555f19f693b1a88f324379f54b282fcc4bd96 100644 (file)
@@ -65,7 +65,6 @@ namespace YACS
       inline QString getFileName()                               {return _fileName; };
       inline YACS::HMI::GuiExecutor* getGuiExecutor()            {return _guiExecutor; };
       inline bool isEdition()                                    {return _isEdition; };
-      inline int getStudyId()                                    {return _studyId; };
       inline bool isLoadingPresentation()                        {return _isLoadingPresentation; };
 
       YACS::HMI::Subject* getSubjectToPaste(bool &isCut);
@@ -83,7 +82,6 @@ namespace YACS
       inline void setFileName(const QString& fileName)           {_fileName = fileName; };
       inline void setGuiExecutor(YACS::HMI::GuiExecutor* guiEx)  {_guiExecutor = guiEx; };
       inline void setEdition(bool isEdition)                     {_isEdition = isEdition; };
-      inline void setStudyId(int studyId)                        {_studyId = studyId; };
       inline void setLoadingPresentation(bool isLoadpres)        {_isLoadingPresentation = isLoadpres; };
 
       void setSubjectToCut(YACS::HMI::Subject* sub);
@@ -119,7 +117,6 @@ namespace YACS
       YACS::HMI::Subject* _selectedSubject;
       bool _isEdition;
       bool _isLoadingPresentation;
-      int _studyId;
       SuitWrapper* _wrapper;
     };
 
index 9fa212b28ffecb89d02b7ef9d36563e681ddd239..33e6e56940c02fe97084c82ceb99ad6db794343b 100644 (file)
        <inParameter-type>string</inParameter-type>
        <inParameter-name>CreateHypothesis__anHyp</inParameter-name>
       </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>CreateHypothesis__studyId</inParameter-name>
-      </inParameter>
      </inParameter-list>
      <outParameter-list>
       <outParameter>
        <inParameter-type>string</inParameter-type>
        <inParameter-name>anHyp</inParameter-name>
       </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>studyId</inParameter-name>
-      </inParameter>
      </inParameter-list>
      <outParameter-list>
       <outParameter>
    </data>
    <data>
     <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>CreateHypothesis__studyId</fromserviceparameter-name>
     <tonode-name>CreateHypothesis</tonode-name>
-    <toserviceparameter-name>studyId</toserviceparameter-name>
     <data-value>
      <value-type>3</value-type>
      <value>1</value>
index 1f6dabd413b5467832963707e2186370d1f61328..f12168db69ff5c838e5391d923d981cf0138eca4 100644 (file)
        <inParameter-type>string</inParameter-type>
        <inParameter-name>CreateHypothesis__anHyp</inParameter-name>
       </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>CreateHypothesis__studyId</inParameter-name>
-      </inParameter>
       <inParameter>
        <inParameter-type>GEOM_Shape</inParameter-type>
        <inParameter-name>AddHypothesis__aSubShape</inParameter-name>
        <inParameter-type>string</inParameter-type>
        <inParameter-name>anHyp</inParameter-name>
       </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>studyId</inParameter-name>
-      </inParameter>
      </inParameter-list>
      <outParameter-list>
       <outParameter>
    </data>
    <data>
     <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>CreateHypothesis__studyId</fromserviceparameter-name>
     <tonode-name>CreateHypothesis</tonode-name>
-    <toserviceparameter-name>studyId</toserviceparameter-name>
     <data-value>
      <value-type>3</value-type>
      <value>1</value>
index 69627232c9db257099152583e9a0cb5c0bfdc3b0..e89bc040ea0e5b514bd1368baf8e46e2d6332e6f 100644 (file)
        <inParameter-type>string</inParameter-type>
        <inParameter-name>CreateHypothesis__anHyp</inParameter-name>
       </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>CreateHypothesis__studyId</inParameter-name>
-      </inParameter>
      </inParameter-list>
      <outParameter-list>
       <outParameter>
        <inParameter-type>string</inParameter-type>
        <inParameter-name>anHyp</inParameter-name>
       </inParameter>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>studyId</inParameter-name>
-      </inParameter>
      </inParameter-list>
      <outParameter-list>
       <outParameter>
    </data>
    <data>
     <fromnode-name>aNewDataFlow_1</fromnode-name>
-    <fromserviceparameter-name>CreateHypothesis__studyId</fromserviceparameter-name>
     <tonode-name>CreateHypothesis</tonode-name>
-    <toserviceparameter-name>studyId</toserviceparameter-name>
     <data-value>
      <value-type>3</value-type>
      <value>1</value>
index af5aec92ac6ecb97b2a6ace9ab8da26ea109aedd..3b56b5b94573e8c49965debf872058993467c9ba 100644 (file)
@@ -126,7 +126,7 @@ bool CppContainer::loadComponentLibrary(const std::string & componentName) throw
   return false;
     }
 
-CppComponent * CppContainer::createComponentInstance(const std::string & componentName, int /* studyID */)
+CppComponent * CppContainer::createComponentInstance(const std::string & componentName)
 {
   DEBTRACE("CppContainer::createComponentInstance");
   if (_trueCont)
index 9bc3577c64b06ab5646838c5c282f4b302c5fe8f..281fa7d9e52553ab9ffbbb54cba9243e48a2f8a6 100644 (file)
@@ -120,7 +120,7 @@ namespace YACS
 
       void checkCapabilityToDealWith(const ComponentInstance *inst) const throw (YACS::Exception);
       bool loadComponentLibrary(const std::string & componentName) throw (YACS::Exception);
-      CppComponent * createComponentInstance(const std::string & componentName, int studyID = 0);
+      CppComponent * createComponentInstance(const std::string & componentName);
       void createInternalInstance(const std::string & componentName, 
                                   void *& obj, RunFunction &r, TerminateFunction &t);
       void unregisterComponentInstance(CppComponent * C);
index d0f13c747f11d537130adc69af2fbfa1f91a3a7f..981ad70d9f556fd5729fa49cf3a963b917766755 100644 (file)
@@ -41,7 +41,7 @@ CORBA::Object_ptr SalomeContainerTmpForHP::loadComponent(Task *askingNode)
     YACS::BASES::AutoLocker<Container> alck(this);//To be sure
     std::string compoName(inst->getCompoName());
     Engines::Container_var container(_launchModeType->getContainer(askingNode));
-    objComponent=container->find_component_instance(compoName.c_str(),0);
+    objComponent=container->find_component_instance(compoName.c_str());
     if(CORBA::is_nil(objComponent))
       {
         char *reason;
index f4d66286f8f75167be22c17f31d45dda4b796948..aaf96813f95e203a948dc75bc651136a3c3a7bea 100644 (file)
@@ -454,14 +454,7 @@ CORBA::Object_ptr SalomeContainerTools::CreateComponentInstance(Container *cont,
   char *reason(0);
   std::string compoName(inst->getCompoName());
   CORBA::Object_ptr objComponent=CORBA::Object::_nil();
-  int studyid(1);
   Proc* p(cont->getProc());
-  if(p)
-    {
-      std::string value(p->getProperty("DefaultStudyID"));
-      if(!value.empty())
-        studyid= atoi(value.c_str());
-    }
   // prepare component instance properties
   Engines::FieldsDict_var env(new Engines::FieldsDict);
   std::map<std::string, std::string> properties(inst->getProperties());
@@ -481,7 +474,7 @@ CORBA::Object_ptr SalomeContainerTools::CreateComponentInstance(Container *cont,
       env[item].value <<= itm->second.c_str();
     }
 
-  objComponent=contPtr->create_component_instance_env(compoName.c_str(), studyid, env, reason);
+  objComponent=contPtr->create_component_instance_env(compoName.c_str(), env, reason);
   if(CORBA::is_nil(objComponent))
     {
       std::string text="Error while trying to create a new component: component '"+ compoName;
index 81166e9c6b220455359c8b420f49fee62476bbc1..2f8dc8d873fc21941192668f44f79930eb9549d4 100644 (file)
@@ -70,30 +70,13 @@ void SalomeProc::saveSchema(std::string xmlSchemaFile)
   vss.closeFileSchema();
 }
 
-//! Get the default study id for the proc
-/*!
- * \return the study id
- */
-int SalomeProc::getDefaultStudyId()
-{
-  std::string value=getProperty("DefaultStudyID");
-  if(value.empty())
-    return 1;
-  else
-    return atoi(value.c_str());
-}
-
 //! Initialise the proc
 void SalomeProc::init(bool start)
 {
-  std::string value=getProperty("DefaultStudyID");
-  if(!value.empty())
-    {
-      //initialise Python module salome with the study id given by value
-      std::string cmd="import salome;salome.salome_init("+value+")";
-      PyGILState_STATE gstate = PyGILState_Ensure(); // acquire the Global Interpreter Lock
-      PyRun_SimpleString(cmd.c_str());
-      PyGILState_Release(gstate); // Release the Global Interpreter Lock
-    }
+  //initialise Python module salome with the study id given by value
+  std::string cmd="import salome;salome.salome_init()";
+  PyGILState_STATE gstate = PyGILState_Ensure(); // acquire the Global Interpreter Lock
+  PyRun_SimpleString(cmd.c_str());
+  PyGILState_Release(gstate); // Release the Global Interpreter Lock
   Proc::init(start);
 }
index 46c13beefdeaaca8be1a3eaa31d8b8301106d3ce..8f45938c9d24d4c441167f9fcdc38c0ce2aa9a5a 100644 (file)
@@ -43,7 +43,6 @@ namespace YACS
        virtual TypeCode * createStructTc(const std::string& id, const std::string& name);
        virtual std::string typeName() {return "YACS__ENGINE__SalomeProc";}
        virtual void saveSchema(std::string xmlSchemaFile);
-       virtual int getDefaultStudyId();
        virtual void init(bool start=true);
     };
   }
index bad02108c81e1b2493cbfc0d561ae88523c2e2f2..6067003b60b3d39a4dc4ad01dd7c0f2896265a42 100644 (file)
@@ -75,44 +75,17 @@ void StudyInNode::execute()
 {
   DEBTRACE("+++++++ StudyInNode::execute +++++++++++");
   SALOME_NamingService NS(getSALOMERuntime()->getOrb());
-  CORBA::Object_var obj=NS.Resolve("/myStudyManager");
+  CORBA::Object_var obj=NS.Resolve("/Study");
   if(CORBA::is_nil(obj)) 
     {
       _errorDetails="Execution problem: no naming service";
       throw Exception(_errorDetails);
     }
 
-  SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow(obj);
-  if(CORBA::is_nil(aStudyManager)) 
-    {
-      _errorDetails="Execution problem: no naming service";
-      throw Exception(_errorDetails);
-    }
-
-  int studyid=1;
-  if (getProperty("StudyID") != "")
-    {
-      // StudyId is specified
-      studyid=atoi(getProperty("StudyID").c_str());
-    }
-  else
-    {
-      Proc* p=getProc();
-      if(p)
-        {
-          std::string value=p->getProperty("DefaultStudyID");
-          if(!value.empty())
-            studyid= atoi(value.c_str());
-        }
-    }
-
-
-  SALOMEDS::Study_var myStudy =aStudyManager->GetStudyByID(studyid);
+  SALOMEDS::Study_var myStudy = SALOMEDS::Study::_narrow(obj);
   if(CORBA::is_nil(myStudy)) 
     {
-      std::stringstream msg;
-      msg << "Execution problem: no study with id " << studyid;
-      _errorDetails=msg.str();
+      _errorDetails="Execution problem: no study";
       throw Exception(_errorDetails);
     }
 
@@ -243,51 +216,19 @@ void StudyOutNode::execute()
 {
   DEBTRACE("+++++++ StudyOutNode::execute +++++++++++");
   SALOME_NamingService NS(getSALOMERuntime()->getOrb());
-  CORBA::Object_var obj=NS.Resolve("/myStudyManager");
+  CORBA::Object_var obj=NS.Resolve("/Study");
   if(CORBA::is_nil(obj))
     {
       _errorDetails="Execution problem: no naming service";
       throw Exception(_errorDetails);
     }
 
-  SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow(obj);
-  if(CORBA::is_nil(aStudyManager))
-    {
-      _errorDetails="Execution problem: no naming service";
-      throw Exception(_errorDetails);
-    }
-
-  int studyid=1;
-  if (getProperty("StudyID") != "")
-    {
-      // StudyId is specified
-      studyid=atoi(getProperty("StudyID").c_str());
-    }
-  else
-    {
-      Proc* p=getProc();
-      if(p)
-        {
-          std::string value=p->getProperty("DefaultStudyID");
-          if(!value.empty())
-            studyid= atoi(value.c_str());
-        }
-    }
-
-  SALOMEDS::Study_var myStudy =aStudyManager->GetStudyByID(studyid);
+  SALOMEDS::Study_var myStudy = SALOMEDS::Study::_narrow(obj);
   if(CORBA::is_nil(myStudy))
     {
-      //open a new one
-      std::stringstream msg;
-      msg << "Study" << studyid;
-      myStudy=aStudyManager->NewStudy(msg.str().c_str());
-      if(CORBA::is_nil(myStudy))
-        {
-          _errorDetails="Execution problem: can not create new study " + msg.str();
-          throw Exception(_errorDetails);
-        }
+      _errorDetails="Execution problem: no study";
+      throw Exception(_errorDetails);
     }
-  DEBTRACE(myStudy->StudyId());
 
   SALOMEDS::StudyBuilder_var aBuilder =myStudy->NewBuilder() ;
   if(CORBA::is_nil(aBuilder))
@@ -311,7 +252,7 @@ void StudyOutNode::execute()
   // save in file if ref is given
   if(_ref != "")
     {
-      aStudyManager->SaveAs(_ref.c_str(),myStudy, false);
+         myStudy->SaveAs(_ref.c_str(), false);
     }
   DEBTRACE("+++++++ end StudyOutNode::execute +++++++++++" );
 }
index d1839b1bd96fc408f22fe1f68e569504b7abf26e..6bf53daca9d701d5e6a5538dd86ef83313b71deb 100644 (file)
@@ -148,7 +148,7 @@ void OutputStudyPort::getDataFromStudy(SALOMEDS::Study_var myStudy)
           if(CORBA::is_nil(aSO))
             {
               std::stringstream msg;
-              msg << "Execution problem: no id or path: " << data << " in study " << myStudy->StudyId();
+              msg << "Execution problem: no id or path: " << data << " in study";
               throw Exception(msg.str());
             }
         }
@@ -418,7 +418,7 @@ void InputStudyPort::putDataInStudy(SALOMEDS::Study_var myStudy,SALOMEDS::StudyB
                           SALOMEDS::SObject_var aTmpSO; // initialized to nil
                           try 
                             {
-                              aTmpSO = aDriver->PublishInStudy(myStudy, aTmpSO, anObject,objname.c_str() );
+                              aTmpSO = aDriver->PublishInStudy(aTmpSO, anObject,objname.c_str() );
                               return;
                             }
                           catch ( ... ) 
index 5846152511284a68aba388c9cfd5715bf7443259..904d70909a673f03a917d5b0df535141e96d02c2 100644 (file)
@@ -58,8 +58,6 @@
 using namespace std;
 using namespace YACS::HMI;
 
-int  Yacsgui::_oldStudyId = -1;
-
 Yacsgui::Yacsgui() :
   SalomeWrap_Module( "YACS" ) // default name
 {
@@ -67,7 +65,7 @@ Yacsgui::Yacsgui() :
   _wrapper = 0;
   _genericGui = 0;
   _selectFromTree = false;
-  _studyContextMap.clear();
+  _studyContextMap = 0;
 }
 
 Yacsgui::~Yacsgui()
@@ -111,7 +109,7 @@ void Yacsgui::initialize( CAM_Application* app )
   _genericGui->createActions();
   _genericGui->createMenus();
   _genericGui->createTools();
-  this->studyActivated();
+  _studyContextMap = QtGuiContext::getQtCurrent();
 
   // VSR 23/10/2014: note that this is not a good way to create SComponent from this point
   // as initialize() method can be potentially called when there's no yet open study;
@@ -207,8 +205,8 @@ bool Yacsgui::deactivateModule( SUIT_Study* theStudy )
   setToolShown( false );
   _genericGui->showDockWidgets(false);
   QtGuiContext *context = QtGuiContext::getQtCurrent();
-  _studyContextMap[theStudy->id()] = context;
-  DEBTRACE("_studyContextMap[theStudy] " << theStudy << " " << context);
+  _studyContextMap = context;
+  DEBTRACE("_studyContextMap " << theStudy << " " << context);
   return SalomeApp_Module::deactivateModule( theStudy );
 }
 
@@ -280,7 +278,7 @@ void Yacsgui::onWindowActivated( SUIT_ViewWindow* svw)
 
   YASSERT(_genericGui);
   _genericGui->switchContext(viewWindow);
-  _studyContextMap[getApp()->activeStudy()->id()] = QtGuiContext::getQtCurrent();
+  _studyContextMap = QtGuiContext::getQtCurrent();
   
   if (_selectFromTree) return;
   SalomeWrap_DataModel *model = dynamic_cast<SalomeWrap_DataModel*>(dataModel());
@@ -359,27 +357,6 @@ void Yacsgui::preferencesChanged( const QString& sect, const QString& name )
     }
 }
 
-void Yacsgui::studyActivated()
-{
-  int newStudyId = getApp()->activeStudy()->id();
-  DEBTRACE("Yacsgui::studyActivated " << _oldStudyId << " " << newStudyId);
-  
-  if (_oldStudyId != -1)
-    {
-      _studyContextMap[_oldStudyId] = QtGuiContext::getQtCurrent();      
-      if (_studyContextMap.count(newStudyId))
-        {
-          DEBTRACE("switch to valid context " << QtGuiContext::getQtCurrent() << " " << _studyContextMap[newStudyId]);
-          QtGuiContext::setQtCurrent(_studyContextMap[newStudyId]);
-        }
-      else
-        {
-          DEBTRACE("no switch to null context");
-        }
-    }
-  _oldStudyId = newStudyId;
-}
-
 void Yacsgui::loadSchema(const std::string& filename,bool edit, bool arrangeLocalNodes)
 {
   _genericGui->loadSchema(filename,edit,arrangeLocalNodes);
index 7948f1608eacff03a83fc9cf468d10a152d9e7d8..b3e22cf0ebca3a291c4ffcdd2044161fc8f1f4fc 100644 (file)
@@ -59,7 +59,6 @@ public:
   virtual void createPreferences();
   virtual void preferencesChanged( const QString& sect, const QString& name );
   virtual void loadSchema(const std::string& filename,bool edit=true, bool arrangeLocalNodes=false);
-  virtual void studyActivated();
   
 public slots:
   bool deactivateModule( SUIT_Study* theStudy);
@@ -81,8 +80,7 @@ protected:
   bool _selectFromTree;
   Yacsgui_Resource* _myresource;
   SUIT_ViewWindow* _currentSVW;
-  std::map<int, YACS::HMI::QtGuiContext*> _studyContextMap;
-  static int _oldStudyId;
+  YACS::HMI::QtGuiContext* _studyContextMap;
 };
 
 #endif
index 1673967d6abda69e17b0d499097cf89e4e29829a..2b62743388ef8bf04e4f663a19187f924caf61ba 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0'?>
 <proc>
-   <property name="DefaultStudyID" value="1"/>
    <objref name="GEOM_Shape" id="IDL:GEOM/GEOM_Object:1.0"/>
    <type name="bool" kind="bool"/>
    <sequence name="boolvec" content="bool"/>
index 35a6b168a1a231edc5e326279349e4cd8bc9913c..93efd237ac3ba561014a41c5ca49dfb99258f128 100644 (file)
     <x-position>0</x-position>
     <y-position>0</y-position>   </node>  </info-list>
   <node-list>
-<node>
-<component-name>GEOM_Superv</component-name>
-    <interface-name>GEOM_Superv</interface-name>
-    <node-name>SetStudyID</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-<service-name>SetStudyID</service-name>
-     <inParameter-list>
-<inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>theStudyID</inParameter-name>      </inParameter>     </inParameter-list>
-     <outParameter-list/>    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>6/6/2005 - 10:39:55</creation-date>
-    <lastmodification-date>6/6/2005 - 10:39:55</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>SetStudyID from GEOM_Superv</comment>
-    <x-position>14</x-position>
-    <y-position>241</y-position>   </node>
+
    <node>
 <component-name>GEOM_Superv</component-name>
     <interface-name>GEOM_Superv</interface-name>
     <x-position>993</x-position>
     <y-position>312</y-position>   </node>  </node-list>
   <link-list>
-<link>
-<fromnode-name>SetStudyID</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>MakeBox</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>SetStudyID</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>MakeSphere_1</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list/>   </link>
    <link>
 <fromnode-name>MakeBox</fromnode-name>
     <fromserviceparameter-name>return</fromserviceparameter-name>
     <toserviceparameter-name>theShape1</toserviceparameter-name>
     <coord-list/>   </link>  </link-list>
   <data-list>
-<data>
-<fromnode-name>GeomGraph</fromnode-name>
-    <fromserviceparameter-name>SetStudyID__theStudyID</fromserviceparameter-name>
-    <tonode-name>SetStudyID</tonode-name>
-    <toserviceparameter-name>theStudyID</toserviceparameter-name>
-    <data-value>
-<value-type>3</value-type>
-     <value>1</value>    </data-value>
-    <coord-list/>   </data>
    <data>
 <fromnode-name>GeomGraph</fromnode-name>
     <fromserviceparameter-name>MakeBox__theX1</fromserviceparameter-name>
index 392ca69495abe18ff1b2ac8e2bad23fb1f1861dd..895d26f12abc05249647ca5461b103be075cd124 100644 (file)
     <service>
      <service-name>GeomGraph</service-name>
      <inParameter-list>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>SetStudyID__theStudyID</inParameter-name>
-      </inParameter>
       <inParameter>
        <inParameter-type>double</inParameter-type>
        <inParameter-name>MakeBox__theX1</inParameter-name>
    </node>
   </info-list>
   <node-list>
-   <node>
-    <component-name>GEOM_Superv</component-name>
-    <interface-name>GEOM_Superv</interface-name>
-    <node-name>SetStudyID</node-name>
-    <kind>0</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-     <service-name>SetStudyID</service-name>
-     <inParameter-list>
-      <inParameter>
-       <inParameter-type>long</inParameter-type>
-       <inParameter-name>theStudyID</inParameter-name>
-      </inParameter>
-     </inParameter-list>
-     <outParameter-list/>
-    </service>
-    <DataStream-list/>
-    <PyFunction-list/>
-    <creation-date>14/12/2005 - 14:39:18</creation-date>
-    <lastmodification-date>14/12/2005 - 14:39:18</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>localhost/FactoryServer</container>
-    <comment>SetStudyID from GEOM_Superv</comment>
-    <x-position>14</x-position>
-    <y-position>241</y-position>
-   </node>
    <node>
     <component-name>GEOM_Superv</component-name>
     <interface-name>GEOM_Superv</interface-name>
    </node>
   </node-list>
   <link-list>
-   <link>
-    <fromnode-name>SetStudyID</fromnode-name>
-    <fromserviceparameter-name>Gate</fromserviceparameter-name>
-    <tonode-name>MakeBox</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list/>
-   </link>
    <link>
     <fromnode-name>MakeBox</fromnode-name>
     <fromserviceparameter-name>return</fromserviceparameter-name>
    </link>
   </link-list>
   <data-list>
-   <data>
-    <fromnode-name>GeomGraph</fromnode-name>
-    <fromserviceparameter-name>SetStudyID__theStudyID</fromserviceparameter-name>
-    <tonode-name>SetStudyID</tonode-name>
-    <toserviceparameter-name>theStudyID</toserviceparameter-name>
-    <data-value>
-     <value-type>3</value-type>
-     <value>1</value>
-    </data-value>
-    <coord-list/>
-   </data>
    <data>
     <fromnode-name>GeomGraph</fromnode-name>
     <fromserviceparameter-name>MakeBox__theX1</fromserviceparameter-name>
index a115852150a65909173e6512c7b1baa9d44b8130..39201eaf10e8ad2c3191c3582d723f6754aaf2c7 100644 (file)
       <PyFunc><![CDATA[    shape = MakeBoolean(shape1,shape2,3) ]]></PyFunc>
       <PyFunc><![CDATA[    from SALOME_NamingServicePy import SALOME_NamingServicePy_i ]]></PyFunc>
       <PyFunc><![CDATA[    myNamingService = SALOME_NamingServicePy_i(orb) ]]></PyFunc>
-      <PyFunc><![CDATA[    aSession = myNamingService.Resolve('/Kernel/Session') ]]></PyFunc>
-      <PyFunc><![CDATA[    aStudyId = aSession.GetActiveStudyId() ]]></PyFunc>
-      <PyFunc><![CDATA[    myStudyManager = myNamingService.Resolve('/myStudyManager') ]]></PyFunc>
-      <PyFunc><![CDATA[    aStudy = myStudyManager.GetStudyByID(aStudyId) ]]></PyFunc>
+      <PyFunc><![CDATA[    aStudy = myNamingService.Resolve('/Study') ]]</PyFunc>
       <PyFunc><![CDATA[    aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ]]></PyFunc>
       <PyFunc><![CDATA[    return shape ]]></PyFunc>
      </PyFunction>
index 102d8182fd73f984110add663e4dab9a7fcf5c0d..47e2d9c8308cd9c2aecdc72fb4e72c2bd866545c 100644 (file)
       <PyFunc><![CDATA[    # fuse operation 3          ]]></PyFunc>
       <PyFunc><![CDATA[    shape = MakeBoolean(shape1,shape2,3) ]]></PyFunc>
       <PyFunc><![CDATA[    myNamingService = SALOME_NamingServicePy_i(orb) ]]></PyFunc>
-      <PyFunc><![CDATA[    aSession = myNamingService.Resolve('/Kernel/Session') ]]></PyFunc>
-      <PyFunc><![CDATA[    if aSession == None : ]]></PyFunc>
-      <PyFunc><![CDATA[      aStudyId = 1 ]]></PyFunc>
-      <PyFunc><![CDATA[    else : ]]></PyFunc>
-      <PyFunc><![CDATA[      aStudyId = aSession.GetActiveStudyId() ]]></PyFunc>
-      <PyFunc><![CDATA[    myStudyManager = myNamingService.Resolve('/myStudyManager') ]]></PyFunc>
-      <PyFunc><![CDATA[    aStudy = myStudyManager.GetStudyByID(aStudyId) ]]></PyFunc>
+      <PyFunc><![CDATA[    aStudy = myNamingService.Resolve('/Study') ]]</PyFunc>
       <PyFunc><![CDATA[    aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ]]></PyFunc>
       <PyFunc><![CDATA[    return shape ]]></PyFunc>     </PyFunction>    </PyFunction-list>
     <creation-date>29/10/2004 - 10:50:25</creation-date>
index 1721040a40bb29d2beadb824bedd33d1f537bfaa..9532414f50b43942995659d2813b49b6feb1b4e2 100644 (file)
       <PyFunc><![CDATA[    # --- create a naming service instance              ]]></PyFunc>
       <PyFunc><![CDATA[    naming_service = SALOME_NamingServicePy_i(orb)    ]]></PyFunc>
       <PyFunc><![CDATA[    # --- get Study Manager reference                     ]]></PyFunc>
-      <PyFunc><![CDATA[    obj = naming_service.Resolve('myStudyManager')    ]]></PyFunc>
-      <PyFunc><![CDATA[    StudyManager = obj._narrow(SALOMEDS.StudyManager)    ]]></PyFunc>
+      <PyFunc><![CDATA[    obj = naming_service.Resolve('Study')    ]]></PyFunc>
+      <PyFunc><![CDATA[    aStudy = obj._narrow(SALOMEDS.Study)    ]]></PyFunc>
       <PyFunc><![CDATA[    # --- load visu component                          ]]></PyFunc>
       <PyFunc><![CDATA[    aVisu = lcc.FindOrLoadComponent("FactoryServer","VISU")       ]]></PyFunc>
-      <PyFunc><![CDATA[    aStudy = StudyManager.GetStudyByID(1)      ]]></PyFunc>
       <PyFunc><![CDATA[    aVisu.SetCurrentStudy(aStudy)      ]]></PyFunc>
       <PyFunc><![CDATA[    print "InitDisplay --> aVisu ", aVisu         ]]></PyFunc>
       <PyFunc><![CDATA[    time.sleep(2)         ]]></PyFunc>
index f22c7a17a0dafe0c5b4f1b494ffbba1e67342aca..955e417c21928ecc78a45efb026479f4d45e6a39 100644 (file)
@@ -71,19 +71,6 @@ QxScene_ViewWindow* SalomeWrap_Module::getNewWindow(QGraphicsScene *scene)
   return aView;
 }
 
-int SalomeWrap_Module::AssociateViewToWindow(QGraphicsView* gView,
-                                             QxScene_ViewWindow* viewWindow)
-{
-  viewWindow->setSceneView(gView);
-  viewWindow->setCentralWidget(gView);
-  return viewWindow->getViewManager()->study()->id();
-}
-
-int SalomeWrap_Module::activeStudyId()
-{
-  return getApp()->activeStudy()->id();
-}
-
 QDockWidget* SalomeWrap_Module::objectBrowser() {
   if ( !getApp()->objectBrowser() )
     return 0;
index 811686c814972c8e4eef7abfc05d6785812c5d7f..302de575eede09f5e830cd16beb7a00c4d191a77 100644 (file)
@@ -45,11 +45,6 @@ public:
 
   QxScene_ViewWindow* getNewWindow(QGraphicsScene *scene);
 
-  int AssociateViewToWindow(QGraphicsView* gView,
-                            QxScene_ViewWindow* viewWindow);
-
-  int activeStudyId();
-
   QDockWidget* objectBrowser();
 
   QAction* wCreateAction(const int id,
index a8bda02d748b0e8aac9393b5b2c99de28c97b6c3..7d0177130eebfa4006e77fd9cae4c1dca4db99e3 100644 (file)
@@ -60,67 +60,6 @@ QWidget* SuitWrapper::getNewWindow(QGraphicsScene *scene)
   return module->getNewWindow(scene);
 }
 
-/*!
- * return studyId used in context delete when study is closed.
- */
-int SuitWrapper::AssociateViewToWindow(QGraphicsView* gView, QWidget* viewWindow)
-{
-  SalomeWrap_Module* module = dynamic_cast<SalomeWrap_Module*>(_wrapped);
-  QxScene_ViewWindow *svw = dynamic_cast<QxScene_ViewWindow*>(viewWindow);
-  YASSERT(svw);
-  int studyId = module->AssociateViewToWindow(gView, svw);
-  WrapGraphicsView* wgv = dynamic_cast<WrapGraphicsView*>(gView);
-  YASSERT(wgv);
-  QObject::disconnect(svw->toolMgr()->action(QxScene_ViewWindow::FitAllId),
-                      SIGNAL(triggered(bool)),
-                      svw, SLOT(onViewFitAll()));
-  QObject::connect(svw->toolMgr()->action(QxScene_ViewWindow::FitAllId),
-                   SIGNAL(triggered(bool)),
-                   wgv, SLOT(onViewFitAll()));
-
-  QObject::disconnect(svw->toolMgr()->action(QxScene_ViewWindow::FitRectId),
-                      SIGNAL(triggered(bool)),
-                      svw, SLOT(onViewFitArea()));
-  QObject::connect(svw->toolMgr()->action(QxScene_ViewWindow::FitRectId),
-                   SIGNAL(triggered(bool)),
-                   wgv, SLOT(onViewFitArea()));
-
-  QObject::disconnect(svw->toolMgr()->action(QxScene_ViewWindow::ZoomId),
-                      SIGNAL(triggered(bool)),
-                      svw, SLOT(onViewZoom()));
-  QObject::connect(svw->toolMgr()->action(QxScene_ViewWindow::ZoomId),
-                   SIGNAL(triggered(bool)),
-                   wgv, SLOT(onViewZoom()));
-
-  QObject::disconnect(svw->toolMgr()->action(QxScene_ViewWindow::PanId),
-                      SIGNAL(triggered(bool)),
-                      svw, SLOT(onViewPan()));
-  QObject::connect(svw->toolMgr()->action(QxScene_ViewWindow::PanId),
-                   SIGNAL(triggered(bool)),
-                   wgv, SLOT(onViewPan()));
-
-  QObject::disconnect(svw->toolMgr()->action(QxScene_ViewWindow::GlobalPanId),
-                      SIGNAL(triggered(bool)),
-                      svw, SLOT(onViewGlobalPan()));
-  QObject::connect(svw->toolMgr()->action(QxScene_ViewWindow::GlobalPanId),
-                   SIGNAL(triggered(bool)),
-                   wgv, SLOT(onViewGlobalPan()));
-
-  QObject::disconnect(svw->toolMgr()->action(QxScene_ViewWindow::ResetId),
-                      SIGNAL(triggered(bool)),
-                      svw, SLOT(onViewReset()));
-  QObject::connect(svw->toolMgr()->action(QxScene_ViewWindow::ResetId),
-                   SIGNAL(triggered(bool)),
-                   wgv, SLOT(onViewReset()));
-  return studyId;
-}
-
-int SuitWrapper::activeStudyId()
-{
-  SalomeWrap_Module* module = dynamic_cast<SalomeWrap_Module*>(_wrapped);
-  return module->activeStudyId();
-}
-
 QDockWidget* SuitWrapper::objectBrowser()
 {
   SalomeWrap_Module* module = dynamic_cast<SalomeWrap_Module*>(_wrapped);
index 5e12bc55c33ad0b6fcf563b807ca5b91ad48bfa4..9ce3234f5104fff462d7514ed7f2e1ccbcf4433f 100644 (file)
@@ -47,8 +47,6 @@ namespace YACS
       virtual ~SuitWrapper();
 
       QWidget* getNewWindow(QGraphicsScene *scene);
-      int AssociateViewToWindow(QGraphicsView* gView, QWidget* viewWindow);
-      int activeStudyId();
       QDockWidget* objectBrowser();
 
       QAction* createAction(const int id,
index d353097c47906201e72f5b521c2489be3766a554..aee8a99b4c516901dee6b97bbcadd01e05c06200 100755 (executable)
@@ -24,19 +24,19 @@ usage="""USAGE: runSalome.py [options]
 --help                        : affichage de l'aide
 --gui                         : lancement du GUI
 --logger                     : redirection des messages dans un fichier
---xterm                              : les serveurs ouvrent une fenêtre xterm et les messages sont affichés dans cette fenêtre
---modules=module1,module2,... : où modulen est le nom d'un module Salome à charger dans le catalogue
+--xterm                              : les serveurs ouvrent une fen�tre xterm et les messages sont affich�s dans cette fen�tre
+--modules=module1,module2,... : o� modulen est le nom d'un module Salome � charger dans le catalogue
 --containers=cpp,python,superv: lancement des containers cpp, python et de supervision
---killall                    : arrêt des serveurs de salome
+--killall                    : arrt des serveurs de salome
 
- La variable d'environnement <modulen>_ROOT_DIR doit etre préalablement
- positionnée (modulen doit etre en majuscule).
+ La variable d'environnement <modulen>_ROOT_DIR doit etre pralablement
+ positionne (modulen doit etre en majuscule).
  KERNEL_ROOT_DIR est obligatoire.
 """
 
 # -----------------------------------------------------------------------------
 #
-# Fonction d'arrêt de salome
+# Fonction d'arrt de salome
 #
 
 def killSalome():
@@ -128,7 +128,7 @@ except getopt.error, msg:
 
 # -----------------------------------------------------------------------------
 #
-# Vérification des variables d'environnement
+# Vrification des variables d'environnement
 #
 try:
   kernel_root_dir=os.environ["KERNEL_ROOT_DIR"]
@@ -148,7 +148,7 @@ for module in liste_modules :
 
 # il faut KERNEL en premier dans la liste des modules
 # - l'ordre des modules dans le catalogue sera identique
-# - la liste des modules presents dans le catalogue est exploitée pour charger les modules CORBA python,
+# - la liste des modules presents dans le catalogue est exploite pour charger les modules CORBA python,
 #   il faut charger les modules python du KERNEL en premier
 
 if "KERNEL" in liste_modules:liste_modules.remove("KERNEL")
@@ -162,7 +162,7 @@ if "SUPERV" in liste_modules:with_container_superv=1
 
 # -----------------------------------------------------------------------------
 #
-# Définition des classes d'objets pour le lancement des Server CORBA
+# Dfinition des classes d'objets pour le lancement des Server CORBA
 #
 
 class Server:
@@ -342,7 +342,7 @@ def startSalome():
   RegistryServer().run()
 
   #
-  # Attente de la disponibilité du Registry dans le Naming Service
+  # Attente de la disponibilit du Registry dans le Naming Service
   #
   clt.waitNS("/Registry")
 
@@ -354,7 +354,7 @@ def startSalome():
   cataServer.run()
 
   #
-  # Attente de la disponibilité du Catalog Server dans le Naming Service
+  # Attente de la disponibilit du Catalog Server dans le Naming Service
   #
   import SALOME_ModuleCatalog
   clt.waitNS("/Kernel/ModulCatalog",SALOME_ModuleCatalog.ModuleCatalog)
@@ -372,9 +372,9 @@ def startSalome():
 
 
   #
-  # Attente de la disponibilité du SalomeDS dans le Naming Service
+  # Attente de la disponibilit du SalomeDS dans le Naming Service
   #
-  clt.waitNS("/myStudyManager")
+  clt.waitNS("/Study")
 
   #
   # Lancement Session Server
@@ -382,7 +382,7 @@ def startSalome():
   SessionServer().run()
 
   #
-  # Attente de la disponibilité du Session Server dans le Naming Service
+  # Attente de la disponibilit du Session Server dans le Naming Service
   #
   import SALOME
   session=clt.waitNS("/Kernel/Session",SALOME.Session)
@@ -399,7 +399,7 @@ def startSalome():
   if with_container_cpp:
          ContainerCPPServer().run()
          #
-         # Attente de la disponibilité du Container C++ local 
+         # Attente de la disponibilit du Container C++ local 
           # dans le Naming Service
          #
          clt.waitNS("/Containers/" + theComputer + "/FactoryServer")
@@ -409,7 +409,7 @@ def startSalome():
   if with_container_python:
          ContainerPYServer().run()
          #
-         # Attente de la disponibilité du Container Python local 
+         # Attente de la disponibilit du Container Python local 
           #  dans le Naming Service
          #
          clt.waitNS("/Containers/" + theComputer + "/FactoryServerPy")
@@ -420,7 +420,7 @@ def startSalome():
        #
        ContainerSUPERVServer().run()
        #
-       # Attente de la disponibilité du Container Supervision local 
+       # Attente de la disponibilit du Container Supervision local 
         # dans le Naming Service
        #
        clt.waitNS("/Containers/" + theComputer + "/SuperVisionContainer")
@@ -463,13 +463,13 @@ if __name__ == "__main__":
 Sauvegarde du dictionnaire des process dans , %s
 Pour tuer les process SALOME, executer : python killSalome.py depuis
 une console, ou bien killSalome() depuis le present interpreteur,
-s'il n'est pas fermé.
+s'il n'est pas ferm.
 
 runSalome, avec l'option --killall, commence par tuer les process restants 
-d'une execution précédente.
+d'une execution pr�c�dente.
 
 Pour lancer uniquement le GUI, executer startGUI() depuis le present interpreteur,
-s'il n'est pas fermé.
+s'il n'est pas ferm.
 
 """ % filedict
    
index d353097c47906201e72f5b521c2489be3766a554..aee8a99b4c516901dee6b97bbcadd01e05c06200 100755 (executable)
@@ -24,19 +24,19 @@ usage="""USAGE: runSalome.py [options]
 --help                        : affichage de l'aide
 --gui                         : lancement du GUI
 --logger                     : redirection des messages dans un fichier
---xterm                              : les serveurs ouvrent une fenêtre xterm et les messages sont affichés dans cette fenêtre
---modules=module1,module2,... : où modulen est le nom d'un module Salome à charger dans le catalogue
+--xterm                              : les serveurs ouvrent une fen�tre xterm et les messages sont affich�s dans cette fen�tre
+--modules=module1,module2,... : o� modulen est le nom d'un module Salome � charger dans le catalogue
 --containers=cpp,python,superv: lancement des containers cpp, python et de supervision
---killall                    : arrêt des serveurs de salome
+--killall                    : arrt des serveurs de salome
 
- La variable d'environnement <modulen>_ROOT_DIR doit etre préalablement
- positionnée (modulen doit etre en majuscule).
+ La variable d'environnement <modulen>_ROOT_DIR doit etre pralablement
+ positionne (modulen doit etre en majuscule).
  KERNEL_ROOT_DIR est obligatoire.
 """
 
 # -----------------------------------------------------------------------------
 #
-# Fonction d'arrêt de salome
+# Fonction d'arrt de salome
 #
 
 def killSalome():
@@ -128,7 +128,7 @@ except getopt.error, msg:
 
 # -----------------------------------------------------------------------------
 #
-# Vérification des variables d'environnement
+# Vrification des variables d'environnement
 #
 try:
   kernel_root_dir=os.environ["KERNEL_ROOT_DIR"]
@@ -148,7 +148,7 @@ for module in liste_modules :
 
 # il faut KERNEL en premier dans la liste des modules
 # - l'ordre des modules dans le catalogue sera identique
-# - la liste des modules presents dans le catalogue est exploitée pour charger les modules CORBA python,
+# - la liste des modules presents dans le catalogue est exploite pour charger les modules CORBA python,
 #   il faut charger les modules python du KERNEL en premier
 
 if "KERNEL" in liste_modules:liste_modules.remove("KERNEL")
@@ -162,7 +162,7 @@ if "SUPERV" in liste_modules:with_container_superv=1
 
 # -----------------------------------------------------------------------------
 #
-# Définition des classes d'objets pour le lancement des Server CORBA
+# Dfinition des classes d'objets pour le lancement des Server CORBA
 #
 
 class Server:
@@ -342,7 +342,7 @@ def startSalome():
   RegistryServer().run()
 
   #
-  # Attente de la disponibilité du Registry dans le Naming Service
+  # Attente de la disponibilit du Registry dans le Naming Service
   #
   clt.waitNS("/Registry")
 
@@ -354,7 +354,7 @@ def startSalome():
   cataServer.run()
 
   #
-  # Attente de la disponibilité du Catalog Server dans le Naming Service
+  # Attente de la disponibilit du Catalog Server dans le Naming Service
   #
   import SALOME_ModuleCatalog
   clt.waitNS("/Kernel/ModulCatalog",SALOME_ModuleCatalog.ModuleCatalog)
@@ -372,9 +372,9 @@ def startSalome():
 
 
   #
-  # Attente de la disponibilité du SalomeDS dans le Naming Service
+  # Attente de la disponibilit du SalomeDS dans le Naming Service
   #
-  clt.waitNS("/myStudyManager")
+  clt.waitNS("/Study")
 
   #
   # Lancement Session Server
@@ -382,7 +382,7 @@ def startSalome():
   SessionServer().run()
 
   #
-  # Attente de la disponibilité du Session Server dans le Naming Service
+  # Attente de la disponibilit du Session Server dans le Naming Service
   #
   import SALOME
   session=clt.waitNS("/Kernel/Session",SALOME.Session)
@@ -399,7 +399,7 @@ def startSalome():
   if with_container_cpp:
          ContainerCPPServer().run()
          #
-         # Attente de la disponibilité du Container C++ local 
+         # Attente de la disponibilit du Container C++ local 
           # dans le Naming Service
          #
          clt.waitNS("/Containers/" + theComputer + "/FactoryServer")
@@ -409,7 +409,7 @@ def startSalome():
   if with_container_python:
          ContainerPYServer().run()
          #
-         # Attente de la disponibilité du Container Python local 
+         # Attente de la disponibilit du Container Python local 
           #  dans le Naming Service
          #
          clt.waitNS("/Containers/" + theComputer + "/FactoryServerPy")
@@ -420,7 +420,7 @@ def startSalome():
        #
        ContainerSUPERVServer().run()
        #
-       # Attente de la disponibilité du Container Supervision local 
+       # Attente de la disponibilit du Container Supervision local 
         # dans le Naming Service
        #
        clt.waitNS("/Containers/" + theComputer + "/SuperVisionContainer")
@@ -463,13 +463,13 @@ if __name__ == "__main__":
 Sauvegarde du dictionnaire des process dans , %s
 Pour tuer les process SALOME, executer : python killSalome.py depuis
 une console, ou bien killSalome() depuis le present interpreteur,
-s'il n'est pas fermé.
+s'il n'est pas ferm.
 
 runSalome, avec l'option --killall, commence par tuer les process restants 
-d'une execution précédente.
+d'une execution pr�c�dente.
 
 Pour lancer uniquement le GUI, executer startGUI() depuis le present interpreteur,
-s'il n'est pas fermé.
+s'il n'est pas ferm.
 
 """ % filedict
    
index c2e754c4cf14ed2b55cac0e7baf2cdab5624f915..29bff239888da1be179c5e66279b54f3fd296992 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="proc">
-   <property name="DefaultStudyID" value="1"/>
    <type name="bool" kind="bool"/>
    <type name="double" kind="double"/>
    <type name="string" kind="string"/>
index a246838ecfcf0c133adff34c9decf255967001f7..ec55a5859f142388c41ea90598f90c7942900786 100644 (file)
@@ -39,7 +39,6 @@
       <property name="workingdir" value=""/>
    </container>
    <datanode name="StudyInNode0" kind="study">
-      <property name="StudyID" value="1"/>
       <parameter name="a" type="GEOM_Object" ref="/Geometry/Box_1"/>
       <parameter name="b" type="GEOM_Object" ref="/Geometry/Sphere_1"/>
    </datanode>
@@ -61,19 +60,11 @@ y=b
       <outport name="return" type="GEOM_Object"/>
    </service>
    <outnode name="StudyOutNode0" kind="study">
-      <property name="StudyID" value="1"/>
       <parameter name="a" type="GEOM_Object" ref="/Geometry/YacsFuse"/>
    </outnode>
-   <service name="SalomeNode1">
-      <node>SalomeNode0</node>
-      <method>SetStudyID</method>
-      <inport name="theStudyID" type="Int"/>
-   </service>
    <control> <fromnode>StudyInNode0</fromnode> <tonode>PyScript0</tonode> </control>
-   <control> <fromnode>StudyInNode0</fromnode> <tonode>SalomeNode1</tonode> </control>
    <control> <fromnode>PyScript0</fromnode> <tonode>SalomeNode0</tonode> </control>
    <control> <fromnode>SalomeNode0</fromnode> <tonode>StudyOutNode0</tonode> </control>
-   <control> <fromnode>SalomeNode1</fromnode> <tonode>SalomeNode0</tonode> </control>
    <datalink control="false">
       <fromnode>StudyInNode0</fromnode> <fromport>a</fromport>
       <tonode>PyScript0</tonode> <toport>a</toport>
@@ -94,8 +85,4 @@ y=b
       <fromnode>SalomeNode0</fromnode> <fromport>return</fromport>
       <tonode>StudyOutNode0</tonode> <toport>a</toport>
    </datalink>
-   <parameter>
-      <tonode>SalomeNode1</tonode><toport>theStudyID</toport>
-      <value><int>1</int></value>
-   </parameter>
 </proc>
index d0b72c4ff5bfeafa27514ca803b4a520431777ec..01a1efbb9fff648ee8916a996725d823c54ad5cd 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="proc">
-   <property name="DefaultStudyID" value="1"/>
    <objref name="CALCIUM_integer" id="IDL:CALCIUM_integer:1.0"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
index b55285f868b3a1890a7013d26d48b919b9adacb8..e84535d4b7943a451adfe9769aeebcc5ee228284 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 4607c61a3648ce2da39a038e7d1bc38d7fd3a63b..0b080ef0033536d521866a105e37d58fe79477ba 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <proc name="schema">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 42fcd80d57480c29ed32ce2169a3d05cdd456e46..90507abb5970c67b3b3f55662d355bb9b7e4e123 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <proc name="Schema">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 2d6c3674017f1cd3c142196d478d569b58b317a3..fe9edb2af058ace9d0ef47d64cdf3ac00ce9c040 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <proc name="Schema">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index b5b43155e381882ed37bf9f461cc3c4f00de32b5..001f7e538a5722eac3bba584949512c48c4e951e 100644 (file)
@@ -44,7 +44,6 @@
 
     <!--nodes -->
     <datanode name="s" kind="study" >
-      <property name="StudyID" value="1" />
       <parameter name="b" type="FIELDDOUBLE" ref="0:1:1:3:2:1"/>
     </datanode>
     <datanode name="d" >
index 6a2c69570ce1413893207b99e1402a3a8eee3335..f9a365920f938529fe9f0d15caaafc552d292e5a 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 96d324dace94edffe3c8da631acb96f8eaed7be2..1f3ea790dbd865c2aa888d96b930dd974eb5bfa2 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 22a8255332ee2a5589f9b9832d8efda1b96275a4..d465f9e069813f951a5277a787350807233473c8 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <proc name="optim">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index e885f2e8d830c1d73669914eee801c95c289a609..186836cbd9916083df3ed4d2ecbebc32474f17cd 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index abcaaa8caddccf5cab745a6af2f9aa913272c9b3..3aacba4346887d8bfc887e456c76264694533f6d 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 42f5cf117b754e784f76ebe9f3ae3c638f4feb70..33aab9440527354c362bd341e59fecc3b5ab36b9 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="TestDistPython2">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 07b22650502c75b567a9bff84d182be0c7ccace4..bdbe514789dd852c9b515d98a1d65cd0ff485c29 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 5bb90f2429661c6157fd4fdb8139b5c9ce93cce4..8e4f0f990e605703faad21cbf4c08034e8539cd7 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 9697dc6d5efedf52f133afa9ec257633ba919d12..2105195c2cd54e475932368b51aa1018f1f9dc7a 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="TestDistPython2">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index c0c148995522c5bffa84b600162e96d76c873b90..0f41a11d8a868bb73dde1d81224a234c3935aa82 100644 (file)
         <code>orb = CORBA.ORB_init([], CORBA.ORB_ID)</code>
         <code>lcc = LifeCycleCORBA(orb)</code>
         <code>naming_service = SALOME_NamingServicePy_i(orb)</code>
-        <code>StudyManager = naming_service.Resolve('myStudyManager')</code>
+        <code>aStudy = naming_service.Resolve('Study')</code>
         <code>aVisu = lcc.FindOrLoadComponent("FactoryServer","VISU")</code>
-        <code>aStudy = StudyManager.GetStudyByID(1)</code>
         <code>aVisu.SetCurrentStudy(aStudy)</code>
         <code>aViewManager=aVisu.GetViewManager()</code>
         <code>aView=aViewManager.Create3DView()</code>
         <inport name="box" type="GEOM_Object"/>
         <outport name="box" type="GEOM_Object"/>
     </service>
-    <service name="node51" >
-        <component>GEOM_Superv</component>
-        <method>SetStudyID</method>
-        <inport name="id" type="int"/>
-    </service>
     <service name="node52" >
         <component>PYHELLO</component>
         <method>makeBanner</method>
     <control> <fromnode>node5</fromnode> <tonode>node62</tonode> </control>
     <control> <fromnode>node5</fromnode> <tonode>node63</tonode> </control>
     <control> <fromnode>node13</fromnode> <tonode>node14</tonode> </control>
-    <control> <fromnode>node44</fromnode> <tonode>node51</tonode> </control>
-    <control> <fromnode>node51</fromnode> <tonode>node49</tonode> </control>
     <control> <fromnode>node49</fromnode> <tonode>node50</tonode> </control>
     <control> <fromnode>node36</fromnode> <tonode>node37</tonode> </control>
     <!-- datalinks -->
 <parameter><tonode>node37</tonode><toport>p4</toport><value><string>vitesse</string></value></parameter>
 <parameter><tonode>node37</tonode><toport>p5</toport><value><double>0.</double></value></parameter>
 <parameter><tonode>node52</tonode><toport>nom</toport><value><string>toto</string></value></parameter>
-<parameter><tonode>node51</tonode><toport>id</toport><value><int>1</int></value></parameter>
 <parameter><tonode>node49</tonode> <toport>x1</toport><value><double>0</double></value></parameter>
 <parameter><tonode>node49</tonode> <toport>y1</toport><value><double>0</double></value></parameter>
 <parameter><tonode>node49</tonode> <toport>z1</toport><value><double>0</double></value></parameter>
index 27551ccf9ba1a98d8e4fd8913571b0013c00b48e..48dd3ad69fd944cdd5d3185cf63fb7558cb5276b 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 1fdcf33bd099d5b719b7034eb44c05a47f27ed34..2d2b04e11350b4b2379f562e93f4ca48822eb8ee 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index bf78b6031994602f09cde290b05f7252468ef849..048553f6aa68cf78fc7937a7d9dd9eb60252e434 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 33da8c7ed92d4d96785f38b3ca31bfbf5d352ea8..524709d61d56c749bc5bbb6b930a2ee94d1cc8af 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
index 37124851f964b016edc6b73e69c5d0ab189ecdeb..1b9a80f482972dd3c03fa4001aaf216a9d4d42b7 100644 (file)
@@ -29,7 +29,6 @@
 
     <!--nodes -->
     <datanode name="s" kind="study" >
-      <property name="StudyID" value="1" />
       <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:2:2"/>
       <parameter name="c" type="bool" ref="/Geometry/Box_1"/>
     </datanode>
@@ -45,7 +44,6 @@
     </inline>
 
     <outnode name="os" kind="study" ref="stud1.hdf" >
-      <property name="StudyID" value="3" />
       <parameter name="b" type="GEOM/GEOM_Object" ref="/Save/x"/>
       <!--       <parameter name="c" type="GEOM/GEOM_Object" ref="/Geometry/Box_2"/> 
       <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:1:6"/>
index 422f33a52f5d8e87b5aca93a5e988a4950ef5f9c..e633f7894166dff40928a6bc3f3e6a6c6010c124 100644 (file)
@@ -20,7 +20,6 @@
 
 -->
 <proc name="proc">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>