Add needed message for bug PAL5437.

This commit is contained in:
skl 2006-07-14 07:42:30 +00:00
parent 102ebded1b
commit 882f929e86
2 changed files with 18 additions and 2 deletions

View File

@ -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;
}

View File

@ -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"