]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL11986. Add a new status to ErrorCode enum
authoreap <eap@opencascade.com>
Mon, 27 Mar 2006 09:30:43 +0000 (09:30 +0000)
committereap <eap@opencascade.com>
Mon, 27 Mar 2006 09:30:43 +0000 (09:30 +0000)
idl/SMESH_Pattern.idl
src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx
src/SMESHGUI/SMESH_msg_en.po
src/SMESH_I/SMESH_Pattern_i.cxx

index d2324a0b215336a8f88b89b7ccfb3e72dd370d29..6317019bfaf41fc787b1aaf09da7c136dbf82295 100644 (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
index 8d5bc7a6a4daaaa45705e2b04c000b1494d47f40..3c9ab54a22ae84b7ca0a23d77679553a6b0c8f90 100755 (executable)
@@ -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");\r
       else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_NARROW_FACE   ) aMess = tr("ERR_LOADF_NARROW_FACE");\r
       else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_CLOSED_FACE   ) aMess = tr("ERR_LOADF_CLOSED_FACE");\r
+      else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_CANT_PROJECT   ) aMess = tr("ERR_LOADF_CANT_PROJECT");\r
       else if (aCode == SMESH::SMESH_Pattern::ERR_LOADV_BAD_SHAPE     ) aMess = tr("ERR_LOADV_BAD_SHAPE");\r
       else if (aCode == SMESH::SMESH_Pattern::ERR_LOADV_COMPUTE_PARAMS) aMess = tr("ERR_LOADV_COMPUTE_PARAMS");\r
       else                                                              aMess = tr("ERROR_OF_CREATION");\r
index 93111139ee0a31b2b396a5e098bc23babb9c5c78..59d3404dbd3138881af39309267d16f36b729ace 100644 (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"
 
index f48a6fab3f95fa78617096fa8551a08a9a475f2b..fe1630f5ecbe7b93a61209ddcfc2604fe355f7ac 100644 (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 );