From beab5264b7daf479785d8e2624d2831fca9bed6d Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 22 Jul 2005 09:05:30 +0000 Subject: [PATCH] IPAL9409: information of the selected via ID nodes(cells) doesn't appear in the dlg --- src/VISUGUI/VisuGUI_Selection.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Selection.cxx b/src/VISUGUI/VisuGUI_Selection.cxx index 5bd77a64..0980900e 100644 --- a/src/VISUGUI/VisuGUI_Selection.cxx +++ b/src/VISUGUI/VisuGUI_Selection.cxx @@ -328,15 +328,17 @@ template QString getVector(TData* theData, int theId){ #define ABS(a) (a>=0)?a:-a void VisuGUI_SelectionDlg::onSelectionEvent() { + SVTK_ViewWindow* aSVTKVW = VISU::GetViewWindow(); + if (!aSVTKVW) return; + if (myFl) return; myFl = true; + int aType = myWidgetStack->id(myWidgetStack->visibleWidget()); SalomeApp_Application* anApp = dynamic_cast (SUIT_Session::session()->activeApplication()); - SVTK_ViewWindow* aSVTKVW = VISU::GetViewWindow(); - if (!aSVTKVW) return; SVTK_Selector* aSelector = aSVTKVW->GetSelector(); VISU::Prs3d_i* aPrs3d = NULL; @@ -577,7 +579,10 @@ void VisuGUI_SelectionDlg::onPointIdEdit (const QString& theText) bool anIsSelected = onIdEdit(theText,aMethod,false,mySelectionMgr, myMeshName,tr("WRN_NO_AVAILABLE_DATA"), myFieldName); - if (!anIsSelected) + if (anIsSelected) + // as selection manager doesn't send signal currentSelectionChanged() + onSelectionEvent(); + else clearFields(); } @@ -588,6 +593,9 @@ void VisuGUI_SelectionDlg::onCellIdEdit (const QString& theText) bool anIsSelected = onIdEdit(theText,aMethod,true,mySelectionMgr, myMeshName,tr("WRN_NO_AVAILABLE_DATA"), myFieldName); - if (!anIsSelected) + if (anIsSelected) + // as selection manager doesn't send signal currentSelectionChanged() + onSelectionEvent(); + else clearFields(); } -- 2.39.2