]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Merge branch 'BR_internationalization'
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 7 Jun 2016 09:31:09 +0000 (12:31 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 7 Jun 2016 09:31:09 +0000 (12:31 +0300)
Conflicts:
src/Model/Model_SelectionNaming.cpp
src/ModuleBase/ModuleBase_Tools.cpp

18 files changed:
1  2 
src/BuildPlugin/BuildPlugin_Wire.cpp
src/Config/CMakeLists.txt
src/FeaturesPlugin/FeaturesPlugin_Validators.cpp
src/GeomValidators/GeomValidators_ShapeType.cpp
src/Model/Model_Document.cpp
src/Model/Model_SelectionNaming.cpp
src/Model/Model_Update.cpp
src/ModuleBase/ModuleBase_ResultPrs.cpp
src/ModuleBase/ModuleBase_Tools.cpp
src/ParametersPlugin/ParametersPlugin_EvalListener.cpp
src/PartSet/PartSet_OperationPrs.cpp
src/PartSet/PartSet_ResultSketchPrs.cpp
src/SketchSolver/SketchSolver_Group.cpp
src/XGUI/XGUI_DataModel.cpp
src/XGUI/XGUI_ModuleConnector.cpp
src/XGUI/XGUI_ObjectsBrowser.cpp
src/XGUI/XGUI_Tools.cpp
src/XGUI/XGUI_Workshop.cpp

Simple merge
Simple merge
index c2f90be01bd81b04712b7119e503e8756617b202,73c132e0d6a0aae3232f43734bbc164682b45451..2ab3adbb06d75f78451ff4e0abf2e655636eb5b0
  #include <ModelAPI_AttributeString.h>
  #include <ModelAPI_AttributeReference.h>
  #include <ModelAPI_Feature.h>
 +#include <ModelAPI_ResultCompSolid.h>
  #include <ModelAPI_ResultConstruction.h>
  
- #include <Events_Error.h>
  #include <GeomValidators_BodyShapes.h>
  #include <GeomValidators_FeatureKind.h>
  #include <GeomValidators_ShapeType.h>
Simple merge
index 7db813549c5c0d2e216a8a5a73403b3c3d4f565b,232834edc02cdbd889ae80dd582561b083c1fc33..c577080b136565379a1a3e006e05db9dfb84acbe
@@@ -261,45 -261,32 +261,45 @@@ std::string Model_SelectionNaming::nami
  TopAbs_ShapeEnum translateType (const std::string& theType)
  {
    // map from the textual shape types to OCCT enumeration
 -  static std::map<std::string, TopAbs_ShapeEnum> MyShapeTypes;
 -  if (MyShapeTypes.size() == 0) {
 -    MyShapeTypes["face"] = TopAbs_FACE;
 -    MyShapeTypes["faces"] = TopAbs_FACE;
 -    MyShapeTypes["vertex"] = TopAbs_VERTEX;
 -    MyShapeTypes["vertices"] = TopAbs_VERTEX;
 -    MyShapeTypes["wire"] = TopAbs_WIRE;
 -    MyShapeTypes["edge"] = TopAbs_EDGE;
 -    MyShapeTypes["edges"] = TopAbs_EDGE;
 -    MyShapeTypes["shell"] = TopAbs_SHELL;
 -    MyShapeTypes["solid"] = TopAbs_SOLID;
 -    MyShapeTypes["solids"] = TopAbs_SOLID;
 -    MyShapeTypes["FACE"] = TopAbs_FACE;
 -    MyShapeTypes["FACES"] = TopAbs_FACE;
 -    MyShapeTypes["VERTEX"] = TopAbs_VERTEX;
 -    MyShapeTypes["VERTICES"] = TopAbs_VERTEX;
 -    MyShapeTypes["WIRE"] = TopAbs_WIRE;
 -    MyShapeTypes["EDGE"] = TopAbs_EDGE;
 -    MyShapeTypes["EDGES"] = TopAbs_EDGE;
 -    MyShapeTypes["SHELL"] = TopAbs_SHELL;
 -    MyShapeTypes["SOLID"] = TopAbs_SOLID;
 -    MyShapeTypes["SOLIDS"] = TopAbs_SOLID;
 +  static std::map<std::string, TopAbs_ShapeEnum> aShapeTypes;
 +
 +  if(aShapeTypes.size() == 0) {
 +    aShapeTypes["compound"]   = TopAbs_COMPOUND;
 +    aShapeTypes["compounds"]  = TopAbs_COMPOUND;
 +    aShapeTypes["compsolid"]  = TopAbs_COMPSOLID;
 +    aShapeTypes["compsolids"] = TopAbs_COMPSOLID;
 +    aShapeTypes["solid"]      = TopAbs_SOLID;
 +    aShapeTypes["solids"]     = TopAbs_SOLID;
 +    aShapeTypes["shell"]      = TopAbs_SHELL;
 +    aShapeTypes["shells"]     = TopAbs_SHELL;
 +    aShapeTypes["face"]       = TopAbs_FACE;
 +    aShapeTypes["faces"]      = TopAbs_FACE;
 +    aShapeTypes["wire"]       = TopAbs_WIRE;
 +    aShapeTypes["wires"]      = TopAbs_WIRE;
 +    aShapeTypes["edge"]       = TopAbs_EDGE;
 +    aShapeTypes["edges"]      = TopAbs_EDGE;
 +    aShapeTypes["vertex"]     = TopAbs_VERTEX;
 +    aShapeTypes["vertices"]   = TopAbs_VERTEX;
 +    aShapeTypes["COMPOUND"]   = TopAbs_COMPOUND;
 +    aShapeTypes["COMPOUNDS"]  = TopAbs_COMPOUND;
 +    aShapeTypes["COMPSOLID"]  = TopAbs_COMPSOLID;
 +    aShapeTypes["COMPSOLIDS"] = TopAbs_COMPSOLID;
 +    aShapeTypes["SOLID"]      = TopAbs_SOLID;
 +    aShapeTypes["SOLIDS"]     = TopAbs_SOLID;
 +    aShapeTypes["SHELL"]      = TopAbs_SHELL;
 +    aShapeTypes["SHELLS"]     = TopAbs_SHELL;
 +    aShapeTypes["FACE"]       = TopAbs_FACE;
 +    aShapeTypes["FACES"]      = TopAbs_FACE;
 +    aShapeTypes["WIRE"]       = TopAbs_WIRE;
 +    aShapeTypes["WIRES"]      = TopAbs_WIRE;
 +    aShapeTypes["EDGE"]       = TopAbs_EDGE;
 +    aShapeTypes["EDGES"]      = TopAbs_EDGE;
 +    aShapeTypes["VERTEX"]     = TopAbs_VERTEX;
 +    aShapeTypes["VERTICES"]   = TopAbs_VERTEX;
    }
 -  if (MyShapeTypes.find(theType) != MyShapeTypes.end())
 -    return MyShapeTypes[theType];
 +  if (aShapeTypes.find(theType) != aShapeTypes.end())
 +    return aShapeTypes[theType];
-   Events_Error::send("Shape type defined in XML is not implemented!");
+   Events_InfoMessage("Model_SelectionNaming", "Shape type defined in XML is not implemented!").send();
    return TopAbs_SHAPE;
  }
  
Simple merge
index d9114ea820ed8070291c58f1e927dd174df6cf36,a17f61e4b37136d48452ad56eefb2495f1719c6a..a4890633ae0cf4a2ad726d83b83a98fa2eeb6fc0
@@@ -35,8 -34,7 +35,8 @@@
  #include <TopoDS_Iterator.hxx>
  
  #include <GeomDataAPI_Point2D.h>
- #include <Events_Error.h>
+ #include <Events_InfoMessage.h>
 +#include <GeomAPI_ShapeExplorer.h>
  
  #include <Config_PropManager.h>
  
@@@ -511,29 -306,24 +511,29 @@@ static ShapeTypes myShapeTypes
  
  TopAbs_ShapeEnum shapeType(const QString& theType)
  {
 -  if (MyShapeTypes.count() == 0) {
 -    MyShapeTypes["face"] = TopAbs_FACE;
 -    MyShapeTypes["faces"] = TopAbs_FACE;
 -    MyShapeTypes["vertex"] = TopAbs_VERTEX;
 -    MyShapeTypes["vertices"] = TopAbs_VERTEX;
 -    MyShapeTypes["wire"] = TopAbs_WIRE;
 -    MyShapeTypes["wires"] = TopAbs_WIRE;
 -    MyShapeTypes["edge"] = TopAbs_EDGE;
 -    MyShapeTypes["edges"] = TopAbs_EDGE;
 -    MyShapeTypes["shell"] = TopAbs_SHELL;
 -    MyShapeTypes["solid"] = TopAbs_SOLID;
 -    MyShapeTypes["solids"] = TopAbs_SOLID;
 -    MyShapeTypes["objects"] = TopAbs_SHAPE;
 +  if (myShapeTypes.count() == 0) {
 +    myShapeTypes["compound"]   = TopAbs_COMPOUND;
 +    myShapeTypes["compounds"]  = TopAbs_COMPOUND;
 +    myShapeTypes["compsolid"]  = TopAbs_COMPSOLID;
 +    myShapeTypes["compsolids"] = TopAbs_COMPSOLID;
 +    myShapeTypes["solid"]      = TopAbs_SOLID;
 +    myShapeTypes["solids"]     = TopAbs_SOLID;
 +    myShapeTypes["shell"]      = TopAbs_SHELL;
 +    myShapeTypes["shells"]     = TopAbs_SHELL;
 +    myShapeTypes["face"]       = TopAbs_FACE;
 +    myShapeTypes["faces"]      = TopAbs_FACE;
 +    myShapeTypes["wire"]       = TopAbs_WIRE;
 +    myShapeTypes["wires"]      = TopAbs_WIRE;
 +    myShapeTypes["edge"]       = TopAbs_EDGE;
 +    myShapeTypes["edges"]      = TopAbs_EDGE;
 +    myShapeTypes["vertex"]     = TopAbs_VERTEX;
 +    myShapeTypes["vertices"]   = TopAbs_VERTEX;
 +    myShapeTypes["objects"]    = TopAbs_SHAPE;
    }
    QString aType = theType.toLower();
 -  if (MyShapeTypes.contains(aType))
 -    return MyShapeTypes[aType];
 +  if(myShapeTypes.contains(aType))
 +    return myShapeTypes[aType];
-   Events_Error::send("Shape type defined in XML is not implemented!");
+   Events_InfoMessage("ModuleBase_Tools", "Shape type defined in XML is not implemented!").send();
    return TopAbs_SHAPE;
  }
  
index 403bbe3005926430a2bdc70f0fce1c5ac6725d86,10d475066d66cbfd9a2f8e5b14087f67bb64b1f1..1f8d0c5606ed6349bc40c2236b9effb03db15400
@@@ -128,9 -113,10 +128,10 @@@ void PartSet_OperationPrs::Compute(cons
      }
      StdPrs_WFDeflectionShape::Add(thePresentation, aShape, aDrawer);
    }
 -
 +  Set(aComp);
    if (!aReadyToDisplay) {
-     Events_Error::throwException("An empty AIS presentation: PartSet_OperationPrs");
+     Events_InfoMessage("PartSet_OperationPrs", 
+       "An empty AIS presentation: PartSet_OperationPrs").send();
      std::shared_ptr<Events_Message> aMsg = std::shared_ptr<Events_Message>(
                  new Events_Message(Events_Loop::eventByName(EVENT_EMPTY_OPERATION_PRESENTATION)));
      Events_Loop::loop()->send(aMsg);
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge