]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make code style checker work with multi-line strings correctly.
authormpv <mpv@opencascade.com>
Tue, 27 Aug 2019 13:12:22 +0000 (16:12 +0300)
committermpv <mpv@opencascade.com>
Tue, 27 Aug 2019 13:12:22 +0000 (16:12 +0300)
src/BuildPlugin/plugin-Build.xml
src/FeaturesPlugin/plugin-Features.xml
src/InitializationPlugin/InitializationPlugin_PyInterp.cpp
src/SketchPlugin/plugin-Sketch.xml

index b46aa51b18ec308f8f0b1ec07208a4ad44ec5458..be1d599973a2ab050bfab323ea02a5b0d4fe3460 100644 (file)
@@ -1,11 +1,11 @@
 <plugin>
   <workbench id="Build" document="Part">
     <group id="Generate">
-      <feature id="Vertex" title="Vertex" tooltip ="Create a vertex from sketch vertex and vertex objects" icon="icons/Build/feature_vertex.png"
+      <feature id="Vertex" title="Vertex" tooltip ="Create vertices from sketch point or other vertex objects" icon="icons/Build/feature_vertex.png"
                helpfile="vertexFeature.html">
         <source path="vertex_widget.xml"/>
       </feature>
-      <feature id="Edge" title="Edge" tooltip ="Create an edge from sketch edges and edge objects" icon="icons/Build/feature_edge.png"
+      <feature id="Edge" title="Edge" tooltip ="Create edges from sketch edges or other edge objects" icon="icons/Build/feature_edge.png"
                helpfile="edgeFeature.html">
         <source path="edge_widget.xml"/>
       </feature>
@@ -33,7 +33,7 @@
                helpfile="solidFeature.html">
         <source path="solid_widget.xml"/>
       </feature>
-      <feature id="CompSolid" title="CompSolid" tooltip ="Create a compsolid from solids or another compsolids" icon="icons/Build/feature_compsolid.png"
+      <feature id="CompSolid" title="CompSolid" tooltip ="Create a compsolid from solids or other compsolids" icon="icons/Build/feature_compsolid.png"
                helpfile="compsolidFeature.html">
         <source path="compsolid_widget.xml"/>
       </feature>
index cec9dd59eb2e649e62b660fa9a38f15c078c09af..215de85d7e5aa773053d10c3b63f0faaa6f2ea09 100644 (file)
   </workbench>
   <workbench id="Part">
     <group id="Movement">
-      <feature id="Placement" title="Placement" tooltip="Place an objects relatively to another one"
+      <feature id="Placement" title="Placement" tooltip="Place objects relatively to another one"
                icon="icons/Features/placement.png" helpfile="placementFeature.html">
         <source path="placement_widget.xml"/>
       </feature>
-      <feature id="Translation" title="Translation" tooltip="Perform translation of an objects along the axis to specified distance"
+      <feature id="Translation" title="Translation" tooltip="Perform translation of objects along the axis to specified distance"
                icon="icons/Features/movement.png" helpfile="translationFeature.html">
         <source path="translation_widget.xml"/>
       </feature>
-      <feature id="Rotation" title="Rotation" tooltip="Perform rotation of an objects around the axis to specified angle"
+      <feature id="Rotation" title="Rotation" tooltip="Perform rotation of objects around the axis to specified angle"
                icon="icons/Features/rotation.png" helpfile="rotationFeature.html">
         <source path="rotation_widget.xml"/>
       </feature>
index a2f99d56a7ee5ae46fd37e0b439b467104f6a85f..57ef46d48b4c0e98a8363ed934e1eb2dd4884e1e 100644 (file)
@@ -228,22 +228,24 @@ bool InitializationPlugin_PyInterp::initContext()
   Py_INCREF(_local_context);
 
   // to avoid "help()" hang in the python console
-  PyRun_SimpleString("def help(): print(\"Available modules:\\n\
-  salome.shaper.model : higher level access to features and data model\\n\
-  BuildAPI            : Build plugin features allowing to build shapes\\n\
-  ConfigAPI           : configuration management: preferences and XML properties\\n\
-  ConstructionAPI     : Construction plugin for auxiliary features creation\\n\
-  EventsAPI           : application events receiving and emitting manager\\n\
-  ExchangeAPI         : Exchange plugin with import/export features\\n\
-  FeaturesAPI         : Features plugin with general 3D features\\n\
-  GeomAlgoAPI         : geometrical algorithms\\n\
-  GeomAPI             : geometrical data structures\\n\
-  GeomDataAPI         : specific geometrical data structures stored in the data model\\n\
-  ModelAPI            : general low-level interface to access data model\\n\
-  ModelHighAPI        : general high-level interface to access data model\\n\
-  ParametersAPI       : Parameters plugin for parameters feature management\\n\
-  PartSetAPI          : PartSet plugin for management Parts features\\n\
-  SketchAPI           : Sketch plugin with all sketch features\")");
+  const static char* aHelpTxt = "def help(): print(\"Available modules:\\n"
+    "  salome.shaper.model : higher level access to features and data model\\n"
+    "  BuildAPI            : Build plugin features allowing to build shapes\\n"
+    "  ConfigAPI           : configuration management: preferences and XML properties\\n"
+    "  ConstructionAPI     : Construction plugin for auxiliary features creation\\n"
+    "  EventsAPI           : application events receiving and emitting manager\\n"
+    "  ExchangeAPI         : Exchange plugin with import/export features\\n"
+    "  FeaturesAPI         : Features plugin with general 3D features\\n"
+    "  GeomAlgoAPI         : geometrical algorithms\\n"
+    "  GeomAPI             : geometrical data structures\\n"
+    "  GeomDataAPI         : specific geometrical data structures stored in the data model\\n"
+    "  ModelAPI            : general low-level interface to access data model\\n"
+    "  ModelHighAPI        : general high-level interface to access data model\\n"
+    "  ParametersAPI       : Parameters plugin for parameters feature management\\n"
+    "  PartSetAPI          : PartSet plugin for management Parts features\\n"
+    "  SketchAPI           : Sketch plugin with all sketch features\")";
+
+  PyRun_SimpleString(aHelpTxt);
 
   return PyRun_SimpleString("from math import *") == 0;
 }
index a2e09b0f57ea0316a4572c0effd0b4e5d91e9719..118bec3ac059912f37d713c125f5f615b27bac1d 100644 (file)
       <!--  SketchFillet  -->
       <feature id="SketchFillet"
                title="Fillet"
-               tooltip="Create constraint defining fillet between two objects"
+               tooltip="Create constraint defining fillet between two connected segments"
                icon="icons/Sketch/fillet.png"
                helpfile="filletFeature.html">
         <sketch_shape_selector id="fillet_point"
       </feature>
 
       <!--  SketchConstraintTangent  -->
-      <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two objects with common coincident point" icon="icons/Sketch/tangent.png"
+      <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two segments with common coincident point" icon="icons/Sketch/tangent.png"
                helpfile="tangentFeature.html">
         <sketch_shape_selector id="ConstraintEntityA"
             label="First object" tooltip="Select line or arc" shape_types="edge">