From: jfa Date: Fri, 22 Jul 2005 10:38:38 +0000 (+0000) Subject: IPAL9324: update Object Browser after Explore MED file; IPAL9374: provide Sweep in... X-Git-Tag: V3_0_1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6f7b81e4b5a23078b3ca550b3cfdd048fabbff9b;p=modules%2Fvisu.git IPAL9324: update Object Browser after Explore MED file; IPAL9374: provide Sweep in popup of all presentations --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index ced02edf..1fe31836 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -231,7 +231,8 @@ OnExploreMEDFile() std::string aStudyName = aStudy->Name(); aGen->readStructFileWithFieldType(aFileInfo.filePath(),aStudyName.c_str()); application()->putInfo(aFileInfo.filePath()+tr("INF_DONE")); - updateObjBrowser(); + //updateObjBrowser(); + getApp()->updateObjectBrowser(true); // as need to update MED tree } } @@ -2464,7 +2465,7 @@ createPopupMenus() aRule = "selcount=1 and type='VISU::TCUTLINES' and nbNamedChildren=0"; mgr->setRule( action( VISU_CREATE_TABLE ), aRule, true ); - aRule = "selcount=1 and type='VISU::TSCALARMAP'"; + aRule = "selcount=1 and ($type in {" + aPrsAll + "})"; mgr->setRule( action( VISU_SWEEP ), aRule, true ); // Selection info popup item