mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-24 01:22:05 +05:00
Add needed message for bug PAL5437.
This commit is contained in:
parent
102ebded1b
commit
882f929e86
@ -1279,6 +1279,10 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
if ( vtkwnd ) {
|
if ( vtkwnd ) {
|
||||||
int nbSel = selected.Extent();
|
int nbSel = selected.Extent();
|
||||||
if (nbSel != 1){
|
if (nbSel != 1){
|
||||||
|
SUIT_MessageBox::warn1(desktop(),
|
||||||
|
tr("SMESH_WRN_WARNING"),
|
||||||
|
tr("SMESH_WRN_NO_AVAILABLE_DATA"),
|
||||||
|
tr("SMESH_BUT_OK"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1343,7 +1347,8 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
}
|
}
|
||||||
SMESH::RepaintCurrentView();
|
SMESH::RepaintCurrentView();
|
||||||
}
|
}
|
||||||
}else{
|
}
|
||||||
|
else{
|
||||||
SUIT_MessageBox::warn1(desktop(),
|
SUIT_MessageBox::warn1(desktop(),
|
||||||
tr("SMESH_WRN_WARNING"),
|
tr("SMESH_WRN_WARNING"),
|
||||||
tr("SMESH_WRN_VIEWER_VTK"),
|
tr("SMESH_WRN_VIEWER_VTK"),
|
||||||
@ -1583,13 +1588,20 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
}
|
}
|
||||||
updateObjBrowser();
|
updateObjBrowser();
|
||||||
|
|
||||||
}catch(const SALOME::SALOME_Exception & S_ex){
|
}
|
||||||
|
catch(const SALOME::SALOME_Exception & S_ex){
|
||||||
SalomeApp_Tools::QtCatchCorbaException(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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,6 +165,10 @@ msgstr "Activate Link Selection Mode"
|
|||||||
msgid "SMESH_WRN_EMPTY_NAME"
|
msgid "SMESH_WRN_EMPTY_NAME"
|
||||||
msgstr "Empty name is not valid"
|
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
|
#Smesh polyedre cretion error
|
||||||
msgid "SMESH_POLYEDRE_CREATE_ERROR"
|
msgid "SMESH_POLYEDRE_CREATE_ERROR"
|
||||||
msgstr "Polyedron creation error"
|
msgstr "Polyedron creation error"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user