From: skl Date: Fri, 14 Jul 2006 07:42:30 +0000 (+0000) Subject: Add needed message for bug PAL5437. X-Git-Tag: T3_2_1_pre~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=882f929e86abf75507daabc5178dc1ff9c3a87d9;p=modules%2Fsmesh.git Add needed message for bug PAL5437. --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index fe7994306..ca39ab84f 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -1279,6 +1279,10 @@ bool SMESHGUI::OnGUIEvent( int theCommandID ) if ( vtkwnd ) { int nbSel = selected.Extent(); if (nbSel != 1){ + SUIT_MessageBox::warn1(desktop(), + tr("SMESH_WRN_WARNING"), + tr("SMESH_WRN_NO_AVAILABLE_DATA"), + tr("SMESH_BUT_OK")); break; } @@ -1343,7 +1347,8 @@ bool SMESHGUI::OnGUIEvent( int theCommandID ) } SMESH::RepaintCurrentView(); } - }else{ + } + else{ SUIT_MessageBox::warn1(desktop(), tr("SMESH_WRN_WARNING"), tr("SMESH_WRN_VIEWER_VTK"), @@ -1583,13 +1588,20 @@ bool SMESHGUI::OnGUIEvent( int theCommandID ) } updateObjBrowser(); - }catch(const SALOME::SALOME_Exception & S_ex){ + } + catch(const SALOME::SALOME_Exception & S_ex){ SalomeApp_Tools::QtCatchCorbaException(S_ex); } } } } } + else if(nbSel==0) { + SUIT_MessageBox::warn1(desktop(), + tr("SMESH_WRN_WARNING"), + tr("SMESH_WRN_NO_AVAILABLE_DATA"), + tr("SMESH_BUT_OK")); + } break; } diff --git a/src/SMESHGUI/SMESH_msg_en.po b/src/SMESHGUI/SMESH_msg_en.po index e25d616e3..8cff58168 100644 --- a/src/SMESHGUI/SMESH_msg_en.po +++ b/src/SMESHGUI/SMESH_msg_en.po @@ -165,6 +165,10 @@ msgstr "Activate Link Selection Mode" msgid "SMESH_WRN_EMPTY_NAME" msgstr "Empty name is not valid" +#Not available data +msgid "SMESH_WRN_NO_AVAILABLE_DATA" +msgstr "No available data in selection" + #Smesh polyedre cretion error msgid "SMESH_POLYEDRE_CREATE_ERROR" msgstr "Polyedron creation error"