]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue 1299 Angle presentation: complementary angle.
authornds <nds@opencascade.com>
Thu, 17 Mar 2016 11:26:30 +0000 (14:26 +0300)
committernds <nds@opencascade.com>
Thu, 17 Mar 2016 11:26:30 +0000 (14:26 +0300)
src/PartSet/PartSet_icons.qrc
src/PartSet/icons/angle_complementary.png [new file with mode: 0755]
src/PartSet/icons/angle_supplementary.png [deleted file]
src/SketchPlugin/SketchPlugin_ConstraintAngle.cpp
src/SketchPlugin/plugin-Sketch.xml
src/SketcherPrs/SketcherPrs_Angle.cpp
src/SketcherPrs/SketcherPrs_Tools.h

index da666716b567f7cdd8e91a747b25f7b7ea4ae600..e725a6a82eb6ce193cd02b27d814ca2d7a4003be 100644 (file)
@@ -6,7 +6,7 @@
      <file>icons/angle_up.png</file>
      <file>icons/angle_direct.png</file>
      <file>icons/angle_down.png</file>
-     <file>icons/angle_supplementary.png</file>
+     <file>icons/angle_complementary.png</file>
      <file>icons/arc.png</file>
      <file>icons/arc_base_32x32.png</file>
      <file>icons/arc_3pt_32x32.png</file>
diff --git a/src/PartSet/icons/angle_complementary.png b/src/PartSet/icons/angle_complementary.png
new file mode 100755 (executable)
index 0000000..7588fe7
Binary files /dev/null and b/src/PartSet/icons/angle_complementary.png differ
diff --git a/src/PartSet/icons/angle_supplementary.png b/src/PartSet/icons/angle_supplementary.png
deleted file mode 100755 (executable)
index 7588fe7..0000000
Binary files a/src/PartSet/icons/angle_supplementary.png and /dev/null differ
index 8caf3ee8984a36308348c5d646ad04a08da52d6f..91469e9ce2e7e216e3dec6d3813bc335337a5ab2 100644 (file)
@@ -198,7 +198,7 @@ double SketchPlugin_ConstraintAngle::calculateAngle()
   switch (anAngleType) {
     case SketcherPrs_Tools::ANGLE_DIRECT:
     break;
-    case SketcherPrs_Tools::ANGLE_SUPPLEMENTARY:
+    case SketcherPrs_Tools::ANGLE_COMPLEMENTARY:
       anAngle = 180 - anAngle;
     break;
     case SketcherPrs_Tools::ANGLE_BACKWARD:
index 5e1e924dbffee1e6cc511ced18b1444a31d19bd8..380a120f349a627815ff8d1d18e71dd0c71a2b46 100644 (file)
           buttons_dir="horizontal"
           label="Angle type"
           tooltip="Type of angle"
-          string_list="Direct Supplementary Backward"
-          icons_list=":icons/angle_direct.png :icons/angle_supplementary.png :icons/angle_backward.png"
+          string_list="Direct Complementary Additional"
+          icons_list=":icons/angle_direct.png :icons/angle_complementary.png :icons/angle_backward.png"
           default="0"
           />
 
index 42934eb7fe09227b1ce8566ee16b38f143a06452..2d4e5838e0602850e304151545f1a75a9efeb906 100644 (file)
@@ -121,7 +121,7 @@ void SketcherPrs_Angle::Compute(const Handle(PrsMgr_PresentationManager3d)& theP
       SetMeasuredGeometry(aEdge1, aEdge2);
     }
     break;
-    case SketcherPrs_Tools::ANGLE_SUPPLEMENTARY: {
+    case SketcherPrs_Tools::ANGLE_COMPLEMENTARY: {
       // to calculate center, first and end points
       SetGeometryOrientedAngle(false, false);
       SetMeasuredGeometry(aEdge1, aEdge2);
index 7e10fac7321c37185c3ade40743b124821429844..f6f8c3ac7c1c82bd801d822a8a1531226d6c8761 100644 (file)
@@ -44,7 +44,7 @@ namespace SketcherPrs_Tools {
   /// Type of angle
   enum AngleType{
     ANGLE_DIRECT,   ///< Angle from the first line to the second line
-    ANGLE_SUPPLEMENTARY,  ///< Additional angle to the angle from first to second line
+    ANGLE_COMPLEMENTARY,  ///< Additional angle to the angle from first to second line
     ANGLE_BACKWARD ///< Angle from the second line to the first line
   };