]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correct misprint in name of "Coordinates" attribute of SketchPlugin_Point
authorazv <azv@opencascade.com>
Fri, 31 Mar 2017 12:46:18 +0000 (15:46 +0300)
committerazv <azv@opencascade.com>
Fri, 31 Mar 2017 13:52:46 +0000 (16:52 +0300)
13 files changed:
src/BuildPlugin/Test/TestSubShapes.py
src/BuildPlugin/Test/TestVertex.py
src/SketchPlugin/SketchPlugin_Point.h
src/SketchPlugin/SketchPlugin_msg_en.ts
src/SketchPlugin/Test/TestConstraintCoincidence.py
src/SketchPlugin/Test/TestConstraintDistance.py
src/SketchPlugin/Test/TestConstraintMiddlePoint.py
src/SketchPlugin/Test/TestCreateCircleByCenterAndPassed.py
src/SketchPlugin/Test/TestCreateCircleByThreePoints.py
src/SketchPlugin/Test/TestMultiRotation.py
src/SketchPlugin/Test/TestSketchPointLine.py
src/SketchPlugin/plugin-Sketch.xml
test.squish/suite_STANDALONE/tst_DISTANCE/test.py

index 1453d8af7ddfa14f4ac3cef5c4a488529f2a8be9..d4f0ddd0a17919e5620cb35bd73f70d2bcaffc51 100644 (file)
@@ -8,8 +8,8 @@ import random
 
 def createPoint(theSketchFeature):
     aSketchPointFeature = theSketchFeature.addFeature("SketchPoint")
-    aPointCoordindates = geomDataAPI_Point2D(aSketchPointFeature.attribute("PointCoordindates"))
-    aPointCoordindates.setValue(random.uniform(0, 50), random.uniform(0, 50))
+    aPointCoordinates = geomDataAPI_Point2D(aSketchPointFeature.attribute("PointCoordinates"))
+    aPointCoordinates.setValue(random.uniform(0, 50), random.uniform(0, 50))
     return aSketchPointFeature
 
 def createLine(theSketchFeature):
index be6c50e79456c01b0f7ea9d402851c8acfc69b75..237283590974096517d90b1d3b4fbd96497b704e 100644 (file)
@@ -8,8 +8,8 @@ import random
 
 def createPoint(theSketchFeature):
     aSketchPointFeature = theSketchFeature.addFeature("SketchPoint")
-    aPointCoordindates = geomDataAPI_Point2D(aSketchPointFeature.attribute("PointCoordindates"))
-    aPointCoordindates.setValue(random.uniform(0, 100), random.uniform(0, 100))
+    aPointCoordinates = geomDataAPI_Point2D(aSketchPointFeature.attribute("PointCoordinates"))
+    aPointCoordinates.setValue(random.uniform(0, 100), random.uniform(0, 100))
     return aSketchPointFeature
 
 # Get document
index 142d0915a4e008fd1cbc43f69452553172f70cce..562b50098909a9268f9516c1310ae1d0ffffaf63 100644 (file)
@@ -28,7 +28,7 @@ class SketchPlugin_Point : public SketchPlugin_SketchEntity
   /// Coordinates of the point
   inline static const std::string& COORD_ID()
   {
-    static const std::string MY_COORD_ID("PointCoordindates");
+    static const std::string MY_COORD_ID("PointCoordinates");
     return MY_COORD_ID;
   }
   /// Returns the kind of a feature
index f4f41f841efdfa4808309881a5ead0a33f995bdb..2fcae36b395e81ec9b6ec45c48b8d0c4bad51b55 100755 (executable)
   <context>
     <name>SketchPoint:Model_FeatureValidator</name>
     <message>
-      <source>Attribute "PointCoordindates" is not initialized.</source>
+      <source>Attribute "PointCoordinates" is not initialized.</source>
       <translation>Point is not defined</translation>
     </message>
   </context>
   <context>
-    <name>SketchPoint:PointCoordindates</name>
+    <name>SketchPoint:PointCoordinates</name>
     <message>
-      <source>Attribute "PointCoordindates" is locked by modification value in the viewer.</source>
+      <source>Attribute "PointCoordinates" is locked by modification value in the viewer.</source>
       <translation>Select a point</translation>
     </message>
   </context>
index 893242aa9a935ebc385e05fda518089e79c68054..27def860c235ff71554f037f3ce5b9c1f25dbd4a 100644 (file)
@@ -173,7 +173,7 @@ assert (anOrigRes)
 anOrigShape = anOrigRes.shape()
 assert (anOrigShape)
 anOrigin = aSketchFeature.addFeature("SketchPoint")
-anOriginCoord = geomDataAPI_Point2D(anOrigin.attribute("PointCoordindates"))
+anOriginCoord = geomDataAPI_Point2D(anOrigin.attribute("PointCoordinates"))
 anOriginCoord.setValue(0., 0.)
 anOrigin.selection("External").setValue(anOrigRes, anOrigShape)
 aSession.finishOperation()
index 47a67e6ec779b8ccb87c9b82d1060127fd208a57..a5c80ae7c0e212f535b62eb2ab0c1881077b1a24 100644 (file)
@@ -69,7 +69,7 @@ aSession.finishOperation()
 aSession.startOperation()
 aSketchPoint = aSketchFeature.addFeature("SketchPoint")
 aSketchPointCoords = geomDataAPI_Point2D(
-    aSketchPoint.attribute("PointCoordindates"))
+    aSketchPoint.attribute("PointCoordinates"))
 aSketchPointCoords.setValue(50., 50.)
 aSketchLine = aSketchFeature.addFeature("SketchLine")
 aLineAStartPoint = geomDataAPI_Point2D(aSketchLine.attribute("StartPoint"))
index d8e69beb82929c1f2368bbad14398aa2a5c3d188..558c9ab781427e8d75d0a4d46987b7949f718351 100644 (file)
@@ -145,7 +145,7 @@ assert (anOrigRes)
 anOrigShape = anOrigRes.shape()
 assert (anOrigShape)
 anOrigin = aSketchFeature.addFeature("SketchPoint")
-anOriginCoord = geomDataAPI_Point2D(anOrigin.attribute("PointCoordindates"))
+anOriginCoord = geomDataAPI_Point2D(anOrigin.attribute("PointCoordinates"))
 anOriginCoord.setValue(0., 0.)
 anOrigin.selection("External").setValue(anOrigRes, anOrigShape)
 aSession.finishOperation()
index e37ec2f58c3c2641d5a3ab80fe23900a0b619475..35f55de79ea8ed822c220c1f2de6a493fbb5edde 100644 (file)
@@ -139,7 +139,7 @@ aPrevCenter = geomDataAPI_Point2D(aPrevCircle.attribute("circle_center"))
 aPointCoodinates = [0., 0.]
 aSession.startOperation()
 aPoint = aSketchFeature.addFeature("SketchPoint")
-aPointCoord = geomDataAPI_Point2D(aPoint.attribute("PointCoordindates"))
+aPointCoord = geomDataAPI_Point2D(aPoint.attribute("PointCoordinates"))
 aPointCoord.setValue(aPointCoodinates[0], aPointCoodinates[1])
 aSession.finishOperation()
 # create new circle
index ce9a24d4a3da5a80fa6beda46f51d14d4d81d732..8998bb931eac0e5f4524e1b8f1742f7ab07b8e46 100644 (file)
@@ -137,7 +137,7 @@ aLineStart = [10., 0.]
 aLineEnd = [10., 50.]
 aSession.startOperation()
 aPoint = aSketchFeature.addFeature("SketchPoint")
-aPointCoord = geomDataAPI_Point2D(aPoint.attribute("PointCoordindates"))
+aPointCoord = geomDataAPI_Point2D(aPoint.attribute("PointCoordinates"))
 aPointCoord.setValue(aPointCoodinates[0], aPointCoodinates[1])
 aLine = aSketchFeature.addFeature("SketchLine")
 aStartPnt = geomDataAPI_Point2D(aLine.attribute("StartPoint"))
index 6a6d192016a8800c65f0ad7b16dd20edcac401be..905117ae394ef5908c7a39abbed283f7f8f2221b 100644 (file)
@@ -127,7 +127,7 @@ ANGLE = 30.
 #=========================================================================
 aSession.startOperation()
 aRotationPoint = aSketchFeature.addFeature("SketchPoint")
-aRotationPointPoint = geomDataAPI_Point2D(aRotationPoint.attribute("PointCoordindates"))
+aRotationPointPoint = geomDataAPI_Point2D(aRotationPoint.attribute("PointCoordinates"))
 aRotationPointPoint.setValue(CENTER_X, CENTER_Y)
 aSession.finishOperation()
 assert(model.dof(aSketchFeature) == 7)
index 0d3df2d144fe609d27155688dd93cdbba7b70482..382a53418c6eaf2e23a89cce9de8f70276ed3de4 100644 (file)
@@ -46,7 +46,7 @@ assert (len(aSketchReflist.list()) == 0)
 # aSketchPoint = aDocument.addFeature("SketchPoint")
 aSketchPoint = aSketchFeature.addFeature("SketchPoint")
 assert (aSketchPoint.getKind() == "SketchPoint")
-coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordindates"))
+coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordinates"))
 assert (not coords.isInitialized())
 # Simulate SketchPlugin_Point::move(...)
 coords.setValue(10., 10.)
@@ -56,7 +56,7 @@ aSession.finishOperation()
 aSketchReflist = aSketchFeature.reflist("Features")
 assert (aSketchReflist.size() == 1)
 assert (len(aSketchReflist.list()) == 1)
-coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordindates"))
+coords = geomDataAPI_Point2D(aSketchPoint.attribute("PointCoordinates"))
 assert (coords.x() == 10.0)
 assert (coords.y() == 10.0)
 #=========================================================================
index f2aa6ed5fcbf4bcc347fae574de92c0e402741a7..e1908173910b0768c235a651ce4d1cbe37468359 100644 (file)
@@ -32,7 +32,7 @@
 
       <!-- SketchPoint -->
       <feature id="SketchPoint" title="Point" tooltip="Create point" icon="icons/Sketch/point.png">
-        <sketch-2dpoint_selector id="PointCoordindates" accept_expressions="0" title="Point" tooltip="Point coordinates"
+        <sketch-2dpoint_selector id="PointCoordinates" accept_expressions="0" title="Point" tooltip="Point coordinates"
                                  enable_value="enable_by_preferences"/>
         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
       </feature>
index 7e4ecaa96227b631283cda3c4be85a7859ce9fc9..2227b8971325ae750159d2de53d158bf26c46ccd 100644 (file)
@@ -9,7 +9,7 @@ def sketch():
     
     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), annotaion_point[0], annotaion_point[1], 0, Qt.LeftButton)
     waitFor("object.exists(':Distance.First object_QLineEdit')", 20000)
-    test.compare(str(findObject(":Distance.First object_QLineEdit").text), "SketchPoint_1/PointCoordindates")
+    test.compare(str(findObject(":Distance.First object_QLineEdit").text), "SketchPoint_1/PointCoordinates")
     waitFor("object.exists(':Distance.Second object_QLineEdit')", 20000)
     test.compare(str(findObject(":Distance.Second object_QLineEdit").text), "SketchLine_1")
     waitFor("object.exists(':Distance.ConstraintValue_ModuleBase_ParamSpinBox')", 20000)