Salome HOME
Better management of errors.
authorClarisse Genrault <clarisse.genrault@cea.fr>
Wed, 1 Mar 2017 14:29:59 +0000 (15:29 +0100)
committerClarisse Genrault <clarisse.genrault@cea.fr>
Wed, 1 Mar 2017 14:29:59 +0000 (15:29 +0100)
src/PrimitivesPlugin/PrimitivesPlugin_Cylinder.cpp
src/PrimitivesPlugin/box_widget.xml
src/PrimitivesPlugin/cylinder_widget.xml

index 63236482bb97af00fc59b730ffed008dc4997eb4..83fbb8e88160cce85e5b5bc5969d6c6cced410d1 100644 (file)
@@ -136,7 +136,7 @@ void PrimitivesPlugin_Cylinder::createCylinder(bool withAngle)
   // These checks should be made to the GUI for the feature but
   // the corresponding validator does not exist yet.
   if (!aCylinderAlgo->check()) {
-    setError(aCylinderAlgo->getError(), false);
+    setError(aCylinderAlgo->getError());
     return;
   }
 
@@ -146,12 +146,12 @@ void PrimitivesPlugin_Cylinder::createCylinder(bool withAngle)
   // Check if the creation of the cylinder
   if(!aCylinderAlgo->isDone()) {
     // The error is not displayed in a popup window. It must be in the message console.
-    setError(aCylinderAlgo->getError(), false);
+    setError(aCylinderAlgo->getError());
     return;
   }
   if(!aCylinderAlgo->checkValid("Cylinder builder")) {
     // The error is not displayed in a popup window. It must be in the message console.
-    setError(aCylinderAlgo->getError(), false);
+    setError(aCylinderAlgo->getError());
     return;
   }
 
index 8f0f205d5f2239d02a79281c7b1800eeffd83679..9d63683835cdbdd24075a558e88fda8feb56b723 100644 (file)
@@ -8,7 +8,6 @@
         label="DX"
         step="1.0"
         default="10.0"
-        min = "0.0"
         icon=""
         tooltip="Dimension in X">
       </doublevalue>
@@ -17,7 +16,6 @@
         label="DY"
         step="1.0"
         default="10.0"
-        min = "0.0"
         icon=""
         tooltip="Dimension in Y">
       </doublevalue>
@@ -26,7 +24,6 @@
         label="DZ"
         step="1.0"
         default="10.0"
-        min = "0.0"
         icon=""
         tooltip="Dimension in Z">
       </doublevalue>
index 780e29384c8ccc6e49b61a68d58e33f9df630e1c..457119415740d9e600b6758d140188fd33c4c984 100644 (file)
@@ -28,7 +28,6 @@
           label="radius"
           step="1."
           default="5."
-          min="0."
           icon="icons/Primitives/radius.png"
           tooltip="Enter the radius of the cylinder">
       </doublevalue>
@@ -37,7 +36,6 @@
           label="height"
           step="1."
           default="10."
-          min="0."
           icon="icons/Primitives/dimension_v.png"
           tooltip="Enter the height of the cylinder">
       </doublevalue>
@@ -68,7 +66,6 @@
           label="radius"
           step="1."
           default="5."
-          min="0."
           icon="icons/Primitives/radius.png"
           tooltip="Enter the radius of the cylinder">
       </doublevalue>
@@ -77,7 +74,6 @@
           label="height"
           step="1."
           default="10."
-          min="0."
           icon="icons/Primitives/dimension_v.png"
           tooltip="Enter the height of the cylinder">
       </doublevalue>
@@ -86,8 +82,6 @@
           label="angle"
           step="10."
           default="45.0"
-          min="0."
-          max="360."
           icon="icons/Primitives/angle.png"
           tooltip="Enter the angle of the portion of the cylinder">
       </doublevalue>