PAL11986. Add a new status to ErrorCode enum

This commit is contained in:
eap 2006-03-27 09:30:43 +00:00
parent da4be66299
commit b786ae51b2
4 changed files with 6 additions and 0 deletions

View File

@ -140,6 +140,7 @@ module SMESH
// Load(face)
ERR_LOADF_NARROW_FACE, // too narrow face
ERR_LOADF_CLOSED_FACE, // closed face
ERR_LOADF_CANT_PROJECT, // impossible to project nodes
// Load(volume)
ERR_LOADV_BAD_SHAPE, // volume is not a brick of 6 faces
ERR_LOADV_COMPUTE_PARAMS, // cant compute point parameters

View File

@ -516,6 +516,7 @@ bool SMESHGUI_CreatePatternDlg::loadFromObject (const bool theMess)
if (aCode == SMESH::SMESH_Pattern::ERR_LOAD_EMPTY_SUBMESH ) aMess = tr("ERR_LOAD_EMPTY_SUBMESH");
else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_NARROW_FACE ) aMess = tr("ERR_LOADF_NARROW_FACE");
else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_CLOSED_FACE ) aMess = tr("ERR_LOADF_CLOSED_FACE");
else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_CANT_PROJECT ) aMess = tr("ERR_LOADF_CANT_PROJECT");
else if (aCode == SMESH::SMESH_Pattern::ERR_LOADV_BAD_SHAPE ) aMess = tr("ERR_LOADV_BAD_SHAPE");
else if (aCode == SMESH::SMESH_Pattern::ERR_LOADV_COMPUTE_PARAMS) aMess = tr("ERR_LOADV_COMPUTE_PARAMS");
else aMess = tr("ERROR_OF_CREATION");

View File

@ -1954,6 +1954,9 @@ msgstr "It is impossible to create pattern from narrow face"
msgid "SMESHGUI_CreatePatternDlg::ERR_LOADF_CLOSED_FACE"
msgstr "It is impossible to create pattern from face having seam edge"
msgid "SMESHGUI_CreatePatternDlg::ERR_LOADF_CANT_PROJECT"
msgstr "Impossible to perform projection of nodes to the face"
msgid "SMESHGUI_CreatePatternDlg::ERR_LOADV_BAD_SHAPE"
msgstr "Pattern can be created from closed shell or solid with 6 faces only"

View File

@ -470,6 +470,7 @@ SMESH::SMESH_Pattern::ErrorCode SMESH_Pattern_i::GetErrorCode()
RETCASE( ERR_LOAD_EMPTY_SUBMESH );
RETCASE( ERR_LOADF_NARROW_FACE );
RETCASE( ERR_LOADF_CLOSED_FACE );
RETCASE( ERR_LOADF_CANT_PROJECT );
RETCASE( ERR_LOADV_BAD_SHAPE );
RETCASE( ERR_LOADV_COMPUTE_PARAMS );
RETCASE( ERR_APPL_NOT_LOADED );