]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Hide "by general equation" case for plane creation
authorsbh <sergey.belash@opencascade.com>
Mon, 13 Apr 2015 12:45:07 +0000 (15:45 +0300)
committersbh <sergey.belash@opencascade.com>
Mon, 13 Apr 2015 12:45:07 +0000 (15:45 +0300)
src/ConstructionPlugin/plane_widget.xml
src/ModuleBase/ModuleBase_WidgetSwitch.cpp

index 4300f5f6f2538f51c5796168ba46dd8cea26f874..938850f418b74be477fe8970a14e27139a4e8041 100644 (file)
                    tooltip="Distance from selected face to plane" 
                default="0" />
     </case>
-    <case id="PlaneByGeneralEquation" title="By palne equation parameters">
-      <doublevalue id="A" 
-                   label="A:" 
-                   tooltip="The A parameter from general plane equation (Ax+By+Cz+D=0)" 
-                   default="0" />
-      <doublevalue id="B" 
-                   label="B:" 
-                   tooltip="The B parameter from general plane equation (Ax+By+Cz+D=0)" 
-                   default="0" />
-      <doublevalue id="C" 
-                   label="C:" 
-                   tooltip="The C parameter from general plane equation (Ax+By+Cz+D=0)" 
-                   default="0" />
-      <doublevalue id="D" 
-                   label="D:" 
-                   tooltip="The D parameter from general plane equation (Ax+By+Cz+D=0)" 
-                   default="0" />
-    </case>
   </switch>
 </source>
index 8cd931574f11f63c76ce57bfc12a96b68f64d3f2..31deb0e986bdc96d06893fa2c4cca5908456ac79 100644 (file)
@@ -47,7 +47,7 @@ int ModuleBase_WidgetSwitch::addPage(ModuleBase_PageBase* thePage, const QString
   int aSuperCount = ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId);
   myCombo->addItem(theName);
   int aResultCount = myCombo->count();
-  if (aResultCount == 1)
+  if (aResultCount == 2)
     myCombo->show();
   QFrame* aFrame = dynamic_cast<QFrame*>(thePage);
   aFrame->setFrameShape(QFrame::Box);