Salome HOME
DCQ : Debug Selection filter
authordcq <dcq@opencascade.com>
Thu, 8 Apr 2004 08:12:23 +0000 (08:12 +0000)
committerdcq <dcq@opencascade.com>
Thu, 8 Apr 2004 08:12:23 +0000 (08:12 +0000)
src/BuildGUI/BuildGUI_ShellDlg.cxx
src/BuildGUI/BuildGUI_ShellDlg.h

index 8a33f4cf62b112fc6300b830770e43ddf5d954f8..1f4df38cf183a5cb75d628286c391461b213da52 100644 (file)
@@ -87,7 +87,7 @@ void BuildGUI_ShellDlg::Init()
   myEditCurrentArgument = GroupShell->LineEdit1;
   myOkListShapes = false;
 
-  myFaceFilter = new GEOM_FaceFilter(StdSelect_Plane, myGeom);
+  myFaceFilter = new GEOM_ShapeTypeFilter(TopAbs_FACE, myGeom);
   /* Filter for the next selection */
   mySelection->AddFilter(myFaceFilter) ;
 
@@ -163,10 +163,8 @@ void BuildGUI_ShellDlg::SelectionIntoArgument()
 //=================================================================================
 void BuildGUI_ShellDlg::SetEditCurrentArgument()
 {
-  QPushButton* send = (QPushButton*)sender();
-  mySelection->ClearFilters() ;
+  mySelection->ClearFilters();
   GroupShell->LineEdit1->setFocus();
-  myEditCurrentArgument = GroupShell->LineEdit1;
   mySelection->AddFilter(myFaceFilter);
   this->SelectionIntoArgument();
   return;
index 87f3d428ec9ffb3f47da06a8683495558a462895..3bb8608572de9bac9075fde6345eb64af9f0aa6d 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "BuildGUI.h"
 
-#include "GEOM_FaceFilter.hxx"
+#include "GEOM_ShapeTypeFilter.hxx"
 
 //=================================================================================
 // class    : BuildGUI_ShellDlg
@@ -54,7 +54,7 @@ private:
 
     BuildGUI* myBuildGUI;
 
-    Handle(GEOM_FaceFilter) myFaceFilter;    /* Filters selection */
+    Handle(GEOM_ShapeTypeFilter) myFaceFilter;    /* Filters selection */
     GEOM::GEOM_Gen::ListOfIOR myListShapes;
     bool myOkListShapes;          /* to check when arguments is defined */
 
@@ -64,7 +64,6 @@ private slots:
     void ClickOnOk();
     void ClickOnApply();
     void SetEditCurrentArgument();
-    void LineEditReturnPressed();
     void SelectionIntoArgument();
     void ActivateThisDialog();