From 9c483772d1c8762d10a909b6c2f85c4f4aeb6c76 Mon Sep 17 00:00:00 2001 From: dcq Date: Thu, 8 Apr 2004 08:12:23 +0000 Subject: [PATCH] DCQ : Debug Selection filter --- src/BuildGUI/BuildGUI_ShellDlg.cxx | 6 ++---- src/BuildGUI/BuildGUI_ShellDlg.h | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/BuildGUI/BuildGUI_ShellDlg.cxx b/src/BuildGUI/BuildGUI_ShellDlg.cxx index 8a33f4cf6..1f4df38cf 100644 --- a/src/BuildGUI/BuildGUI_ShellDlg.cxx +++ b/src/BuildGUI/BuildGUI_ShellDlg.cxx @@ -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; diff --git a/src/BuildGUI/BuildGUI_ShellDlg.h b/src/BuildGUI/BuildGUI_ShellDlg.h index 87f3d428e..3bb860857 100644 --- a/src/BuildGUI/BuildGUI_ShellDlg.h +++ b/src/BuildGUI/BuildGUI_ShellDlg.h @@ -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();